Jump to content

New to Autoit help with something very simple


grzn
 Share

Recommended Posts

like the tittle says, im new to autoit and dont know how to perfom something that i would like to do,

its like emulate my pressing but with two keys

in short i would like to press and hold the E key  and make autoit to send and hold E and Q.

on the other hand, if i press and realese E, i would like Autoit to send and realese E and Q.


any idea how can i do that? i dont find anything in the readme file. Thank you in advance

Link to comment
Share on other sites

what have you tried?

you say you find nothing in the readme file (I will presume you mean the help file????) - what about Send() ????

 

To hold a key down
    Send("{a down}") ;Holds the A key down
    Send("{a up}") ;Releases the A key

 

a quick Google search for "autoit hold a key" produced several results that would have told you that.......

Link to comment
Share on other sites

  • Moderators

Also, can you explain more about what you are attempting to do? We've all been on "Day 1" before, but you may find if you explain in detail what application you're trying to manipulate, or what the end goal is, there may be a much easier way to accomplish what you're trying to do.

"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

Check the help file, useful keywords include Hotkeyset, Send, Senddown. Look at the example scripts for usage, and at the related functions for other ideas. You can also start typing a function name in SciTE, and you can see possible functions in autocomplete or press F1 to open the help file to that function. The help file is awesome :D

Try writing some code, and if you still can't get it to work post back.

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

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