Jump to content

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


Dirk98
 Share

Recommended Posts

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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...