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 implementing speedhack into another lua script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
chandest
Newbie cheater
Reputation: 0

Joined: 27 Feb 2013
Posts: 17

PostPosted: Wed Feb 27, 2013 3:00 pm    Post subject: Need help implementing speedhack into another lua script Reply with quote

Hi.

I have a program running coded in lua. I need help to implement speedtoogle into the scripts i'm running.

I have several programs running so I guess I would need to inject every single dll for each program running?


I really hope you guys can assist me!

_________________
The king is dead. Long live the king!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Feb 27, 2013 3:23 pm    Post subject: Reply with quote

look into the createHotkey function
_________________
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
chandest
Newbie cheater
Reputation: 0

Joined: 27 Feb 2013
Posts: 17

PostPosted: Wed Feb 27, 2013 4:49 pm    Post subject: Reply with quote

Ok I read about the createHotkey function and I believe it would be simplier to just make two programs

One which made speedhack go 1000 and another which made speedhack go 1.

I could then from my other program call these two programs? Wouldn't that be easier?

_________________
The king is dead. Long live the king!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Feb 27, 2013 8:30 pm    Post subject: Reply with quote

Why not just create two hotkeys in one program?

One hotkey points to a function that calls speedhack_setSpeed(1000) and the other hotkey points to a function that calls speedhack_setSpeed(1)

_________________
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
chandest
Newbie cheater
Reputation: 0

Joined: 27 Feb 2013
Posts: 17

PostPosted: Thu Feb 28, 2013 8:57 am    Post subject: Reply with quote

I have two hotkey programs (J.exe and K.exe) running now which is simply attached to two keys (for instance, when clicking on J.exe manually, J-butten is clicked)

In cheat engine I have bound J-button to speed 500x and the K-button to speed 1x.

My lua script should then then call the keys by io.popen(path) but it doesn't seem to work :-/

_________________
The king is dead. Long live the king!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Feb 28, 2013 9:03 am    Post subject: Reply with quote

How "two programs" would be simpler than this:
Code:

function speed_1()
  speedhack_setSpeed(1)
end

function speed_500()
  speedhack_setSpeed(500)
end

createHotkey(speed_1,   VK_J)
createHotkey(speed_500, VK_K)

_________________
Back to top
View user's profile Send private message MSN Messenger
chandest
Newbie cheater
Reputation: 0

Joined: 27 Feb 2013
Posts: 17

PostPosted: Thu Feb 28, 2013 9:49 am    Post subject: Reply with quote

It's working.

Only problem is, the speedhack in CE adjusts the speed on ALL my programs (the same program)? Is there any way to seperate them?

In other words, can I run multiple instances with different speeds? Whenever it adjusts it adjusts all the programs



The bad option is to run VM's instead of several of the same programs.

Could really use some help here!

_________________
The king is dead. Long live the king!
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