kpu Posted November 11, 2005 Posted November 11, 2005 I can't find anything on this, but maybe I'm a blind bastard... Is there a way to send switchs to your auto it program to do cerntain things. So if you did. "myprog.exe /?" You would get a help message box? Or something like "myprog.exe /input" If $prog_switch = "/input" then ;Do this Else ;Do this Endif Thanks http://www.kpunderground.com
GaryFrost Posted November 11, 2005 Posted November 11, 2005 (edited) If $CmdLine[0] > 0 Then If $CmdLine[1] = "/?" Then MsgBox(0,"Help", "example of command line params") EndIf EndIf Edited November 11, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
kpu Posted November 11, 2005 Author Posted November 11, 2005 Thanks for the quick response! My program is called "Member_test.exe" With you code, I would shell this command "Member_test.exe /?" to get the messagebox? If so, it's not working for me. http://www.kpunderground.com
ChrisL Posted November 11, 2005 Posted November 11, 2005 (edited) Thanks for the quick response!My program is called "Member_test.exe"With you code, I would shell this command "Member_test.exe /?" to get the messagebox?If so, it's not working for me.Should do.. this is from one I used to copy one folder to another sending the 2 directories from the command line.If $cmdline[0] = 2 Then $DirSearch = $cmdline[1] $Destination = $cmdline[2] StartCopy ($DirSearch,$Destination) Else MsgBox(0,'Invalid # of parameters!',$cmdline[0]&' is an Invalid number of parameters.') Exit EndIfso i would type DirCopy.exe D:\start D:\End this would send the 2 folder names to the function startcopy()I think I had issues when my program name was too long, try renaming your program to 8chr length name Edited November 11, 2005 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
kpu Posted November 14, 2005 Author Posted November 14, 2005 Thanks Guys! I was trying to do this from a DOS window and it wasn't working so I created a "Windows" shortcut and added the switch to it. It now works great! http://www.kpunderground.com
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