Close
Showing results 1 to 5 of 5

Thread: RenameWin Issue

  1. #1

    Default RenameWin Issue

    Hello there,

    I have a small issue with renaming the windows with the following parameter:

    Code:
    <Hotkey NumLockOn Ctrl R>
        <SendPC local>
            <RenameWin "Game" Game1>
            <RenameWin "Game" Game2>
            <RenameWin "Game" Game3>
    The issue in this fact about the feature, that the parameter "RenameWin" will rename every found process with the name "Game" to the name "Game3", no matter how many windows, which one has been focused or not.
    It is always the same.

    I cannot copy the game and keep 8 copies at the same time (the game is quite large, 10GB+, but thats not the matter), since this game has a launcher, and launchers won't automatically focus different directories.
    Cannot launch the game without using ASM hacks on the client and probably triggering an error report to the developers and being banned at once. In this case, launching the game via HkN and let the program setting the names automatically won't work either. the client just crashes.

    So, is there a way besides of manually ""Rename Feature" > right-click > Input new name"-function?

    Is there a kind of If/Else-Function
    "IF (WinName == Game3)
    BEGIN
    RenameWin = "Game2"
    END"-feature?

    Thanks.

  2. #2

    Default

    I'd suggest renaming the windows as they are opened via that subroutine rather than waiting until they are all open. The setup in the default scripts are not ideal, as I explain in the Configuring a HotKeyNet Starter Script guide on my site.

    Code:
    //----------------------------------------------------------
    // 	SUBROUTINES FOR WOW*5
    //----------------------------------------------------------
    //*
    //----------------------------------------------------------
    // 	WoW LAUNCH AND RENAME
    //----------------------------------------------------------
    //*
    <Command LaunchAndRename>
    <SendPC %1%>
    <Run %2%>
    <RenameTargetWin %3%>
    <RemoveWinFrame>
    <wait 500>
    <text %4%>
    //+
    
    //----------------------------------------------------------
    // 	WoW RESIZE AND POSITION
    //----------------------------------------------------------
    //*
    <Command ResizeAndPosition>
    	<SendPC Local>
    		<SendWinM %1%>
    			<SetWinRect 0 0 1920 1050>
    				<SetWinRegion none>
    		<SendWinM %2%>
    			<SetWinRect 1920 0 480 270>
    				<SetWinRegion none>
    		<SendWinM %3%>
    			<SetWinRect 2400 0 480 270>
    				<SetWinRegion none>
    		<SendWinM %4%>
    			<SetWinRect 1920 270 480 270>
    				<SetWinRegion none>
    		<SendWinM %5%>
    			<SetWinRect 2400 270 480 270>
    				<SetWinRegion none>
    				
    //+
    
    //----------------------------------------------------------
    // 	WoW *5 LAUNCH HOTKEY 
    //----------------------------------------------------------
    //*
    <Hotkey LCtrl  LAlt w>
    	<if WinDoesNotExist WoW1>
    		<LaunchAndRename Local "G:\WoW\World of Warcraft\Wow-64.exe" WoW1 PASSWORD>
    		<endif>
    	<if WinDoesNotExist WoW2>
    		<LaunchAndRename Local "G:\WoW - Slave1\World of Warcraft\Wow-64.exe" WoW2 PASSWORD>
    		<endif>
    	<if WinDoesNotExist WoW3>
    		<LaunchAndRename Local "G:\WoW - Slave2\World of Warcraft\Wow-64.exe" WoW3 PASSWORD>
    		<endif>
    	<if WinDoesNotExist WoW4>
    		<LaunchAndRename Local "G:\WoW - Slave3\World of Warcraft\Wow-64.exe" WoW4 PASSWORD>
    		<endif>
    	<if WinDoesNotExist WoW5>
    		<LaunchAndRename Local "G:\WoW - Slave4\World of Warcraft\Wow-64.exe" WoW5 PASSWORD>
    		<endif>
    <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
    Or you can try the version I had to use for EQ2

    Code:
    //----------------------------------------------------------
    // 	SUBROUTINES FOR EQ2*2
    //----------------------------------------------------------
    //*
    
    
    //----------------------------------------------------------
    // 	 RESIZE AND POSITION
    //----------------------------------------------------------
    //*
    <Command ResizeAndPosition>
    	<SendPC Local>
    		<SendWin %1%>
    			<SetWinRect 0 0 1920 1050>              
    		<SendWin %2%>
    			<SetWinRect 1920 0 960 540>
    //+
    
    
    //----------------------------------------------------------
    // 	EQ2 LAUNCH AND RENAME
    //----------------------------------------------------------
    //*
    <Command LaunchAndRename>
    	<SendPC %1%>
    		<wait 500>
    		<TargetWin "EverQuest II">
    			<CloseWin>
    				<Wait 500>
    	<Run %2%>
    		<wait 15000>
    	<TargetWin "EverQuest II">
    		<ClickMouse Window 750 525>
    			<wait 7000>
    	<TargetWin "EverQuest II">
    		<ClickMouse Window 350 275>
    			<text %3%>
    				<wait 50>
    	<Key Tab>
    		<text %4%>
    			<wait 50>
    	<Key Enter>
    		<wait 3000>
    	<TargetWin "EverQuest II">
    		<ClickMouse Screen 1250 750>
    			<wait 5000>
    	<RenameFromPath %5% %6%>
    		<ResizeAndPosition MAIN SLAVE>
    	<wait 500>
    		<TargetWin "EverQuest II">
    			<CloseWin>
    	<Wait 500>
    //+
    
    
    
    //----------------------------------------------------------
    // 	WoW *5 LAUNCH HOTKEY 
    //----------------------------------------------------------
    //*
    <Hotkey LCtrl  LAlt w>
    	<if WinDoesNotExist SLAVE>
    		<LaunchAndRename Local "G:\EQ2 Slave\EverQuest2.exe" ACCOUNT PASSWORD "G:\EQ2 Slave\EverQuest2.exe" SLAVE>
    		<endif>
    	<if WinDoesNotExist MAIN>
    		<LaunchAndRename Local "G:\EQ2\EverQuest2.exe" ACCOUNT PASSWORD G:\EQ2\EverQuest2.exe MAIN>
    		<endif>
    <ResizeAndPosition MAIN SLAVE>
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

  3. #3

    Default

    Quote Originally Posted by Blapanda View Post
    ... since this game has a launcher, and launchers won't automatically focus different directories.
    ...
    In this case, launching the game via HkN and let the program setting the names automatically won't work either. the client just crashes.
    ...
    I am pretty capable scripting specific things on given examples and parameters. As well tried the path located name changing, that works on other games, like e.g. Skyrim, Terraria, or whatever.
    Trove will suddenly bitch and crash the client, without launching it via the general launcher.

    The launcher has a restriction: only able to launch it once!
    The launcher will boot up the game by clicking start. Has an option which closes the launcher afterwards the client started, but its quite useless, since the game won't recognize the launcher anymore and keep bugged at a "fake login".
    In this case, those clients need to be shut down manually.

    Eitherway, launchting the client directly, or the launcher with the option to close afterwards, both are failing sides of the developed tool of Trion.
    Pretty messed work what Trion did there.

    And using multiple paths on this game won't work eitherway.
    To actual "Multiclient", I have to launch the launcher through other User Accounts on my Windows.
    And I guess HkN is not able to launch something through a second, third, etc, User Account.

    I have a those scripts already, but not able to use them, to the mentioned issues sides of Trion and their setup.
    Code:
    //-----------------------------------------------------------
    // SUBROUTINE TO LAUNCH AND RENAME A COPY OF TROVE.
    //-----------------------------------------------------------
    <Command LaunchAndRename>
       <SendPC %1%>
          <Run "C:\Games\Glyph\Games\Trove\Live\Trove.exe">
            <RenameTargetWin %2%>
            <RemoveWinFrame>
          
    
    //-----------------------------------------------------------
    // SUBROUTINE TO POSITIONING AND RESIZING 4 TROVE WINDOWS
    //-----------------------------------------------------------
    <Command ResizeAndPosition>
        <SendPC Local>
            <SendWinM %1%>
                <SetWinRect 0 0 1920 1050>
                    <SetWinRegion none>
            <SendWinM %2%>
                <SetWinRect 1920 0 480 270>
                    <SetWinRegion none>
            <SendWinM %3%>
                <SetWinRect 2400 0 480 270>
                    <SetWinRegion none>
            <SendWinM %4%>
                <SetWinRect 1920 270 480 270>
                    <SetWinRegion none>     
    
    
    //-----------------------------------------------------------
    // HOTKEY TO LAUNCH AND RENAME ALL TROVES.
    //-----------------------------------------------------------
    <Hotkey NumLockOn Alt Ctrl L>
        <LaunchAndRename Local Trove1>
        <LaunchAndRename Local Trove2>
        <LaunchAndRename Local Trove3>
        <LaunchAndRename Local Trove4>
            <ResizeAndPosition Trove1 Trove2 Trove3 Trove4>
    Last edited by Blapanda : 12-31-2014 at 01:43 PM

  4. #4

    Default

    3 posts below yours was a thread on HotKeyNet and Trove. You can't use HotKeyNet with Trove, you need a program with better mouse broadcasting to function with that game.
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

  5. #5

    Default

    This one here hasn't to do anything with mouse broadcasting cO

    This thread's purpose is only about the naming of multiple windows on the same path without messing them up by entering the same last rename value.

    As well, my usage is covered by the current script, and its fine for now. I don't have to level up each character and being able to use them sync'ed, which won't work at all, since the server are laggy as hell. The characters will glitch to different positions without any reason. Servers are located in the US, being cheap ones for sure, and that's causing quite constant high pings about 250+
    Last edited by Blapanda : 01-03-2015 at 10:07 AM

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •