[Help]Call ProcessName ???

Posts 1–5 of 5 · Page 1 of 1
[Help]Call ProcessName ???
Code:
Call WriteALong("WindowName", &haddress, value)
how i can call "ProcessName" not "WindowName" ?,plzz help me
Try this:
Code:
Dim pProcess() As Process = 
System.Diagnostics.Process.GetProcessesByName("notepad")
You get a list of Processes of a specific name and loop through them until you find the one you are looking for, or you access a particular process by specifying an index.

Looping through all the processes and only passing the process to the call that matches a particular criteria:

Code:
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("notepad")
        For Each prc As Process In pProcess
            If prc.MainWindowTitle = "Settings.dat - Notepad" Then
                Call WriteALong(prc.ProcessName, &haddress, value)
        End If
Next
Or you can access by specifying an index:

Code:
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("notepad")
Call WriteALong(pProcess(0).ProcessName , &haddress, value) 'Passes the first Notepad window found to the first parameter.
Or you could just use my .NET hacking library instead, just needs a process ID.
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?