Jump to content
Sign in to follow this  
TomCat

Problem with Script :(

Recommended Posts

TomCat

Hi i have this little Scipt:

hotkeyset("^a", "_send")

HotkeySet("{pause}", "Kill")

While 1

Sleep(100)

WEnd

Func _send()

Send("{enter}")

sleep(5)

Send("This is a little test")

sleep(5)

Send("{enter}")

EndFunc

Exit

Func Kill()

Exit

EndFunc

But when i start is pressing ctrl+a it blocks my ctrl key all the time (seams like a pressed down ctrl key) and runs when i press only a.

And the other problem is that the kill funktion doesn't work after is press ctrl+a :)

Some idea to fix this bug ?

Share this post


Link to post
Share on other sites
SmOke_N

Some programs are very choosy about capital letters and CTRL keys, i.e. "^A" is different to "^a". The first says CTRL+SHIFT+A, the second is CTRL+a. If in doubt, use lowercase!

Also note that some combination of keys can not be used if it is a windows ordained combination already.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
TomCat

i found the reason :)

i need to use ControlSend and not send.

now it works fine ;)

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.