Jump to content

How to open process and pause process


Recommended Posts

as the title says there's a ProcessClose() but there's no ProcessOpen() so, how do i go about opening a process? furthermore how do i pause the process... i need to open a process and pause it right away, patch it, then continue to execute the process...

;//Start the Email Client If Not Running

Const $DefaultEmail = "Outlook"

;//Calls the Function
_sStartEmailClient()

;//Launch Outlook
Func _sStartEmailClient()
    $PID = ProcessExists($DefaultEmail & ".exe")
    If $PID = 0 Then
        ShellExecute($DefaultEmail & ".exe", "", "", "", @SW_SHOWMINIMIZED)
        ProcessWait($DefaultEmail & ".exe", 30)
    EndIf
EndFunc   ;==>_sStartEmailClient
Sleep(1000)
Edited by anixon
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...