Jump to content

ProcessExists() may be laze


yookee
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...