> Or use this one:
> 
> The usage is:
> .ToggleKeys(bNum,bCap,bScr)
> 
> bNum/bCap/bScr takes 1/0/-1 and "" for on/off/reverse and unaltered.
> 
> So, .ToggleKeys() now doesn't change anything.
> 
> -------------------- ToggleKeys.PowerPro -----------------------------
> args bNum,bCap,bScr,hDev,nRet,nPort,nStat
> 
> dll.call("DefineDosDevice|ui s- s b",;;+
> 1,"Keybd",?"\Device\KeyboardClass0")
> hDev=dll.call("CreateFile|s ui ui ui ui ui ui",;;+
> ?"\\.\Keybd",0,1,0,3,0,0)
> dll.call("DefineDosDevice|ui s- s! b",2,"Keybd","")
> 
> dll.call("DeviceIoControl|ui ui ui ui ui* ui ui* ui",;;+
> hDev,0xB*65536|0x10*4,0,0,"nStat",4,"nRet",0)
> nPort=nStat%65536
> nStat=nStat/65536

<snip> 

Still doesn't work. Debug reports 
0 2 740
And then after changing script it reports
0 7 740

There's still no change to the led's....which is what I've been watching for
changes on when testing all these scripts.

What I would really like to find is code that will do two things:
- Test for numlock status and report back if numlock was off or on (should
be able to do with keytrap, but it's broken)
- Be able to toggle the state of the numlock key (optional, think I can do
this with keytrap already)

If these two things could be found, then Bruce could fix the GUI Control tab
|  Disable numlock checkbox and make it start working reliably =)
Right now, from my testing of that checkbox the only thing that's working
with that checkbox is that if you change the state of the checkbox it
reverses the numlock status 1 time and then doesn't do anything else. My
guess is that whatever code is trying to read the numlock status doesn't
work.

Note keytrap should be able to do this, but in my testing this:
win.debug(Keytrap.GetKeystate(1,144))
Always reports 1.

But win.debug(Keytrap.GetKeystate(1,20)) does report the state of the
capslock key properly. 

It's like the numlock key in windows is handled slightly differently than
the capslock or scrolllock keys.

David Troesch  |  Atlanta, GA  |  ICQ# 2333123
"You never really lose, until you quit trying."
Funstuff: If you don't talk to your cat about catnip, who will?



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to