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 


Unworking hotkeys

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

Joined: 31 Oct 2013
Posts: 5

PostPosted: Mon Mar 23, 2020 4:38 am    Post subject: Unworking hotkeys Reply with quote

Hi, there,

I'm physically disabled, so I have difficulties with quick keyboard inputs. So speedhack is a good solution. I created a generic table that I could adapt to each game changing the name of process(jeu means game in French). The problem is that something doesn't work in the speed change. I suspect that I'm not using the right function, what can you tell me?( names are in French) Here is my code:

Code:
aalist=getAutoAttachList()
stringlist_add(aalist,"jeu.exe");
function vitesseNormale()
speedhack_setSpeed(1)
end

function vitesseReduite1()
speedhack_setSpeed(0.25)
end

function vitesseReduite2()
speedhack_setSpeed(0.1)
end

createHotkey(vitesseNormale(), VK_F1)
createHotkey(vitesseReduite1(), VK_F2)
createHotkey(vitesseReduite2(), VK_F3)


thanks
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Mon Mar 23, 2020 6:43 am    Post subject: Reply with quote

it's not
Code:

createHotkey(vitesseNormale(), VK_F1)

but
Code:

createHotkey(vitesseNormale, VK_F1)

_________________
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
flyjet
How do I cheat?
Reputation: 0

Joined: 31 Oct 2013
Posts: 5

PostPosted: Mon Mar 23, 2020 10:25 am    Post subject: Reply with quote

It works, thanks for your help. Try to maintain your program as long as possible. In my situation, it's not just a cheating tool, it's an accessibility one as well.

Flyjet
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