View previous topic :: View next topic |
Author |
Message |
packrat How do I cheat?
Reputation: 0
Joined: 11 Jun 2013 Posts: 9
|
Posted: Tue Feb 15, 2022 5:21 pm Post subject: Help with attachment code |
|
|
Good day everyone.
Just wondering if anyone can help me with the process attachment to Farmville 2 launcher?
|
|
Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Tue Feb 15, 2022 10:52 pm Post subject: |
|
|
You can use OpenProcess like so:
Code: |
OpenProcess('name_of_exe_here.exe')
|
|
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1522
|
Posted: Wed Feb 16, 2022 6:26 am Post subject: |
|
|
Code: | local prcs=getProcessIDFromProcessName('Farmville Two.exe')
OpenProcess(tonumber(prcs)) |
_________________
|
|
Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Wed Feb 16, 2022 7:17 am Post subject: |
|
|
AylinCE wrote: | Code: | local prcs=getProcessIDFromProcessName('Farmville Two.exe')
OpenProcess(tonumber(prcs)) |
|
Just so you are aware, getProcessIDFromProcessName returns a numerical value so the function tonumber isn't required.
|
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1522
|
Posted: Wed Feb 16, 2022 7:54 am Post subject: |
|
|
LeFiXER wrote: |
Just so you are aware, getProcessIDFromProcessName returns a numerical value so the function tonumber isn't required. |
That detail wasn't for you, it was to let the questioner know that ID is a numeric value!
Please don't feel so responsible.
This is not a race!
_________________
|
|
Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Wed Feb 16, 2022 10:33 am Post subject: |
|
|
AylinCE wrote: | LeFiXER wrote: |
Just so you are aware, getProcessIDFromProcessName returns a numerical value so the function tonumber isn't required. |
That detail wasn't for you, it was to let the questioner know that ID is a numeric value!
Please don't feel so responsible.
This is not a race! |
I was just informing you that the return value of that function is a number so the tonumber function wasn't necessary.
There is no competition here. I pass on knowledge that I have attained over the course of my time as a hobbyist game hacker.
|
|
Back to top |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 510
|
Posted: Wed Feb 16, 2022 11:37 pm Post subject: |
|
|
couple functions:
Code: | function IsProcessExists(procName)
return getProcessIDFromProcessName(procName) ~= nil
end
function IsAttached(procName)
return getProcessIDFromProcessName(procName) == getOpenedProcessID()
end
function ShouldAttach(procName)
if not IsProcessExists(procName) then return end
openProcess(procName)
end |
|
|
Back to top |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Thu Feb 17, 2022 12:55 am Post subject: |
|
|
Just thought I'd mention. I think Farmville 2 is a facebook game, so it's likely a browser game.
_________________
|
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1522
|
Posted: Thu Feb 17, 2022 1:53 am Post subject: |
|
|
TheyCallMeTim13 wrote: | Just thought I'd mention. I think Farmville 2 is a facebook game, so it's likely a browser game. |
There may be some bugs in this game.
( Items lost for no reason and getting them back, game not opening problems after the update, etc. CE can be used to fix such errors. I think this relieves the burden of software developers. )
I guess the topic content is not cheating.
Yes, if the content was about cheating, we would not participate, because it is a superficial issue that is limited to the CE process list only.
Currently in the lead role; CE has a bug fix option.
_________________
|
|
Back to top |
|
 |
|