Sign in to follow this  
Followers 0
CodyR

Activating Mouse Keys with Autoit

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Did you try simply :

Send ( "{NUMLOCK off}" ) or Send ( "{NUMLOCK on}" ) ?


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0