Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


NEED HELP

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
jesuisbobleponge
How do I cheat?
Reputation: 0

Joined: 20 Jul 2022
Posts: 3

PostPosted: Wed Jul 20, 2022 2:05 am    Post subject: NEED HELP Reply with quote

Im trying to find a Lua script for CE that does the following:

1. Open 4 exe files at the same time
2. After about 40 seconds apply the speed hack (x30) to each process
3. (optional but would be great) After 40 minutes close all of them and repeat

I found this script which I have been experimenting with :

shellExecute("C:/Users/Downloads/loader/1.lnk")
openProcess("1.lnk")

tmer = createTimer(nil, false)
tmer.OnTimer = function(timer)
speedhack_setSpeed(30)
timer.Destroy()
end
tmer.Interval = 100
tmer.Enabled = true


However it is not able to apply the speedhack, it always says 'Failure enabling SpeedHack (DLL Injection falied) Failure to allocate memory'

Please help me out I really need this to work

Edit: Forgot to mention that I can manually apply the speedhack with no problem so its definitely not a hardware problem
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Wed Jul 20, 2022 3:16 am    Post subject: Reply with quote

after openProcess do a waitForsymbolsLoaded(), and try a timer interval of 1000
_________________
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
View user's profile Send private message MSN Messenger
jesuisbobleponge
How do I cheat?
Reputation: 0

Joined: 20 Jul 2022
Posts: 3

PostPosted: Wed Jul 20, 2022 3:24 am    Post subject: Reply with quote

Like this?

function onOpenProcess(pid)
end

shellExecute("C:/Users/Downloads/loader/1.lnk")
openProcess("1.lnk")

waitForsymbolsLoaded()

tmer = createTimer(nil, false)
tmer.OnTimer = function(timer)
speedhack_setSpeed(10)
timer.Destroy()
end

tmer.Interval = 1000
tmer.Enabled = true


I did this it said 'Undefinded Lua error'
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Wed Jul 20, 2022 3:32 am    Post subject: Reply with quote

sorry, I mean waitforsymbols()
_________________
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
View user's profile Send private message MSN Messenger
jesuisbobleponge
How do I cheat?
Reputation: 0

Joined: 20 Jul 2022
Posts: 3

PostPosted: Wed Jul 20, 2022 3:35 am    Post subject: Reply with quote

OMG THANK YOU SO MUCH IT WORKS!! <3

Is it possible to open 4 of them and get them to close (process) and then again repeat the script
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites