zFrank Posted July 2, 2008 Share Posted July 2, 2008 i am learning autoit myself for 3 months. i have faced some problems please tell me how to do these tasks. 1- my exe name is "AutomatedI.exe" but i want to change its process name to "zFrank.exe" 2- how can i set time out for my gui While 1 $MSG = GUIGetMsg() If $MSG = $OK Then GUIDelete($GUI) ExitLoop EndIf If $MSG = $About Then MsgBox(0, "Information", "Description: Blank"& @CRLF &""& @CRLF &"Contact: Blank") EndIf WEnd i also used Sleep(5000) but it disables the button. 3- how can i send a command in run program of window without opening it and sending direct command to it. 4- how can i Right click on a tray icon and select a option from it? please please help me i have many other question but first want answer to these. thanks [font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php$Life = "Happy" If @Error Then $Life = "Risk" Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 2, 2008 Share Posted July 2, 2008 i am learning autoit myself for 3 months. i have faced some problems please tell me how to do these tasks.1- my exe name is "AutomatedI.exe" but i want to change its process name to "zFrank.exe"Why? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
zFrank Posted July 2, 2008 Author Share Posted July 2, 2008 @ PsaltyDS its not important, i just want to do it to give my name for its process. will you please now help me? [font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php$Life = "Happy" If @Error Then $Life = "Risk" Link to comment Share on other sites More sharing options...
ChrisL Posted July 2, 2008 Share Posted July 2, 2008 Change the exe name to zFrank.exe [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...
zFrank Posted July 2, 2008 Author Share Posted July 2, 2008 Change the exe name to zFrank.exegood jokei know i can easily change the name of my exe to change its process name.by the way this is not a problem.can you help me in other situations i asked for? [font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php$Life = "Happy" If @Error Then $Life = "Risk" Link to comment Share on other sites More sharing options...
TehWhale Posted July 2, 2008 Share Posted July 2, 2008 i am learning autoit myself for 3 months. i have faced some problems please tell me how to do these tasks. 1- my exe name is "AutomatedI.exe" but i want to change its process name to "zFrank.exe" 2- how can i set time out for my gui While 1 $MSG = GUIGetMsg() If $MSG = $OK Then GUIDelete($GUI) ExitLoop EndIf If $MSG = $About Then MsgBox(0, "Information", "Description: Blank"& @CRLF &""& @CRLF &"Contact: Blank") EndIf WEnd i also used Sleep(5000) but it disables the button. 3- how can i send a command in run program of window without opening it and sending direct command to it. 4- how can i Right click on a tray icon and select a option from it? please please help me i have many other question but first want answer to these. thanks 1 - ... 2 - Sleep() 3 - Run() @SW_HIDE, ControlSend() 4 - Create a tray icon Link to comment Share on other sites More sharing options...
ChrisL Posted July 2, 2008 Share Posted July 2, 2008 (edited) good joke i know i can easily change the name of my exe to change its process name. by the way this is not a problem. can you help me in other situations i asked for? 2. $Timer=TimerInit() While 1 $MSG = GUIGetMsg() If $MSG = $OK Then GUIDelete($GUI) ExitLoop EndIf If $MSG = $About Then MsgBox(0, "Information", "Description: Blank"& @CRLF &""& @CRLF &"Contact: Blank") EndIf If TimerDiff($Timer) >= 20 * 1000 then Exit;after 20 seconds exit or you could exitloop and proceed to the next part of the script Wend Edited July 2, 2008 by ChrisL [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...
zFrank Posted July 2, 2008 Author Share Posted July 2, 2008 1 - ...2 - Sleep()3 - Run() @SW_HIDE, ControlSend()4 - Create a tray iconhey! thanks for the reply.1- leave it2- where should i add sleep because adding sleep disables all button in gui3- any example4- how can i create a tray icon? i want to Right click on a tray icon and select a option from it.thanks [font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php$Life = "Happy" If @Error Then $Life = "Risk" Link to comment Share on other sites More sharing options...
zFrank Posted July 2, 2008 Author Share Posted July 2, 2008 2. $Timer=TimerInit() While 1 $MSG = GUIGetMsg() If $MSG = $OK Then GUIDelete($GUI) ExitLoop EndIf If $MSG = $About Then MsgBox(0, "Information", "Description: Blank"& @CRLF &""& @CRLF &"Contact: Blank") EndIf If TimerDiff($Timer) >= 20 * 1000 then Exit;after 20 seconds exit or you could exitloop and proceed to the next part of the script Wend thanks a lot but also tell me about other problems. sorry for asking many questions in one thread [font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php$Life = "Happy" If @Error Then $Life = "Risk" Link to comment Share on other sites More sharing options...
ChrisL Posted July 2, 2008 Share Posted July 2, 2008 (edited) I'm not sure I fully understand number 3. a ) Do you need to launch a program and send some command line arguments to it? or b ) Do you need to interact with a window without setting it in focus. i.e. leave it minimized? For a ) you use Run("PathToProgram.exe CommandLineArg1 CommandLineArg2" , "FolderOfProgram") For b ) you need to look in the help file for ControlCommand() ControlSend() and other "Control" related functions Not sure anout number 4! Edit: Bloody smilies didn't like b ) with out a space it does this Edited July 2, 2008 by ChrisL [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...
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