Sign in to follow this  
Followers 0
Dirk98

Send("{CAPSLOCK off}") does not work?

5 posts in this topic

Guys, no problem with {NUMLOCK off}, {SCROLLOCK off}, but the CAPSLOCK does not change from On state to Off. Could you please suggest a solution?

Many thanks.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Guys, no problem with {NUMLOCK off}, {SCROLLOCK off}, but the CAPSLOCK does not change from On state to Off. Could you please suggest a solution?

Many thanks.

I can only add that it doesn't work for me either; I can't get it to work for or off or toggle, although sometimes toggle will make the CAPS LOCK led flash on briefly. Looks to me like the function is broken. Tried on a laptop and a PC but no good.

If other people have the same problem then try reporting it as a bug.

EDIT: the following post show that I just didn't know what I was talking about. I didn't know about Opt("SendCapslockMode",0).

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Opt

SendCapslockMode Specifies if AutoIt should store the state of capslock before a Send function and restore it afterwards.
0 = don't store/restore
1 = store and restore (default)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Opt("SendCapslockMode",0)
Send("{CAPSLOCK OFF}")

Opt("SendCapslockMode",0)
While 1
    Sleep(300)
    Send("{CAPSLOCK toggle}")
WEnd

-edit-

Beaten: yeah, like Manadar said.

-edit2-

hehehe

Opt("SendCapslockMode",0)
Send("{CAPSLOCK OFF}")
Send("{NUMLOCK OFF}")
Send("{SCROLLLOCK OFF}")
While 1
    Sleep(100)
    Send("{NUMLOCK toggle}")
    Sleep(100)
    Send("{CAPSLOCK toggle}")
    Sleep(100)
    Send("{SCROLLLOCK toggle}")
WEnd
Edited by Nahuel

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Opt("SendCapslockMode",0)
Send("{CAPSLOCK OFF}")

Opt("SendCapslockMode",0)
While 1
    Sleep(300)
    Send("{CAPSLOCK toggle}")
WEnd

-edit-

Beaten: yeah, like Manadar said.

-edit2-

hehehe

Opt("SendCapslockMode",0)
Send("{CAPSLOCK OFF}")
Send("{NUMLOCK OFF}")
Send("{SCROLLLOCK OFF}")
While 1
    Sleep(100)
    Send("{NUMLOCK toggle}")
    Sleep(100)
    Send("{CAPSLOCK toggle}")
    Sleep(100)
    Send("{SCROLLLOCK toggle}")
WEnd

Thank you very much, Manadar and Nahuel.

Nahuel, I'll use your code on Christmas eve. :)

Edited by Dirk98

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