Jump to content
Sign in to follow this  
Astaroth

Q: How to send text when key is pressed

Recommended Posts

Astaroth

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
monoceres

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.