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 


Problem with a simple doKeyPress

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

Joined: 12 Oct 2017
Posts: 1

PostPosted: Thu Oct 12, 2017 9:10 am    Post subject: Problem with a simple doKeyPress Reply with quote

I'm doing a trainer and right now I have all the base address that I need, but I have 2 problems:

1- when I try to do a simple :
[code]
sleep(3000)
keyAttack = VK_1
doKeyPress(keyAttack)[/code]


nothing happens Sad . The game has a chat which you can activate Pressing "Enter", if I activate the chat and later I execute the Trainer It will write "1" on the chat, but if I desactivate the chat It doesn't attack.


2- how to simulate a right or left mouse button press?

Any suggestion will be very grateful
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 120

Joined: 09 Jun 2013
Posts: 3260

PostPosted: Thu Oct 12, 2017 10:07 pm    Post subject: Reply with quote

Code:
keyDown(VK_1)
sleep(1000)
keyUp(VK_1)

Code:
mouse_event(6)
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