Jump to content

Basic how to with keyboard shortcuts


 Share

Recommended Posts

Hi,

I'm editing a script, and wanted to change it from a GUI click to a keyboard selection. I need to know how to tell the script to click a keyboard stroke like the number "4" or "12". I was looking through the help, and all I could find was this:

$w = Number(1+2+10) ;returns 13

$x = Number("3.14") ;returns 3.14

$y = Number("24/7") ;returns 24

$z = Number("tmp3") ;returns

I don't think this will work. Any help is apriciated!

Many thanks,

Happy DOOD!!

Link to comment
Share on other sites

could be.. not totally sure what your going for..

Send('4')

Basically, I am changing this:

$Button1 = "AfxWnd42u23"

$Button2 = "AfxWnd42u25"

$Button3 = "AfxWnd42u25"

$Button4 = "AfxWnd42u26"

$Button5 = "AfxWnd42u27"

Which is telling it to click a button in a window

To this:

$Button1 = Send('4')

$Button2 = Send('4')

$Button3 = Send('5')

$Button4 = Send('5')

$Button5 = Send('6')

Which is (hopefully) going to tell it to enter the nubmer 4 5 or 6. Is this correct? I tried the changes, but it doesn't seem to be doing anything at all :whistle:

Link to comment
Share on other sites

Can you supply an example so we can understand completely what you mean?

Spoiler

 

"...Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like.My crime is that of outsmarting you, something that you will never forgive me for." --The Mentor

"Mess with the best, die like the rest!!" -Hackers

"This above all to thine own self be true." -William Shakespeare

"Corruption is only as corrupted as the individual makes it out to be." -i386

 

style7,AutoIt.png

 

 

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