Drew Posted June 4, 2007 Share Posted June 4, 2007 They should have a list for all the HotKey function abreviations... What would i put for the hotkey to START the script... Link to comment Share on other sites More sharing options...
Developers Jos Posted June 4, 2007 Developers Share Posted June 4, 2007 They should have a list for all the HotKey function abreviations...What would i put for the hotkey to START the script...What are you talking about ? 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...
Drew Posted June 4, 2007 Author Share Posted June 4, 2007 Where I can press a HotKey and it will begin the script. For example.. HotKeySet("{F9}", "MyExit") Is what I use to exit the script. Link to comment Share on other sites More sharing options...
ChrisL Posted June 4, 2007 Share Posted June 4, 2007 all of these work as hotkeys HotkeySet("=","Start") HotkeySet("<","Start") HotkeySet(">","Start") HotkeySet("/","Start") While 1 Sleep (200) WEnd Func Start() Msgbox(0,"","Start") Exit EndFunc What are you trying to do? [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Developers Jos Posted June 4, 2007 Developers Share Posted June 4, 2007 Where I can press a HotKey and it will begin the script. For example.. HotKeySet("{F9}", "MyExit")Is what I use to exit the script.Yes...... but I dont think you answered my question .... which is : What are you asking us to list ? 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...
Drew Posted June 4, 2007 Author Share Posted June 4, 2007 (edited) no list .... just what the abbreviation is to start the program for a hotkey. CODEhotkeyset("{END}","EndProgram") hotkeyset("{HOME}","StartProgram") Opt("PixelCoordMode", 2) #include <GUIConstants.au3> GUICreate("Pixel Search", 200, 200, Default, Default) GUICtrlCreateIcon(@ProgramFilesDir & "\AutoIt3\Icons\au3.ico", -1, 76, 64, 48, 48) GUISetState() PixelSearch (5, 5, 796, 796, "0x745028", 5, 1) If Not @Error Then MsgBox(4096, "Pixel Results", "X: " & $Pixel[0] & ", Y: " & $Pixel[1]) EndIf While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete() Func EndProgram ( Func EndProgram() ) Exit EndFunc This is what my Error is: Func EndProgram Error: Baddly formatted "Func" statement. Edited June 4, 2007 by Drew Link to comment Share on other sites More sharing options...
Developers Jos Posted June 4, 2007 Developers Share Posted June 4, 2007 no list .... just what the abbreviation is to start the program for a hotkey.To start another program ? Use Run() or Runwait() . no list .... just what the abbreviation is to start the program for a hotkey. This is what my Error is: Func EndProgram Error: Baddly formatted "Func" statement.This is wrong : Func EndProgram ( Func EndProgram() ) Exit EndFunc 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...
Drew Posted June 4, 2007 Author Share Posted June 4, 2007 What's the right way than? its all one program... i just want it to wait to start until i hit a hotkey to start it Link to comment Share on other sites More sharing options...
ResNullius Posted June 4, 2007 Share Posted June 4, 2007 (edited) What's the right way than? its all one program... i just want it to wait to start until i hit a hotkey to start it You have no "Startprogram" Function defined, so make the main part of your program into the Startprogram function, like this: hotkeyset("{END}","EndProgram") hotkeyset("{HOME}","StartProgram") Opt("PixelCoordMode", 2) #include <GUIConstants.au3> While 1 Sleep(100) WEnd Func StartProgram() GUICreate("Pixel Search", 200, 200, Default, Default) GUICtrlCreateIcon(@ProgramFilesDir & "\AutoIt3\Icons\au3.ico", -1, 76, 64, 48, 48) GUISetState() PixelSearch (5, 5, 796, 796, "0x745028", 5, 1) If Not @Error Then MsgBox(4096, "Pixel Results", "X: " & $Pixel[0] & ", Y: " & $Pixel[1]) EndIf While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete() EndFunc Func EndProgram() Exit EndFunc Is that what you want? Edited June 4, 2007 by ResNullius Link to comment Share on other sites More sharing options...
Obi-w00t Posted June 4, 2007 Share Posted June 4, 2007 I have some examples below, first is one to pause the execution of the program until the button is pressed. The other is what I think you want to do. This script will wait until the button is pressed. expandcollapse popup;Sets it to be paused and sets hotkeys Global $Paused = True hotkeyset("{END}","EndProgram") hotkeyset("{HOME}","StartProgram") ;Wait until the paused variable is false Do Until $Paused = False ; - The rest of the program MsgBox(0,"Now","Rest of script") While 1 ;Idles forever WEnd ;Functions, are not run as part of the main program loops ;Sets paused false, will run rest of program Func StartProgram() Global $Paused = False EndFunc ;Exit program Func EndProgram() Exit EndFunc oÝ÷ ØÚ-xZ½ç!jxvØ^¦,^ÇÈlªæ«y«¢+Ø)¡½ÑåÍÐ ÅÕ½Ðíí9ôÅÕ½Ðì°ÅÕ½Ðí¹AɽɴÅÕ½Ðì¤)¡½ÑåÍÐ ÅÕ½Ðíí!=5ôÅÕ½Ðì°ÅÕ½ÐíMÑÉÑMÉ ÅÕ½Ðì¤)=ÁÐ ÅÕ½ÐíA¥á± ½½É5½ÅÕ½Ðì°È¤(¥¹±Õ±ÐíU% ½¹ÍѹÑ̹ÔÌÐì((í ÉÑU$)U% ÉÑ ÅÕ½ÐíA¥á°MÉ ÅÕ½Ðì°ÈÀÀ°ÈÀÀ°Õ±Ð°Õ±Ð¤)U% Ñɱ ÉÑ%½¸¡Aɽɵ¥±Í¥ÈµÀìÅÕ½ÐìÀäÈíÕѽ%ÐÌÀäÈí%½¹ÌÀäÈíÔ̹¥¼ÅÕ½Ðì°´Ä°ÜØ°ØаÐà°Ðà¤)U%MÑMÑÑ ¤((í ¡ÌѼͥá¥ÐٹСÁÁ¹Ì)]¡¥±Ä($ÀÌØíµÍôU%Ñ5Í ¤(%MÝ¥Ñ ÀÌØíµÍ($% ÍÀÌØíU%}Y9Q} 1=M($$%á¥Ñ1½½À(%¹MÝ¥Ñ )]¹(í±ÑU$½¸á¥Ð)U%±Ñ ¤(((íչѥ½¹Ì´Ý¥±°±±Ý¥Ñ ¡½ÑåÌ((íá¥ÐÑ¡Áɽɴ½¸ÁÉÍÍ¥¹9)Õ¹¹Aɽɴ ¤(%á¥Ð)¹Õ¹((íMÑÉÐÍÉ ´Ý¥±°ÍÉ ½ÈÜÐÔÀÈà¹ÉÑÕɸѡÁ¥á°¼µ½É¥¹ÑÌ)Õ¹MÑÉÑMÉ ¤($ÀÌØíA¥á°ôA¥á±MÉ Ô°Ô°ÄÀÈаÜØà°ÅÕ½ÐìÁàÜÐÔÀÈàÅÕ½Ðì°Ô°Ä¤($í%Á¥á°½±½ÕÈÝ̽չ°ÉÑÕɸѡ`¹d(%%9½ÐÉɽÈQ¡¸($%5Í ½à ÐÀäØ°ÅÕ½ÐíA¥á°IÍÕ±ÑÌÅÕ½Ðì°ÅÕ½Ðí`èÅÕ½ÐìµÀìÀÌØíA¥á±lÁtµÀìÅÕ½Ðì°dèÅÕ½ÐìµÀìÀÌØíA¥á±lÅt¤(%¹%)¹Õ¹ Just as I was typing this looks like ResNullius beat me to an explanation - oh well! 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