Jump to content

Caps Lock toggle w/o {CAPSLOCK toggle}


aush
 Share

Recommended Posts

Create a function, with a boolean param, where the boolean will conditionally break up the characters, and append a '+' (shift) in front of the chars prior to send or controlsend

edit: or, you can use StringToASCIIArray, and logically change lower to upper, or upper to lower (add or subtract 32), then send with chr()...make sure to only do this on the range of alpha chars...also, if you want this outside of a scripted string, you probably wont get much help, 'cause that requires key logging

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

  • Moderators

If you're working with a string of characters, just read the string in and then use StringUpper. Ex:

$var = InputBox("Type in anything you want", "")
MsgBox(0, "", StringUpper($var))

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Moderators

True, it is more a wholesale change, but you could incorporate a StringSplit with StringUpper and StringLower. Just depends on the situation, which the OP was not too clear on.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

×
×
  • Create New...