|
|
|||||||
I would like to see either an updated sendkeys function that sends the keys as they are actually typed in the script, not being effected by Capslock or Numlock, or as another suggestion, maybe a function like keystate(), which allows you to not only set the state of capslock and numlock, but also allow you to check it. I'm aware the AutoIT has this functionality to some degree and I would consider this suggestion pretty low priority. However, it's something I have run across, and have seen other people asking about as well: Check for CAPSLOCK What is NumLock key status? I have absolutely no idea how hard this would be to add, but I've found a few articles discussing how this is done in vb: HOWTO Find Keystate of Numlock, Capslock etc., in VB HOWTO: Toggle the NUM LOCK, CAPS LOCK, and SCROLL LOCK Keys |
||||||||
|
|
|||||||
Hi Alpo I know this is not what you're looking for exactly, but here are a couple files to toggle the state. NumOn (Enable Numlock) http://www.kixhelp.com/Downloads/numon.exe NumOff (Disable Numlock) http://www.kixhelp.com/Downloads/numoff.exe |
||||||||
|
|
|||||||
I just found some code that supposedly set and checks the states of the numlock, capslock and scroll lock. The name of the file is keystate.bat and it looks very similiar to a batch file but its not... anyone have any ideas what might run this code? Code:
|
||||||||
|
|
|||||||
Curious stuff ... ScriptEase -Shawn |
||||||||
|
|
|||||||
Looks very similar to C.. But, Shawn may have nailed it. Kent |
||||||||
|
|
|||||||
Thanks guys... looks like a whole other scripting language ... first I've heard of ScriptEase. Oh well, I'll just hope Ruud might take this one on sometime. |
||||||||
|
|
|||||||
It looks like all "meta" keyboard keys will affect the result. Run this script, and play with control, shift, caps lock and the "alt gr" keys (hit "q" to exit). Code: $=SetOption("WrapAtEOL","ON") As you cannot toggle things like the shift key a SendKeys() which can send the data unmodified is a better option. A KeyState() while not solving the problem would be a useful addition too. |
||||||||
|
|
|||||||
With the Dynawrapper dll, setting the keystate is now possible. See SetKeyState - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=190022#Post190022 |