Sign in to follow this  
Followers 0
yookee

ProcessExists() may be laze

5 posts in this topic

#1 ·  Posted (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") Then

else

$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}")

EndIf

To make little change, window is shown properly.

$list = ProcessList("wpsasp.exe")

If @error Then

;If Not ProcessExists("wpsasp.exe") Then

else

$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}")

EndIf

What have ProcessExists() done?

Edited by yookee

Share this post


Link to post
Share on other sites



Do you mean replaced with

If Not ProcessWait("wpsasp.exe",1000) Then

That's funny.

However, thank you, Josbe.

World Wide AutoIt

Share this post


Link to post
Share on other sites

Do you mean replaced with

If Not ProcessWait("wpsasp.exe",1000) Then

That's funny.

However, thank you, Josbe.

World Wide AutoIt

ProcessWait: Pauses script execution until a given process exists.

Not replaced, of course, a possibility if you're waiting for this process only.

Share this post


Link to post
Share on other sites

En, wait computer done completely.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0