rajesh Posted January 7, 2006 Share Posted January 7, 2006 (edited) I am newbie to this site .We have a requirement in our organisation.I want to automate the process of starting the stinger and scanning the computer, the same tool will be sent across the domain thro login script to all the users of the Domain. I have tried the following things, i created the script autoinstall.au3 with following lines, ; Run the FixMytob installer Run("stng259.exe") WinWaitActive("Stinger 259", "&ScanNow") Send("!s") I compiled the autoinstall.au3 and executed the scipt, The Stinger application is opening but it is not starting the scan process. Can anybody pl tell me ,what is mistake in the script or any missing things Edited January 7, 2006 by rajesh Link to comment Share on other sites More sharing options...
ChrisL Posted January 7, 2006 Share Posted January 7, 2006 Is there any reason these 2 lines are commented out? ;WinWaitActive("Stinger 259", "&ScanNow") ;Send("!s") You haven't done this by accident have you? [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...
ChrisL Posted January 7, 2006 Share Posted January 7, 2006 This works on Mine Run("stng259.exe") WinWaitActive("Stinger") Send("s") [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...
Moderators SmOke_N Posted January 7, 2006 Moderators Share Posted January 7, 2006 (edited) Run("stng259.exe")WinWaitActive("Stinger 259", "&ScanNow")Send("!s")Can anybody pl tell me ,what is mistake in the script or any missing thingsWell, if this is your entire code, then I doubt anyone can tell you what exactly your mistake is. You don't have anything as the title of your topic states referring to strings at all.Edit: I actually am assuming from ChrisL's post that you are trying to automate a 3rd party application. I misunderstood this to be a native autoit script to do the work. My apologies. Edited January 7, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
ChrisL Posted January 7, 2006 Share Posted January 7, 2006 (edited) I don't know if you have considered this and also you would need to check the copyright on Stinger but you could potentially use Fileinstall and build the stinger into your script and run it from a location only having to distribute a single file. fileinstall ("stng259.exe", @tempdir & "\stng259.exe", 1) Run(@tempdir & "\stng259.exe", @tempdir) WinWaitActive("Stinger") Send("s") Just make sure that when you compile the script the stinger program is in the same folder as the script Edited January 7, 2006 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...
rajesh Posted January 7, 2006 Author Share Posted January 7, 2006 Thanks to everybody, Christ's scirpt is working fine for me. I have one more requirement , I dont want users to cancel the scanning . Is their any way to run the Stinger application without interuption. Thanks in Advance Link to comment Share on other sites More sharing options...
ChrisL Posted January 7, 2006 Share Posted January 7, 2006 I must be bored!! fileinstall ("stng259.exe", @tempdir & "\stng259.exe", 1) Run (@tempdir & "\stng259.exe /ADL /LOG /GO /Silent", @tempdir) Will run silently with no gui. Remove /Silent if you want a Gui /Go start scan /ADL all local drives to be scanned /Log create log [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...
ChrisL Posted January 7, 2006 Share Posted January 7, 2006 If you want one with the GUI showing but locked out of gui until end of scan or ALT+F9 is pressed.. ;Alt + F9 to unlock the stinger screen HotKeySet("!{F9}", "unlock") fileinstall ("stng259.exe", @tempdir & "\stng259.exe", 1) Run (@tempdir & '\stng259.exe /ADL /LOG /GO', @tempdir) WinWait ("Stinger") $Lock = 1 While 1 $Status = StatusbarGetText ( "Stinger" ) If $Status = "Scanning..." and $Lock = 1 Then WinSetState ("Stinger", "", @SW_DISABLE) Else ExitLoop Endif Sleep (1000) Wend WinSetState ("Stinger", "", @SW_ENABLE) Func unlock() $Lock = 0 EndFunc [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...
Moderators SmOke_N Posted January 7, 2006 Moderators Share Posted January 7, 2006 I must be bored!!Is it official? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
JerryD Posted January 7, 2006 Share Posted January 7, 2006 I am newbie to this site .We have a requirement in our organisation.I want to automate the process of starting the stinger and scanning the computer, the same tool will be sent across the domain thro login script to all the users of the Domain.I have tried the following things, i created the script autoinstall.au3 with following lines,; Run the FixMytob installerRun("stng259.exe")WinWaitActive("Stinger 259", "&ScanNow")Send("!s") I compiled the autoinstall.au3 and executed the scipt,The Stinger application is opening but it is not starting the scan process.Can anybody pl tell me ,what is mistake in the script or any missing thingsYou can use the following command line switches:/ADL- Scan all local drives/GO - Start scanning immediately/LOG - Save the log file after scans/SILENT - Do not display graphical interfaceRun stng259.exe /? to display these options. Link to comment Share on other sites More sharing options...
rajesh Posted January 9, 2006 Author Share Posted January 9, 2006 Thanks to everybody,Now the scirpt for stinger removal tool is working in the background.We have one more requirement , we want to run removal tools like Stinger,Fixmytob,Fixnetsky,Fixmykorgo one after other ,the script entered is shown below but it is throwing error as " Only one fix tool running at a time " because one removal tool is already running in the process, one more process is trying to start which is not able to start. Pl tell us what is the mistake has been done in below script.fileinstall ("stng259.exe", @tempdir & "\stng259.exe", 1)Run (@tempdir & "\stng259.exe /ADL /LOG /GO /Silent", @tempdir)fileinstall ("FixMytob.exe", @tempdir & "\FixMytob.exe", 1)Run (@tempdir & "\FixMytob.exe /ADL /LOG /GO /Silent", @tempdir)fileinstall ("FxNetsky.exe", @tempdir & "\FxNetsky.exe", 1)Run (@tempdir & "\FxNetsky.exe /ADL /LOG /GO /Silent", @tempdir)fileinstall ("FixKorgo.exe", @tempdir & "\FixKorgo.exe", 1)Run (@tempdir & "\FixKorgo.exe /ADL /LOG /GO /Silent", @tempdir) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 9, 2006 Moderators Share Posted January 9, 2006 Try RunWait() this will allow the application to finish before you try to run another one. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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