| View previous topic :: View next topic |
| Author |
Message |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Fri Apr 12, 2019 11:20 pm Post subject: How to use getProcesslist()? |
|
|
I want to get a list of processes and then determine if there are two process names. If so, openprocess opens the latest process. What should I do?
| Description: |
|
| Filesize: |
18.15 KB |
| Viewed: |
2250 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Sat Apr 13, 2019 12:08 am Post subject: |
|
|
openProcess() already opens the last process
anyhow,
| Code: |
for pid,name in ipairs(getProcessList()) do
print(string.format("%x - %s", pid,name)
end
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Sat Apr 13, 2019 12:38 am Post subject: help |
|
|
Didn't it reflect after running? How is this used? Please teach me.
| Description: |
|
| Filesize: |
8.99 KB |
| Viewed: |
2232 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Sat Apr 13, 2019 12:41 am Post subject: |
|
|
sorry, I wrote it on my phone so didn't test it, it should be
| Code: |
for pid,name in pairs(getProcessList()) do
print(string.format("%x - %s", pid,name))
end
|
anyhow, to get the processlist in the order you want you need the stringlist version
| Code: |
sl=createStringList()
getProcessList(sl)
for i=0,sl.Count-1 do
print(sl[i])
end
sl.destroy()
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
yazigegeda Expert Cheater
Reputation: 0
Joined: 22 Jan 2019 Posts: 183
|
Posted: Sat Apr 13, 2019 12:46 am Post subject: help |
|
|
| Thank you so much!
|
|
| Back to top |
|
 |
|