Seminko Posted April 22, 2014 Share Posted April 22, 2014 Hey forum, we have a custom built piece of ordering software at our firm. Many of my colleagues forget adding one piece of information into the orders. Now, I would like to create a script that would remind them to add the information at the very end of entering the order. (endless while loop with IF statements to call a MsgBox function) The thing is everyone runs the program at different "resolution" so I cannot use a simple pixelsearch. Is there a way to use a some form of HotKeySet but use it as a key sequence? Let me rephrase... Once keys "123" are pressed consecutively display a MsgBox? Or better yet, do you see any other alternative? Thanks Link to comment Share on other sites More sharing options...
AdamUL Posted April 22, 2014 Share Posted April 22, 2014 Look at the> HotStrings UDF, it may help with what you are trying to do with key sequences. Also, see if you can use the AutoIt Window Info tool to get information about the controls in the ordering software's window. Then look at the control functions in the Help File. If you can work with the window's controls directly, then you do not have to worry about screen resolution, and you may be able to enter the information directly into a control. Adam Link to comment Share on other sites More sharing options...
Seminko Posted April 22, 2014 Author Share Posted April 22, 2014 Look at the> HotStrings UDF, it may help with what you are trying to do with key sequences. Also, see if you can use the AutoIt Window Info tool to get information about the controls in the ordering software's window. Then look at the control functions in the Help File. If you can work with the window's controls directly, then you do not have to worry about screen resolution, and you may be able to enter the information directly into a control. Adam Hello Adam... not help file available :-/ that's why I'm choosing this route. HotStrings looks promising. Thank you Link to comment Share on other sites More sharing options...
Seminko Posted April 22, 2014 Author Share Posted April 22, 2014 I do not seem to be able to make HotStringSet work with numbers... Tried: #include <HotString.au3> HotStringSet("{1}{1}{1}", "examplefunction") While 1 Sleep(10) WEnd Func examplefunction() MsgBox(0,"","You typed callme! :)") EndFunc Doesn't work... Link to comment Share on other sites More sharing options...
JohnOne Posted April 22, 2014 Share Posted April 22, 2014 Hello Adam... not help file available :-/ that's why I'm choosing this route. HotStrings looks promising. Thank you What does that even mean? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
jdelaney Posted April 22, 2014 Share Posted April 22, 2014 (edited) here: HotStringSet("111", "examplefunction") HotStringSet("{NUM 1}{NUM 1}{NUM 1}", "examplefunction") While 1 Sleep(10) WEnd Func examplefunction() MsgBox(0,"","You typed callme! :)") EndFunc I guess, if you want all possible entries of 1, and numpad 1: HotStringSet("111", "examplefunction") HotStringSet("{NUM 1}{NUM 1}{NUM 1}", "examplefunction") HotStringSet("1{NUM 1}{NUM 1}", "examplefunction") HotStringSet("11{NUM 1}", "examplefunction") HotStringSet("1{NUM 1}1", "examplefunction") HotStringSet("{NUM 1}11", "examplefunction") HotStringSet("{NUM 1}{NUM 1}1", "examplefunction") HotStringSet("{NUM 1}1{NUM 1}", "examplefunction") HotStringSet("{NUM 1}{NUM 1}{NUM 1}", "examplefunction") Edited April 22, 2014 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
AdamUL Posted April 23, 2014 Share Posted April 23, 2014 Seminko, Your welcome. On an additional note, if you can access the forum, you can access the online version of the Help File. Adam Link to comment Share on other sites More sharing options...
Seminko Posted April 23, 2014 Author Share Posted April 23, 2014 Thought you meant the help file for out software... Link to comment Share on other sites More sharing options...
AdamUL Posted April 23, 2014 Share Posted April 23, 2014 Both are the same, so does it matter, as long as you can access the Help File? Adam 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