View previous topic :: View next topic |
Author |
Message |
Jeffrey_ Expert Cheater Reputation: 1
Joined: 10 Jun 2011 Posts: 164
|
Posted: Fri Feb 17, 2017 9:43 am Post subject: Small feature request. |
|
|
Dark Byte could you perhaps add new hold button hotkeys for enabling/disabling scripts and Freeze/Unfreeze values into the next version of Cheat Engine? Would be appreciated!
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Feb 17, 2017 10:06 am Post subject: |
|
|
Just to clarify, you mean, hotkey is activated on a timer? So, cheat will only activate if key/button is held for a certain amount of time?
If so, I think that would be a good idea, especially when mapping hotkeys for gaming controllers. You can set up a script to do this, but having it built-in would be very convenient.
|
|
Back to top |
|
|
Jeffrey_ Expert Cheater Reputation: 1
Joined: 10 Jun 2011 Posts: 164
|
Posted: Fri Feb 17, 2017 10:12 am Post subject: |
|
|
To clarify what I meant is that the cheat is only active when the hotkey is held down.
Your suggestion is good too! I could see that coming in handy in certain applications especially controllers.
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Feb 17, 2017 10:22 am Post subject: |
|
|
Oh, I see. Yes, that's a great idea, too! Usually, I have to write scripts to achieve this. This definitely needs to be added, in my opinion.
|
|
Back to top |
|
|
SunBeam I post too much Reputation: 65
Joined: 25 Feb 2005 Posts: 4022 Location: Romania
|
Posted: Fri Feb 17, 2017 10:53 am Post subject: |
|
|
Problem with adding various user-requested stuff is it will break other functionality and transform CE into bloatware.
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Feb 17, 2017 1:34 pm Post subject: |
|
|
In this case, I think adding a conditional checkbox for toggle should be fairly straightforward, but I can only speculate.
Truthfully, this is not needed for those that know how to set it up already, since setting up simple, conditional triggers is easy enough with scripting, but this would just make things easier and quicker for things like on-the-fly-type cheats such as speedhack. As opposed to writing up a script to set up an 'off' condition or using additional hotkeys, being able to control speed with a single controller button is appealing (e.g. using scope/aim controller button to trigger speedhack so that the game automatically slows down while aiming and automatically returns to normal speed when you stop aiming etc.). This can be set up inside of a script, but being able to do it quickly with a simple hotkey toggle would be cool.
I guess it's definitely not needed, but it could be useful in some cases and especially for newbies.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Fri Feb 17, 2017 2:58 pm Post subject: |
|
|
as for speedhack, that one already has an option to disable when the hotkey is released
for table entries not sure. i'll think about it. (as stated you can already do that with lua)
_________________
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 |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Feb 17, 2017 3:06 pm Post subject: |
|
|
Dark Byte wrote: | as for speedhack, that one already has an option to disable when the hotkey is released | -Are you referring to accessing speedhack by way of LUA or CE hotkeys or something else? This is news to me.
Thanks.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Fri Feb 17, 2017 3:09 pm Post subject: |
|
|
settings->hotkeys
there the predefined speedhack hotkeys can be given an option to disable on release
(if i don't forget ,and not too complex, i may add an extended createHotkey lua function that lets you specify a release function)
_________________
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 |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Feb 17, 2017 3:13 pm Post subject: |
|
|
Ah. Okay. I have never made use of those particular commands, so I was not aware of the additional options. That's nice!
The 'on release' option could not be carried over to a trainer without additional code, presumably?
EDIT:
Okay. No worries! Setting up a simple script in assembly is easy enough, should you decide to scrap the idea.
EDIT:
If you do decide to add something, it would be good to allow for control over values being set and not just toggle entries (e.g. hotkey while pressed sets value to X, and on release, sets value to Y).
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Fri Feb 17, 2017 5:54 pm Post subject: |
|
|
Some time ago someone asked for "non-repetitive hotkey". Now Jeffrey_ is asking for "disable-when-released hotkey".
Code: | function createDisableWhenReleasedHotkey(func1, func2, ...)
local getTickCount=getTickCount
local lastTickCount=0
local timer=createTimer(nil,false)
local function changedBehaviour(sender)
local TC = getTickCount()
--call func1 and start timer
if not timer.Enabled then func1(sender); timer.Enabled = true
--else, reset timer when elap is less than 200ms
elseif (TC - lastTickCount)<200 then
timer.Enabled = false
timer.Enabled = true
end
lastTickCount = TC
end
local hk = createHotkey(changedBehaviour, ...)
hk.DelayBetweenActivate = 10
timer.Interval=200
timer.OnTimer = function (t) t.Enabled = false; func2(hk) end
return hk
end |
Usage:
Code: | getMRByDesc = getAddressList().getMemoryRecordByDescription
memoryrecord = getMRByDesc('testing')
function hotkey2Pressed()
memoryrecord.Active=true
end
function hotkey2Released()
memoryrecord.Active=false
end
hotkey2 = createDisableWhenReleasedHotkey(hotkey2Pressed, hotkey2Released, VK_F2) |
_________________
Last edited by mgr.inz.Player on Fri Feb 17, 2017 5:57 pm; edited 1 time in total |
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Feb 17, 2017 5:55 pm Post subject: |
|
|
Code: | function mycheat_enable()
getAddressList().getMemoryRecordByDescription("My Cheat").Active = true
end
function mycheat_disable()
getAddressList().getMemoryRecordByDescription("My Cheat").Active = false
end
if mytimer then
mytimer.Destroy()
end
mytimer = createTimer(nil, false)
mytimer.Interval = 100
mytimer.OnTimer = function(timer)
if mytoggle then
if not isKeyPressed(VK_J) then
mycheat_disable()
mytoggle = false
timer.Enabled = false
end
else
timer.Enabled = false
end
end
if myhotkey then
myhotkey.Destroy()
end
myhotkey = createHotkey(function()
if not mytoggle then
mycheat_enable()
mytoggle = true
mytimer.Enabled = true
end
end, VK_J) |
|
|
Back to top |
|
|
SunBeam I post too much Reputation: 65
Joined: 25 Feb 2005 Posts: 4022 Location: Romania
|
Posted: Fri Feb 17, 2017 9:51 pm Post subject: |
|
|
Woah there, guys. Don't step on each other's LUAs
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Feb 18, 2017 3:57 am Post subject: |
|
|
It's Lua, not LUA
https://www.lua.org/about.html wrote: | Please do not write it as "LUA", which is both ugly and confusing |
_________________
|
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sat Feb 18, 2017 3:59 am Post subject: |
|
|
Any chance you could modify Canvas's draw function to accept transparency in the next build?
_________________
|
|
Back to top |
|
|
|