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 


Lua Script Hotkeys do not work .

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Meiyoh
Expert Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 212

PostPosted: Thu May 10, 2018 3:44 am    Post subject: Lua Script Hotkeys do not work . Reply with quote

if IsKeyPressed(VK_PAD_RTRIGGER, VK_PAD_B) then
WriteInteger("53001848", 0x7C6)
else
WriteInteger("53001848", 0x7BA)
end

----


Only works with one hotkey.... if I remove VK_PAD_B for example.

THIS is what I am trying to do but it does not work


if IsKeyPressed(VK_PAD_RTRIGGER, VK_PAD_B) then

WriteInteger("53001848", 0x7C6)
else
WriteInteger("53001848", 0x7BA)
end

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 357

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

PostPosted: Thu May 10, 2018 4:15 am    Post subject: Reply with quote

try
Code:

if IsKeyPressed(VK_PAD_RTRIGGER) and IsKeyPressed(VK_PAD_B) then

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Meiyoh
Expert Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 212

PostPosted: Thu May 10, 2018 5:53 am    Post subject: Reply with quote

Dark Byte wrote:
try
Code:

if IsKeyPressed(VK_PAD_RTRIGGER) and IsKeyPressed(VK_PAD_B) then


Yes that works I know.
I shall be adding "then" followed by one more "end"

But I am sure it worked before. I wanted to check if it's me or something else.
I am sure it worked before.

THANKS BTW

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 357

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

PostPosted: Thu May 10, 2018 6:37 am    Post subject: Reply with quote

you got mixed up with createHotkey which does support multiple keys
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Meiyoh
Expert Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 212

PostPosted: Fri May 11, 2018 12:48 am    Post subject: Reply with quote

Dark Byte wrote:
you got mixed up with createHotkey which does support multiple keys


ohh Probably yes. Thanks my friend. I shall take a look at this. Will be better than making one hundred conditions for a hotkeys

_________________
I am the forgotten one the dead one.
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 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