View previous topic :: View next topic |
Author |
Message |
Xblade Of Heaven Master Cheater Reputation: 0
Joined: 16 Oct 2005 Posts: 394 Location: DEAD
|
Posted: Tue Mar 21, 2017 7:06 am Post subject: Set Hotkeys |
|
|
Hi all guys, a small question. Is possible add ON/OFF in the same key?
regards!
_________________
Welcome to the Hell.
|
|
Back to top |
|
|
Filipe_Br Master Cheater Reputation: 3
Joined: 07 Jan 2016 Posts: 272 Location: My house
|
Posted: Tue Mar 21, 2017 8:14 am Post subject: Re: Set Hotkeys |
|
|
Code: | flag = false
function hack()
if flag then
flag = false
-- code
else
flag = true
-- code
end
end
key = createHotkey(hack, VK_J)
key.DelayBetweenActive = 300 |
_________________
...
Last edited by Filipe_Br on Tue Mar 21, 2017 8:43 am; edited 1 time in total |
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Tue Mar 21, 2017 8:29 am Post subject: |
|
|
This should be on lua scripting forum, btw ...
sample (same as Filipe_Br script)
Code: | form = createForm(false)
form.Position = poDesktopCenter
lb1 = createLabel(form)
lb1.Top = 50
lb1.Left = 50
lb1.Caption = 'Kick Me'
lb1.font.size = 28
lb2 = createLabel(form)
lb2.Top = form.height - 25
lb2.Left = 10
lb2.Caption = 'Press "Z" as ON/OFF'
lb2.font.size = 12
form.Show()
keyp = true
function samehotkey_show_hide()
if keyp then
keyp = false
lb1.Visible = false
else
keyp = true
lb1.Caption = 'Hi...I am back..'
lb1.Visible = true
end
end
if key1 then key1.destroy(); key1=nil end
key1 = createHotkey(samehotkey_show_hide, VK_Z)
key1.DelayBetweenActivate = 300 |
|
|
Back to top |
|
|
Xblade Of Heaven Master Cheater Reputation: 0
Joined: 16 Oct 2005 Posts: 394 Location: DEAD
|
Posted: Tue Mar 21, 2017 8:38 am Post subject: |
|
|
thanks guys but i say here:
regards
_________________
Welcome to the Hell.
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Mar 21, 2017 9:04 am Post subject: |
|
|
That is what the 'toggle' options are for -- on/off.
|
|
Back to top |
|
|
Xblade Of Heaven Master Cheater Reputation: 0
Joined: 16 Oct 2005 Posts: 394 Location: DEAD
|
Posted: Tue Mar 21, 2017 10:57 am Post subject: |
|
|
++METHOS wrote: | That is what the 'toggle' options are for -- on/off. |
and for set a value 0-1 in the same key(no script enable/disable)?
regards
_________________
Welcome to the Hell.
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Mar 21, 2017 12:54 pm Post subject: |
|
|
Currently not supported without some scripting, I believe.
You do have the option to allow a value to increase or decrease, which might serve as a workaround...but I never use these options, so I cannot say, definitively.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Mar 21, 2017 5:38 pm Post subject: |
|
|
Code: | [ENABLE]
yourAddress:
db 1
[DISABLE]
yourAddress:
db 0 |
Code: | [ENABLE]
[game.exe+offset1]+offset2:
db 1
[DISABLE]
[game.exe+offset1]+offset2:
db 0 |
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Tue Mar 21, 2017 5:48 pm Post subject: |
|
|
Xblade Of Heaven wrote: | (no script enable/disable)? |
|
|
Back to top |
|
|
|