Stuart
Windows Entertainment and Connected Home MVP
The Windows Media Center Blog Tips Tricks & News!
Phaze1 Digital
RemoteKC does not appear to work for me on Windows 7 RTM. I used the mouse mode the most on Vista but under Seven it does nothing. Can someone please fix this???
Thanks
First time posting, so hopefully I can get this right. The problem is that AutoHotKey's mouse functions don't seem to work right on Windows 7. I replaced them in the AHK script with System DLL Calls, and now it works fine. I rebuilt the ahk file and the executable, but I don't really have any place I can host them. If anyone has any suggestions on how I can publish them let me know. In the meantime, here's the snippet of code if you want to do it yourself:
; Need to tweak MouseMove call a little bit. Here's an example using right arrow key Right::If Mode = 2MouseMoveWin7(10, 0, 0, "R") ; Move cursor to the rightElseSend {Right}Return ; And then add this functionMouseMoveWin7(x, y, speed, relative) ; Win7 replacement for mouse move{ ; Note: Speed is not implemented for this function if (relative = "R") { ; MouseGetPos, xpos, ypos VarSetCapacity(MyStruct, 8, 0) DllCall("GetCursorPos", UInt, &MyStruct) xpos := NumGet(MyStruct, 0) ypos := NumGet(MyStruct, 4) DllCall("SetCursorPos", int, xpos+x, int, ypos+y) } Else { DllCall("SetCursorPos", int, x, int, y) }}Return
; Need to tweak MouseMove call a little bit. Here's an example using right arrow key
Right::If Mode = 2MouseMoveWin7(10, 0, 0, "R") ; Move cursor to the rightElseSend {Right}Return
; And then add this function
Good work, fbird17. I'm the original author of RemoteKC, but I'm still using Windows XP, so I haven't updated it for newer versions of Windows. Actually, I'm not really updating the program at all anymore and wouldn't even know how to get it to work well with Vista or Windows 7 - my AutoHotkey skills are pretty basic and I'm a bit out of practice - so I really appreciate it when members of the community chip in to make RemoteKC better.
If you're looking for somewhere to host an AutoHotkey program (for free), you could try AutoHotkey.net. That's what I used.
fbird17 I can host them in a Wiki on The Digital Life Style website, please email me the .exe and .ahk files.
Thanks for fixing this btw!
Updated blog post with new links here
New files for Windows 7:
http://www.autohotkey.net/~fbird17/RemoteKCWin7/RemoteKCWin7.ahk
http://www.autohotkey.net/~fbird17/RemoteKCWin7/RemoteKCWin7.exe
I've actually tested this out now and the mouse cursor works a treat again on 7MC.
Many Thanks.
Thank you so much for this software. This is the last piece I needed. I already use Autohotkey to switch from my monitor to HDTV and my sound (scripts below if you want them). Again Thank you.
Thanks so much! Has anyone had a problem with Keyboard Mode? # turns CAPS lock on and off, but I can't type any characters and the Back button does not operate either.
I've tried the ahk file and the exe. Mouse Mode seems to work fine on the number pad. I'm running 7 Pro.
Any thoughts or suggestions? Thanks!
I am having the same issues on Vista Ultimate. I am using the Windows 2007 script in the post above. The script works fine on my XP box. The problem is related to SendMode. There are four options for SendMode:
In my experience with AHK this is related to either a timing issue sending the keystrokes or the manner in which AHK is sending the keystrokes. I am working on this on this so I can migrate my HTPC from my XP box to my nicer Vista machine but if you wanted to push ahead I would look at those 2 things.
Thanks! Great explanation. I spent some time learning AHK and messing with it over the weekend and that's what I observed, too. I have not had any more time to look at it, but I would like to. Do let us know if you make any progress and I'll do the same.
After messing with it some more, I think that when the script gets to <should send 2 here but doesn't>, AHK sees that 2 and treats it as another hotkey press of 2, which starts the loop again and thus doesn't print the 2. I stuck a 3 in the list (a3bc) and when I hit the 3 in the list, I got d (since 3 is seen as a new hotkey press). Not sure how you can tell AHK to ignore the 2 that you want to print versus the 2 that you want to use to get back to a.