siegefried Posted June 7, 2012 Share Posted June 7, 2012 (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 June 7, 2012 by siegefried Link to comment Share on other sites More sharing options...
Mechaflash Posted June 7, 2012 Share Posted June 7, 2012 (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 June 7, 2012 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 comment Share on other sites More sharing options...
davidkim Posted June 8, 2012 Share Posted June 8, 2012 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now