Jump to content

Pressing Shift + b


Recommended Posts

Hmmm. Interesting, I tested it in Notepad and "send("{LSHIFT}+b")" worked correctly. I don't see anything in the documentation about using + for shifit, but it does work... :lmao:

My way works just the same though. Thanks for the clarification! I'm that much more Intelligent today.

That could make it eliminate the shift since you are doing it twice.

There is no reason for that. Simply Send("+a+d+c")

That will write

ADC

-Para

<{POST_SNAPBACK}>

Link to comment
Share on other sites

  • Developers

I don't see anything in the documentation about using + for shifit, but it does work...  :lmao:

<{POST_SNAPBACK}>

Remarks

See the Appendix for some tips.

The "Send" command syntax is similar to that of ScriptIt and the Visual Basic "SendKeys" command. Characters are sent as written with the exception of the following characters:

'!'

This tells AutoIt to send an ALT keystroke, therefore Send("This is text!a") would send the keys "This is text" and then press "ALT+a".

N.B. Some programs are very choosy about capital letters and ALT keys, i.e. "!A" is different to "!a". The first says ALT+SHIFT+A, the second is ALT+a. If in doubt, use lowercase!

'+'

This tells AutoIt to send a SHIFT keystroke, therefore Send("Hell+o") would send the text "HellO". Send("!+a") would send "ALT+SHIFT+a".

'^'

This tells AutoIt to send a CONTROL keystroke, therefore Send("^!a") would send "CTRL+ALT+a".

N.B. Some programs are very choosy about capital letters and CTRL keys, i.e. "^A" is different to "^a". The first says CTRL+SHIFT+A, the second is CTRL+a. If in doubt, use lowercase!

'#'

The hash now sends a Windows keystroke; therefore, Send("#r") would send Win+r which launches the Run dialog box.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

How du i make it detect that im pressing Shift + b = B

What is the "hotkey" for shift, like "!" is for the ALT key?

<{POST_SNAPBACK}>

As far as I see, he wants to assign a hotkey..

But I'm starting to wonder, as everybody else thinks otherwise.. :lmao:

@Wb-FreeKill :

If you want to assign a hotkey use the function HotKeySet..

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...