Sign in to follow this  
Followers 0
Astaroth

Q: How to send text when key is pressed

3 posts in this topic

Can someone tell me how to send for ex. "hello!" when I press the H key? Is there a way to do that in autoit?

Thanks in advance.

Share this post


Link to post
Share on other sites



Hi!

Please look in the help file in the future as this is answered there.

But I am going to provide you with an example :)

HotKeySet("h","_SendHello")
Do
    SLeep(10)
    ;blabla
Until 1+1=3

Func _SendHello()
    HotKeySet("H")
    Send("hello")
    HotKeySet("H","_SendHello")
EndFunc

Broken link? PM me and I'll send you the file!

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  
Followers 0