SK_IGNORECAPS Bug

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
KTT
Newbie
Posts: 13
Joined: Thu Jul 02, 2009 10:26 pm

SK_IGNORECAPS Bug

Post by KTT » Sat Aug 21, 2010 9:48 am

I'm running MS Version 12.0.2 on Windows 7 x64 Ultimate.

I don't think SK_IGNORECAPS is doing what's it's supposed to:

Code: Select all

Let>SK_IGNORECAPS=1
Send>123./Hello World!
With the keyboard's Caps Lock key OFF:

Code: Select all

123./Hello World!
With the keyboard's Caps Lock key ON:

Code: Select all

!@#>?Hello World1
This should be exactly the same as when the Caps Lock key is OFF.
Last edited by KTT on Mon Aug 23, 2010 6:52 pm, edited 1 time in total.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Aug 23, 2010 9:10 am

Thanks for the report. Will get this checked out.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

KTT
Newbie
Posts: 13
Joined: Thu Jul 02, 2009 10:26 pm

Post by KTT » Mon Aug 23, 2010 7:09 pm

Thanks, Marcus.

Until SK_IGNORECAPS is fixed, I'm using the workaround below.

Instead of:

Code: Select all

Let>SK_IGNORECAPS=1
Send>123./Hello World!
use:

Code: Select all

// Turn off Caps Lock explicitly
LibFunc>User32,GetKeyState,CAP_STATE,20
CapsOff

Send>123./Hello World!

Label>END_OF_SCRIPT
// Return to original states
If>{%CAP_STATE%=1}
    CapsOn
EndIf

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts