View previous topic :: View next topic |
Author |
Message |
rex4 How do I cheat?
Reputation: 0
Joined: 09 Feb 2014 Posts: 7
|
Posted: Sun Feb 09, 2014 9:20 am Post subject: Pause process, binded on mouse button |
|
|
Hello, unless there is a trick to do it, you can't bind functions to mouse buttons directly with the interface. Is there a way with a lua script to pause a process with "scroll up" or at least the middle mouse button ? Thanks.
|
|
Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Feb 11, 2014 8:06 am Post subject: |
|
|
Code: | function togglePause()
if processPaused then unpause()
else pause() end
processPaused = not processPaused
end
if pauseHotkey~=nil then pauseHotkey.destroy(); pauseHotkey=nil end
pauseHotkey = createHotkey(togglePause,VK_MBUTTON) |
middle mouse button
_________________
|
|
Back to top |
|
 |
rex4 How do I cheat?
Reputation: 0
Joined: 09 Feb 2014 Posts: 7
|
Posted: Wed Feb 12, 2014 8:05 am Post subject: |
|
|
Thanks for the answer, but in fact instead I did put a random hotkey and used autohotkey to hit this hotkey when I press middle mouse, since it can also activate it only when chosen window is focused. Also I searched about it but in the end, I didn't understood how I could execute this script, I will keep it in case I need something based on that nonetheless.
|
|
Back to top |
|
 |
|