chssoccer Posted December 21, 2007 Share Posted December 21, 2007 If I want to call a function in an compiled script could I use ShellExecute like this to do it?: ShellExecute("ahkscript.exe", "functionnamethatneedstobecalled") Link to comment Share on other sites More sharing options...
blakel Posted December 21, 2007 Share Posted December 21, 2007 No The second argument is for command line parameters. This passes strings to the application. If it is an autoit script, look up 'Command Line Parameters' in the AutoIT help file. Link to comment Share on other sites More sharing options...
therks Posted December 21, 2007 Share Posted December 21, 2007 Only if your compiled script looks like this: If $CmdLine[0] > 0 Then Switch $CmdLine[1] Case 'functionnamethatneedstobecalled' functionnamethatneedstobecalled() EndSwitch EndIf Func functionnamethatneedstobecalled() ; Do stuff EndFunc My AutoIt Stuff | My Github 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