Jump to content

Is there a reason my hotkey isn't working?


Recommended Posts

Hi All

I've just started learning AutoIT, so do forgive me if my question is foolish. I am currently trying to automate filling in a form that allows me to do mass bookings for my customers. The script is as follows:

HotKeySet("#Space", "_Start")

While 1

Sleep(10)

WEnd

Func _Start()

WinWaitActive ("Booking Calendar - Add Booking Event - Mozilla Firefox")

Send ("+{TAB 16}")

Send ("{Space}")

Send ("{Tab}")

Send ("Test")

Send ("{Tab}")

Send ("66666666")

Send ("{Tab}")

Send ("noemail@test.com")

Send ("{Tab}")

Send ("Test")

EndFunc

If I only use the function itself, from WinWaitActive to Send ("Test"), it works. The moment I try to use a hotkey to activate filling in the form though, pressing Windows + Spacebar doesn't do anything. Has there been anything that I overlooked? Thank you very much for your help!

Oops, I realized my silly error. It should have been #{Space}.

Edited by siegefried
Link to post
Share on other sites

From HotKeySet() help file:

The key combination to use as the hotkey. Same format as Send().

Look at the Send() function in the helpfile at the two keys you are trying to bind.

EDIT: {#}{SPACE}

Edited by mechaflash213
Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...