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 


ce need a new function(hotkey for lock&set value)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
datoumaomi
How do I cheat?
Reputation: 0

Joined: 26 May 2017
Posts: 4

PostPosted: Fri May 26, 2017 4:58 pm    Post subject: ce need a new function(hotkey for lock&set value) Reply with quote

ce need a new function(hotkey for lock&set value)
we can use one hotkey for 2 function



2017-05-27_064951.png
 Description:
i hope ce can use one hotkey to lock and set value
 Filesize:  24.38 KB
 Viewed:  4290 Time(s)

2017-05-27_064951.png



2017-05-27_064822.png
 Description:
now,must use 2 lines to show
 Filesize:  24.54 KB
 Viewed:  4290 Time(s)

2017-05-27_064822.png



2017-05-27_064236.png
 Description:
 Filesize:  24.49 KB
 Viewed:  4294 Time(s)

2017-05-27_064236.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri May 26, 2017 5:21 pm    Post subject: Reply with quote

Just delete the extra one from the Gui. It's a visual thing only
_________________
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
View user's profile Send private message MSN Messenger
datoumaomi
How do I cheat?
Reputation: 0

Joined: 26 May 2017
Posts: 4

PostPosted: Fri May 26, 2017 6:13 pm    Post subject: Reply with quote

Dark Byte wrote:
Just delete the extra one from the Gui. It's a visual thing only


thanks
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat May 27, 2017 3:00 am    Post subject: Reply with quote

You can also use only 'freeze' hotkey.

Lua script will have this one somewhere:
Code:
function onPostHotkey0(Hotkey)
  --Executed after the "toggle*" cheat got executed
  local memrec=Hotkey.Owner
  local isActive=memrec.Active --get the state after the hotkey got triggered
  CETrainer.CHEAT0.setActive(isActive) --gui update, nothing else
  if gPlaySoundOnAction then
    if isActive then
      playSound(gActivateSound)
    else
      playSound(gDeactivateSound)
    end
  end
end



You can add one extra line:
Code:
function onPostHotkey0(Hotkey)
  --Executed after the "toggle*" cheat got executed
  local memrec=Hotkey.Owner
  memrec.Value = '5000'         // EXTRA LINE HERE
  local isActive=memrec.Active --get the state after the hotkey got triggered
  CETrainer.CHEAT0.setActive(isActive) --gui update, nothing else
  if gPlaySoundOnAction then
    if isActive then
      playSound(gActivateSound)
    else
      playSound(gDeactivateSound)
    end
  end
end

_________________
Back to top
View user's profile Send private message MSN Messenger
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