Posted: Fri Sep 23, 2016 2:38 pm Post subject: Create hotkey and destroy it
hk = createHotkey(function() doKeyPress(VK_F3) end, VK_RBUTTON)
I want to but this code inside checkbox in enable part . I can do it
But how can I stop the function (Disable it )
Code:
function CECheckbox6Change(sender)
if (checkbox_getState(CEselectorTrainer.CECheckbox6) == 1) then
hk = createHotkey(function() doKeyPress(VK_F3) end, VK_RBUTTON) --Is that correct
else
--How to disable the key
function CECheckbox11Change(sender)
if (checkbox_getState(CEselectorTrainer.CECheckbox11) == 1) then
hk = createHotkey(function() doKeyPress(VK_F10) end, VK_RBUTTON) --Is that correct
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