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 


Set Hotkeys

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 394
Location: DEAD

PostPosted: Tue Mar 21, 2017 7:06 am    Post subject: Set Hotkeys Reply with quote

Hi all guys, a small question. Is possible add ON/OFF in the same key?

regards!

_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Tue Mar 21, 2017 8:14 am    Post subject: Re: Set Hotkeys Reply with quote

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
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Tue Mar 21, 2017 8:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 394
Location: DEAD

PostPosted: Tue Mar 21, 2017 8:38 am    Post subject: Reply with quote

thanks guys but i say here:



regards

_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Mar 21, 2017 9:04 am    Post subject: Reply with quote

That is what the 'toggle' options are for -- on/off.
Back to top
View user's profile Send private message
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 394
Location: DEAD

PostPosted: Tue Mar 21, 2017 10:57 am    Post subject: Reply with quote

++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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Mar 21, 2017 12:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Mar 21, 2017 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Mar 21, 2017 5:48 pm    Post subject: Reply with quote

Xblade Of Heaven wrote:
(no script enable/disable)?
Very Happy
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 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