HptKeyNet and windows Vista
I just downloaded version 58 and am having probles with it. I am running it on 2 machines, a pc and a laptop. both run Vista. the laptop runs 64 bit vista. I set the local/server machine on the PC, and the remote/client on the laptop. I am using it to play World of Warcraft. I created a hotkey file that basically transmits the numbers 1-0 plus teh - and the = to the remote when I press the corresponding numbpad key (which I do not use for the game on the local machine, that way I can send commands without affecting what I am doing on the local machine). this in return activates the corresponding hotkey on my action bar on the laptop/remote system. the two systems connect fine. the remote system receives the command I send it fine.
Problem #1 is that when I went to setup the window name for the commands to be sent to I changed it to "wow" to make the code shorter. well I later noticed that when using the change the name of the window pop-up, that every window on my system was now called "wow" (ie. I had the World of Warcraft directory open in explorer, when I have the change window name pop-up open an dhover over the explore tab on the task bar, it tells me the windows current name is "wow", I also had an ie window open, and Hotkeynet tells me that windows name is "wow".
So, I tried to test this. on my local/server PC I opened the window rename pop-up, and moused over several windows. in the hotkeynet change window name pop-up EVERY tab for ALL my programs was called "Application". So, I believe this to be an issue with Vista and hotkeynet not pulling the correct information (I am assuming from the registry). AND causes any renames to a have a global effect on every open window (even if you close the window and rename it). as a result I would like to have a new setting in the program that allows you to add/remove renaming from specific files/folders/applications.
I also tried getting around this by renaming a specific program by location window (which you ned to update the command for this on the website. on the website it has "_" between every word, when I tried this hotkeynet told me I no longer need "_" between words, and the words were justputtogether <--- example. This did nothing, as the site did not tell me if I had to attach this to a hotkey and send it to the remote machine from the local, or enter it at the command prompt, or how to do it.
Problem #2 is, after I press a hotkey locally, the remote system responds correctly. the SECOND hotkey I press usually does nothing, even if it is the same hotkey I just used. SOMETIMES I can press up to 5 or 6 hotkeys and it will do nothing, SOMETIMES I can only pre3ss the second hotkey and it will do nothing, THEN The remote system will "alt-tab" itself to the desktop, as the desktop is now considered a "active window" in Vista. I am assuming this is the "bring to forground" issue mentioned on the website, so I tried <sendwinM wow> same result. I would like to think this problem is a result of Problem #1. I also tried using the <foreground wow> command, and this had no result. I also tried using the <restore> command, this had no result. I tried using these commands before and/or after the command being issued.
I have tried changing the window name as well, and nothing is different.
here is the hotkey.txt file I am using.
<hotkey numpad1>
<sendpc 192.168.2.2>
<sendwin World of Warcraft>
1
<hotkey numpad2>
<sendpc 192.168.2.2>
<sendwin World of Warcraft>
2
<hotkey numpad3>
<sendpc 192.168.2.2>
<sendwin World of Warcraft>
3
<hotkey numpad4>
<sendpc 192.168.2.2>
<foreground wow>
<sendwin wow>
4
<restore>
<hotkey numpad5>
<sendpc 192.168.2.2>
<sendwin wow>
5
<restore>
<hotkey numpad6>
<sendpc 192.168.2.2>
<sendwin wow>
6
<hotkey numpad7>
<sendpc 192.168.2.2>
<sendwin wow>
7
<hotkey numpad8>
<sendpc 192.168.2.2>
<sendwin wow>
8
<hotkey numpad9>
<sendpc 192.168.2.2>
<sendwin wow>
9
<hotkey numpad0>
<sendpc 192.168.2.2>
<sendwin wow>
0
<hotkey numpad_minus>
<sendpc 192.168.2.2>
<sendwin wow>
-
<hotkey numpad_plus>
<sendpc 192.168.2.2>
<sendwin wow>
=
<hotkey numpad_enter>
<sendpc 192.168.2.2>
<RenameFromPath "c:\Program Files (x86)\World of Warcraft\Wow.exe" wow>
<sendpc 192.168.2.2>
<RenameFromPath "c:\Program Files (x86)\World of Warcraft\Launcher.exe" wow>
RE: HptKeyNet and windows Vista
Finndo, thanks very much for the report. I'll address your specific points in a moment but first let me say, you have two rename commands for the same PC for the hotkey that's triggered by <Numpad_Enter>. I don't know if you are trying to rename two different windows or whether you did this because you weren't sure which pathname to use, but either way, you need to change this. If you are trying to rename two different windows on the same PC, you have to give them different names like this:
<Rename "World of Warcraft" wow1>
<Rename "World of Warcraft" wow2>
If you have only one WoW window on that machine, you don't need to bother renaming it. You can refer to it as "World" in your files. HKN matches the first window that begins with "World."
If you have only one WoW window on that machine, and for some reason you want to rename it anyway, you have to do it like this:
<Rename "World of Warcraft" wow>
Quote:
Originally Posted by finndo',index.php?page=Thread&postID=38236#post382 36]Problem #1 is that when I went to setup the window name for the commands to be sent to I changed it to "wow" to make the code shorter...[/quote]If that's the only reason you're doing it, you don't need to bother. You can specify part of a window name in your definitions, and HKN will match the first window that begins that way. For example, <sendwin World> will match "World of Warcraft."
[quote='finndo
well I later noticed that when using the change the name of the window pop-up, that every window on my system was now called "wow"
What exactly did you right click when you selected the window to be renamed? Did you right-click the title bar at the top of the actual WoW window? (That's what I intended users to do. ) Or did you right-click something else?
Quote:
So, I believe this to be an issue with Vista and hotkeynet not pulling the correct information (I am assuming from the registry).
HKN doesn't do anything with the registry. It just looks at open windows and picks the first one, if any, that matches what you wrote. If there's no match it doesn't do anything. The changes disappear when you close the window. They aren't recorded in any way.
Quote:
as a result I would like to have a new setting in the program that allows you to add/remove renaming from specific files/folders/applications.
I think the best way to handle this is to figure out exactly what you did with the rename button, and then put in a safeguard so that can't happen. Once that is prevented, HKN only has the ability to rename specific open windows, and the user can always rename them back with the rename button or by closing the window and reopening it.
Quote:
I also tried getting around this by renaming a specific program by location window (which you ned to update the command for this on the website. on the website it has "_" between every word, when I tried this hotkeynet told me I no longer need "_" between words...
Thanks for catching the out-of-date instructions. I just changed them.
The way to get around this problem is with the <rename> command. WoW doesn't alllow itself to be renamed with <RenameFromPath> . I wasn't aware of that until i tested it a minute ago. However <Rename> works fine.
Quote:
Problem #2 is, after I press a hotkey locally, the remote system responds correctly. the SECOND hotkey I press usually does nothing, even if it is the same hotkey I just used.
I think this may be caused by the fact that you apparently have more than one window with the same name on that machine. I suggest you get the renaming fixed so there is only one window with the targeted name, and then see what happens. Let me know.
Thanks again for the report.