litlmike Posted December 10, 2004 Share Posted December 10, 2004 Total noob question: I am trying to do a very simple task. I want a script that will run in the background, Type "{ENTER}-oncam" whenever I press SHIFT + a Type "{ENTER}-offcam" whenever I press SHIFT + s And as bonus, it would be nice to be able to pause the script whenever I press PAUSE, but not neccesary. Thanks for the help. Here is what I did so far (probably way off): ; ; Script Function: ; Type "{ENTER}-oncam", or "{ENTER}-offcam" ; Ability to pause script HotKeySet("{+a}", "Oncam") HotKeySet("{+s}", "Offcam") Func Oncam() Send("{ENTER}-oncam") Sleep(100) EndFunc Func Offcam() Send("{ENTER}-offcam") Sleep(100) EndFunc ; Finished! _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
Developers Jos Posted December 10, 2004 Developers Share Posted December 10, 2004 Total noob question:I am trying to do a very simple task.I want a script that will run in the background,Type "{ENTER}-oncam" whenever I press SHIFT + aType "{ENTER}-offcam" whenever I press SHIFT + sAnd as bonus, it would be nice to be able to pause the script whenever I press PAUSE, but not neccesary.<{POST_SNAPBACK}>Looks close to me... what isn't working ?As far as the Pause question.. The helpfile is your friend, it contains this very example.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
litlmike Posted December 10, 2004 Author Share Posted December 10, 2004 Hey thanks for the feedback. I am begining to understand! However, after I compiled the script, and ran it, opened Notepad.exe, and pressed SHIFT + a Nothing happened. Did I do something wrong? Attached is a copy of the .exe _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
Developers Jos Posted December 10, 2004 Developers Share Posted December 10, 2004 Hey thanks for the feedback. I am begining to understand!However, after I compiled the script, and ran it, opened Notepad.exe, and pressedSHIFT + aNothing happened. Did I do something wrong?Attached is a copy of the .exe<{POST_SNAPBACK}>Easier when you post the script source .... Think that Shift+a only works with the current unstable.v 3.0.102 has this limit:Single keys of a-z or A-Z. At least one Alt, Ctrl, or Win modifier is required with these keys. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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