gchichester Posted December 19, 2008 Share Posted December 19, 2008 Yes, I'm new to AutoIt, but I have been using Winbatch for awhile. I'm working on automating a vertical market application that didnt have the end-user in mind when it was developed. What Im look for is a simply way to fill out forms without moving back and forth between the keyboard and mouse. I need a way in AutoIt to pause the script while user enter data into a textbox then press say the F12 key to advance the script to the next field. I could not find any function or command that does something like WaitForKey. Any and all input would be appreciated. gchichester Link to comment Share on other sites More sharing options...
TehWhale Posted December 19, 2008 Share Posted December 19, 2008 (edited) #include <Misc.au3> ;;;;code ;Wait for F12 Do Sleep(50) Until _IsPressed("7B") ;;;continue code Edited December 19, 2008 by TehWhale Link to comment Share on other sites More sharing options...
martin Posted December 19, 2008 Share Posted December 19, 2008 Yes, I'm new to AutoIt, but I have been using Winbatch for awhile. I'm working on automating a vertical market application that didnthave the end-user in mind when it was developed. What Im look for is a simply way to fill out forms without moving back and forth betweenthe keyboard and mouse. I need a way in AutoIt to pause the script whileuser enter data into a textbox then press say the F12 key to advance the script to the next field. I could not find any function or command that does somethinglike WaitForKey.Any and all input would be appreciated.gchichesterLook up HotKeySet. But couldn't the user just press TAB? Well I suppose not, so then possibly ControlFocus might be useful to set the focus to a particular edit.Welcome to the AutoIt forums Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
FireFox Posted December 19, 2008 Share Posted December 19, 2008 @Martin I remember that hotkeyset block "hotkeys" for others programs... like hotkey is reserved for script only and context menu of explorer beug perhaps it has been fixed... Thats why i use _IsPressed... Anyway this was a little note from me ... Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted December 19, 2008 Share Posted December 19, 2008 (edited) Welcome To The Forums! ^^; Also.. This Might Help : ; This Is Needed For The.. " _IsPressed () Function " #Include <Misc.Au3> ; _IsPressed () Constants.. Or " HexKeys " Visit : ; http://www.autoitscript.com/forum/index.php?showtopic=73259 ; Example.. ; _WaitForKey ('7B') ; 7B = F12 ; MsgBox ('0','Notice','Key : F12.. Was Pressed','0') Func _WaitForKey ($Hex_Key, $Sleep = '50') Do Sleep ($Sleep) Until _IsPressed ($Hex_Key) EndFunc Edited December 19, 2008 by John2006 Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
gchichester Posted December 20, 2008 Author Share Posted December 20, 2008 Thanks to all for sharing your knowledge so freely and being so fast about it. I think Im going to like working with AutoIt and thanks for such a warm welcome to the forum. Maybe one day soon I'll be able to help a newbie. gchichester 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