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 


auto keyboar in lua ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Sting9x
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 78

PostPosted: Wed Nov 01, 2017 2:54 am    Post subject: auto keyboar in lua ? Reply with quote

how to 4 arrow keys on the keyboard continuous operation ? ? ? Laughing
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 120

Joined: 09 Jun 2013
Posts: 3260

PostPosted: Wed Nov 01, 2017 4:58 pm    Post subject: Reply with quote

Code:
keyTimer = createTimer(nil, false)
keyTimer.Interval = 1000
keyTimer.OnTimer = function(timer)
  doKeyPress(VK_UP)
end
keyTimer.Enabled = true
Back to top
View user's profile Send private message
Sting9x
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 78

PostPosted: Thu Nov 02, 2017 6:59 am    Post subject: Reply with quote

Zanzer wrote:
Code:
keyTimer = createTimer(nil, false)
keyTimer.Interval = 1000
keyTimer.OnTimer = function(timer)
  doKeyPress(VK_UP)
end
keyTimer.Enabled = true

Hello Zanzer
I really admire you, you help me a lot Very Happy
Can you help me again ?
Code:
VK_UP
VK_DOWN
VK_LEFT
VK_RIGHT

I set it at the F1 key turn on/off
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 Nov 02, 2017 6:42 pm    Post subject: Reply with quote

Code:
keyDown(VK_F1)
Code:
keyUp(VK_F1)
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