Sign in to follow this  
Followers 0
siegefried

Is there a reason my hotkey isn't working?

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

 

Share this post


Link to post
Share on other sites

Run('notepad.exe')

Sleep(4000)

Send("{#}")

Send("{SPACE}")

or

Send("{#}{SPACE}")

Exit


I interest am many quite in AutoitScript.From that is [http://cafe.naver.com/autoitscript[/color]] Korea of cafe(blog) to be operating, [size="2"][color="#ff00ff"]English cannot well[/size].Many help it requests.To read, it stands it thanks.

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