Jump to content

Problem with Script :(


 Share

Recommended Posts

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 ?

Link to comment
Share on other sites

  • Moderators

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.

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