ZonkHonk
06-15-2020, 09:38 AM
Hello,
had a long break and a new Windows 10 installation a while ago and run into a problem launching WoW with HKN. Script used to work like 2 years ago (its still the same)
But now HKN starts WoW but cant rename it becasue it looks like its not able to target its window.
Path must be right because HKN opens WoW i also run it as Admin. Did i forget something? like setting the game to full/windowscreen or any windows 10 settings iam unaware of? Also tried a fresh download of HKN.
Anyone got a idea?
Heres the info i got of the console:
Console output:
From this pc: <Run [Path Redacted]><wait 5000><RenameTargetWin Tank><SetAffinity all><SetWinRect 0 0 1920 1040><wait 4000><text zonkhonk><wait 4000><key Tab><wait 4000><text 1234qwer><wait 4000><Key Enter>
[Path Redacted] completed: Program started.. Window could not be found
<wait 5000> completed: 5000 milliseconds
<RenameTargetWin Tank> failed: No window is targeted.
<SetAffinity all> failed: no window is targeted
<SetWinRect 0 0 1920 1040> failed: No window is targeted.
Testscript with only one instance of WoW and extra long loading times to be save.
//
// LAUNCH AND RENAME THE WOW WINDOWS.
// THIS IS FROM THE HOTKEYNET FORUMS.
//
// LaunchAndRename1.................LaunchAndRename2
// %1% : PC to use......................%1% : PC to use
// %2% : path to WoW..................%2% : path to WoW
// %3% : name of the Window.........%3% : name of the Window
// %4% : e-mail..........................%4% : x-pos
// %5% : password......................%5% : y-pos
//.........................................%6% : width
//.........................................%7% : height
//.........................................%8% : e-mail
//.........................................%9% : password
<Command LaunchAndRename1>
<SendPC %1%>
<Run %2%>
<wait 8200>
<RenameTargetWin %3%>
<wait 8700>
<text %4%>
<wait 8000>
<key Tab>
<wait 8000>
<text %5%>
<wait 8000>
<Key Enter>
<Command LaunchAndRename2>
<SendPC %1%>
<Run %2%>
<wait 5000>
<RenameTargetWin %3%>
<SetAffinity all>
<SetWinRect %4% %5% %6% %7%>
<wait 4000>
<text %8%>
<wait 4000>
<key Tab>
<wait 4000>
<text %9%>
<wait 4000>
<Key Enter>
//-----------------------------------------------------------------------------
// Ctrl-Alt-L launches 5 WoW windows. 1 main window + 4 alts
//-----------------------------------------------------------------------------
<Hotkey ScrollLockOn LCtrl LAlt L>
<LaunchAndRename2 local "[Path Redacted]" Tank 0 0 1920 1040 Account Password>
//-----------------------------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES
//-----------------------------------------------------------------------------
<Label w0 local SendWinM Tank>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO ALL WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<KeyList MyList 0-9, F, G, T, Q, E, Space, Button4, LAlt, LShift, F1, F2, F3, F4, F5>
<Hotkey ScrollLockOn MyList; ScrollLockOn Shift MyList; ScrollLockOn Alt MyList; ScrollLockOn Ctrl MyList; ScrollLockOn Ctrl Shift MyList>
<SendLabel w0>
<Key %Trigger%>
//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO ALL WOW'S.
// ADD MORE KEYS IF YOU WANT.
//-----------------------------------------------------------
<MovementHotkey ScrollLockOn up, down, left, right>
<SendLabel w0>
<Key %Trigger%>
//-----------------------------------------------------------
// BROADCAST MOUSE CLICKS. HOLD DOWN OEM3 (ON U.S. KEYBOARDS,
// THAT'S THE SQUIGGLE KEY IN UPPPER LEFT CORNER, OEM5 ON EU KEYBOARDS) WHEN YOU
// WANT TO BROADCAST.
//-----------------------------------------------------------
<UseKeyAsModifier Oem5>
<Hotkey ScrollLockOn Oem5 LButton, MButton, RButton, Button4, Button5>
<SendLabel w0>
<ClickMouse %TriggerMainKey%>
What i tried so far with no results:
Using the testscript form the mainpage.
Reinstalll HKN
Run as admin
Windowmode/Fullscreen
Installedt some redistributable packages and checked for updates.
Took ownership of the harddrive and permissions.
Seems like i have no overlay interferying of xbox, nvidia or nahimic (couldnt find it installed no settings avaliable)
Seems to be from HKN.
Opening the game directly i could use the script from AHK
Starting all instances with HKN and the script from AHK didnt affect the instances.
Tryed in a fresh instalation of W10 version 2004 with the same problem
-------
After the conclusion it have to be HKNproblem the solution was to switch to RenameWin "World of Warcraft" instead of RenameTargetWin wich somehow messed up the window and made it untargetable even for later attemps by script...
had a long break and a new Windows 10 installation a while ago and run into a problem launching WoW with HKN. Script used to work like 2 years ago (its still the same)
But now HKN starts WoW but cant rename it becasue it looks like its not able to target its window.
Path must be right because HKN opens WoW i also run it as Admin. Did i forget something? like setting the game to full/windowscreen or any windows 10 settings iam unaware of? Also tried a fresh download of HKN.
Anyone got a idea?
Heres the info i got of the console:
Console output:
From this pc: <Run [Path Redacted]><wait 5000><RenameTargetWin Tank><SetAffinity all><SetWinRect 0 0 1920 1040><wait 4000><text zonkhonk><wait 4000><key Tab><wait 4000><text 1234qwer><wait 4000><Key Enter>
[Path Redacted] completed: Program started.. Window could not be found
<wait 5000> completed: 5000 milliseconds
<RenameTargetWin Tank> failed: No window is targeted.
<SetAffinity all> failed: no window is targeted
<SetWinRect 0 0 1920 1040> failed: No window is targeted.
Testscript with only one instance of WoW and extra long loading times to be save.
//
// LAUNCH AND RENAME THE WOW WINDOWS.
// THIS IS FROM THE HOTKEYNET FORUMS.
//
// LaunchAndRename1.................LaunchAndRename2
// %1% : PC to use......................%1% : PC to use
// %2% : path to WoW..................%2% : path to WoW
// %3% : name of the Window.........%3% : name of the Window
// %4% : e-mail..........................%4% : x-pos
// %5% : password......................%5% : y-pos
//.........................................%6% : width
//.........................................%7% : height
//.........................................%8% : e-mail
//.........................................%9% : password
<Command LaunchAndRename1>
<SendPC %1%>
<Run %2%>
<wait 8200>
<RenameTargetWin %3%>
<wait 8700>
<text %4%>
<wait 8000>
<key Tab>
<wait 8000>
<text %5%>
<wait 8000>
<Key Enter>
<Command LaunchAndRename2>
<SendPC %1%>
<Run %2%>
<wait 5000>
<RenameTargetWin %3%>
<SetAffinity all>
<SetWinRect %4% %5% %6% %7%>
<wait 4000>
<text %8%>
<wait 4000>
<key Tab>
<wait 4000>
<text %9%>
<wait 4000>
<Key Enter>
//-----------------------------------------------------------------------------
// Ctrl-Alt-L launches 5 WoW windows. 1 main window + 4 alts
//-----------------------------------------------------------------------------
<Hotkey ScrollLockOn LCtrl LAlt L>
<LaunchAndRename2 local "[Path Redacted]" Tank 0 0 1920 1040 Account Password>
//-----------------------------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES
//-----------------------------------------------------------------------------
<Label w0 local SendWinM Tank>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO ALL WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<KeyList MyList 0-9, F, G, T, Q, E, Space, Button4, LAlt, LShift, F1, F2, F3, F4, F5>
<Hotkey ScrollLockOn MyList; ScrollLockOn Shift MyList; ScrollLockOn Alt MyList; ScrollLockOn Ctrl MyList; ScrollLockOn Ctrl Shift MyList>
<SendLabel w0>
<Key %Trigger%>
//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO ALL WOW'S.
// ADD MORE KEYS IF YOU WANT.
//-----------------------------------------------------------
<MovementHotkey ScrollLockOn up, down, left, right>
<SendLabel w0>
<Key %Trigger%>
//-----------------------------------------------------------
// BROADCAST MOUSE CLICKS. HOLD DOWN OEM3 (ON U.S. KEYBOARDS,
// THAT'S THE SQUIGGLE KEY IN UPPPER LEFT CORNER, OEM5 ON EU KEYBOARDS) WHEN YOU
// WANT TO BROADCAST.
//-----------------------------------------------------------
<UseKeyAsModifier Oem5>
<Hotkey ScrollLockOn Oem5 LButton, MButton, RButton, Button4, Button5>
<SendLabel w0>
<ClickMouse %TriggerMainKey%>
What i tried so far with no results:
Using the testscript form the mainpage.
Reinstalll HKN
Run as admin
Windowmode/Fullscreen
Installedt some redistributable packages and checked for updates.
Took ownership of the harddrive and permissions.
Seems like i have no overlay interferying of xbox, nvidia or nahimic (couldnt find it installed no settings avaliable)
Seems to be from HKN.
Opening the game directly i could use the script from AHK
Starting all instances with HKN and the script from AHK didnt affect the instances.
Tryed in a fresh instalation of W10 version 2004 with the same problem
-------
After the conclusion it have to be HKNproblem the solution was to switch to RenameWin "World of Warcraft" instead of RenameTargetWin wich somehow messed up the window and made it untargetable even for later attemps by script...