yookee Posted December 9, 2008 Share Posted December 9, 2008 (edited) Some codes Go well in Tool's menu of SciTE4AutoIt3, but something was wrong when running compiled .exe file by doubleclick in explorer.In windows session manager, wpsasp.exe was there, but its window has not been shown.If Not ProcessExists("wpsasp.exe") Thenelse $wpsasp = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WPSASP.exe", "") $wpsasp_path = StringTrimRight($wpsasp, 10) Run($wpsasp, $wpsasp_path) WinWaitActive("PSASP For Windows ") Send("{ENTER}")EndIfTo make little change, window is shown properly.$list = ProcessList("wpsasp.exe")If @error Then;If Not ProcessExists("wpsasp.exe") Thenelse $wpsasp = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WPSASP.exe", "") $wpsasp_path = StringTrimRight($wpsasp, 10) Run($wpsasp, $wpsasp_path) WinWaitActive("PSASP For Windows ") Send("{ENTER}")EndIfWhat have ProcessExists() done? Edited December 9, 2008 by yookee Link to comment Share on other sites More sharing options...
Josbe Posted December 9, 2008 Share Posted December 9, 2008 According to the helpfile: "The process is polled approximately every 250 milliseconds.".Do you tried with ProcessWait() too? AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
yookee Posted December 9, 2008 Author Share Posted December 9, 2008 Do you mean replaced with If Not ProcessWait("wpsasp.exe",1000) Then That's funny. However, thank you, Josbe. World Wide AutoIt Link to comment Share on other sites More sharing options...
Josbe Posted December 9, 2008 Share Posted December 9, 2008 Do you mean replaced withIf Not ProcessWait("wpsasp.exe",1000) ThenThat's funny.However, thank you, Josbe.World Wide AutoItProcessWait: Pauses script execution until a given process exists.Not replaced, of course, a possibility if you're waiting for this process only. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
yookee Posted December 9, 2008 Author Share Posted December 9, 2008 En, wait computer done completely. 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