View previous topic :: View next topic |
Author |
Message |
danrevella Master Cheater Reputation: 2
Joined: 11 Jun 2008 Posts: 290
|
Posted: Mon May 04, 2015 4:39 am Post subject: popup/hide CE |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Mon May 04, 2015 4:49 am Post subject: |
|
|
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 |
|
|
danrevella Master Cheater Reputation: 2
Joined: 11 Jun 2008 Posts: 290
|
Posted: Mon May 04, 2015 5:56 am Post subject: |
|
|
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 |
|
|
|