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 


popup/hide CE

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
danrevella
Master Cheater
Reputation: 2

Joined: 11 Jun 2008
Posts: 290

PostPosted: Mon May 04, 2015 4:39 am    Post subject: popup/hide CE Reply with quote

Hi!!
In CE >setting>hotkey is possible define an hotkey to popup/hide CE.
It works very well, but I would like to know if is it possible to popup/hide CE with a LUA script, coz I would like customize it so that:
-) press the hotkey
-) pause the game
-) popup CE

After use, a new press of the hotkey:
-) press the hotkey
-) unpause the game
-) popup the game

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

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

PostPosted: Mon May 04, 2015 4:49 am    Post subject: Reply with quote

you can use the following code to simulate a hotkey.
ce's hotkey manager should be able to pick it up (assuming the polling speed is fast enough, else adjust the timer for key up)

example for CTRL+4
Code:

--do stuff before the hotkey (e.g pause() )
keyDown(VK_CONTROL)
keyDown(VK_4)

keyUpTimer=createTimer(nil)
keyUpTimer.Interval=100
keyUpTimer.OnInterval=function(t)
  keyUp(VK_CONTROL)
  keyUp(VK_4)
  t.destroy()
  --do other stuff after the hotkey
end
keyUpTimer.Enabled=true


and you can use pause()/unpause() to pause and resume a game

_________________
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
danrevella
Master Cheater
Reputation: 2

Joined: 11 Jun 2008
Posts: 290

PostPosted: Mon May 04, 2015 5:56 am    Post subject: Reply with quote

Many thanks,
BTW this does not solve my problem:
my purpose is, with a single hotkey pressed:
1)pause the game
2)popup CE
and after using ce f.e. for a research, pressing the same hotkey:
1)unpause the game
2)popup to the game

Unfortunelly the problem seems to be that CE is not able in popupping when the game is paused.

So I may try the inverse sequence, f.e.:
1)popup CE
2)pause the game
but in this case (on my specifich game) popping CE "before pause the game" result in the game crash.
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