Jump to content
Sign in to follow this  
grzn

New to Autoit help with something very simple

Recommended Posts

grzn

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

Share this post


Link to post
Share on other sites
TechCoder

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

Share this post


Link to post
Share on other sites
JLogan3o13

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
corgano

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

Share this post


Link to post
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
Sign in to follow this  

×