CodyR Posted May 7, 2011 Share Posted May 7, 2011 I have been trying to use the send command to turn on Mouse Keys, but I'm not having any luck. I have used: Send("{LALT}{LSHIFT}{NUMLOCK on}"); //also off, toggle Send("!+{NUMLOCK on");//also off, toggle Any better way to do this. Left Shift+ Left Alt + Numlock works normally... Thanks Link to comment Share on other sites More sharing options...
wakillon Posted May 8, 2011 Share Posted May 8, 2011 Did you try simply : Send ( "{NUMLOCK off}" ) or Send ( "{NUMLOCK on}" ) ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Blue_Drache Posted May 8, 2011 Share Posted May 8, 2011 (edited) Why not nose about in the registry? I have my mouse-keys shut off. And for a reason. I can't tell you how many times I've been playing a game and hit shift several times in a row, or ctrl, or whatever... Windows pops up and says "OH HAI! I AM PAPERCLIP!! YOU SUMMONED ME!!" ... often stealing focus from a full-screen application. Tweaking a setting inside the registry is much more elegant than brute-forcing it with SEND() Edited May 8, 2011 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
CodyR Posted May 9, 2011 Author Share Posted May 9, 2011 The registry thing would probably work; I'm going to investigate that. Right now I am using this thing called "Mouse Emulator" and just "taskkill"ing it when I don't need it. I'd still like to know the more general answer of why this doesn't work; it seems pretty elegant to me just to send the hotkey that toggles it on/off instead of sending .reg files back and forth. Anyway, thinks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now