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 


Bug Report - Some Hotkeys Combinations do not work.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Sun May 22, 2016 7:39 am    Post subject: Bug Report - Some Hotkeys Combinations do not work. Reply with quote

For example in a code when I set Shift+N+J to set value to 0 or 1 it doesn't work. When I put Spacebar+1 or 2 it sets the value to the desired number.

Shift+ W for example works . So Cheat Engine detects my hotkeys however it doesn't change anything after setting the code and trying to use them.

I noticed Shift+ two keys combinations does not work for some reason. It doesn't toggle / set value. I had to use other hotkeys for my table .

Can this be fixed?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4700

PostPosted: Sun May 22, 2016 9:28 am    Post subject: Reply with quote

The hotkey works just fine for me:
Code:
hk = createHotkey(function(sender)
  print("hk.OnFunction called")
end, VK_SHIFT, VK_J, VK_N)

It's probably something else in your code.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Sun May 22, 2016 10:24 am    Post subject: Reply with quote

ParkourPenguin wrote:
The hotkey works just fine for me:
Code:
hk = createHotkey(function(sender)
  print("hk.OnFunction called")
end, VK_SHIFT, VK_J, VK_N)

It's probably something else in your code.


hope so . Smile
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Mon May 23, 2016 5:44 pm    Post subject: Reply with quote

nope . Same happened again Shift+A+1 - Doesn't toggle script
Shift+A+2 - Disables Script. I can't get it. Never had such problems. Just some codes refuse to toggle , set when hotkeys are used like the mentioned and I have to do it manually.

edit:

Holding Shift then A and pressing 1 does not detect 1 but holding Shift+A+2 detects it. Why I can't use shift+a+1?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4700

PostPosted: Mon May 23, 2016 5:55 pm    Post subject: Reply with quote

Again, it's something on your end. This works fine for me:
Code:
hk = createHotkey(function(sender)
  print("test")
end, VK_SHIFT, VK_A, VK_1)

Posting your code might help.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Mon May 23, 2016 6:01 pm    Post subject: Reply with quote

It's happening on every code address/script it's not just one code .
I dunno what's causing this.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon May 23, 2016 6:32 pm    Post subject: Reply with quote

Meiyoh wrote:
I dunno what's causing this.

ParkourPenguin wrote:
Posting your code might help.

Very Happy

Also...are you sure the hotkeys aren't being sent more than once, and you're just not seeing it? Make sure you are really quick about it and test it several times.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon May 23, 2016 6:52 pm    Post subject: This post has 1 review(s) Reply with quote

go to settings->hotkeys and set "Delay between reactivating hotkeys to 1000" and keypoll interval to 10

Also, it depends on your keyboard. Some keyboards do not support more than 2 keys if they are in the same side of the keyboard. (That's why gaming keyboards register as multiple HID's so they can bypass that limitation)

_________________
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
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon May 23, 2016 7:57 pm    Post subject: Reply with quote

Dark Byte wrote:
go to settings->hotkeys and set "Delay between reactivating hotkeys to 1000" and keypoll interval to 10
-I hadn't noticed these before. Do these carry over for exe trainers?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon May 23, 2016 8:05 pm    Post subject: Reply with quote

No, but you can use these lua commands to accomplish the same
Code:

setGlobalKeyPollInterval(integer): Sets the global keypoll interval. The interval determines the speed of how often CE checks if a key has been pressed or not. Lower is more accurate, but eats more cpu power
setGlobalDelayBetweenHotkeyActivation(integer): Sets the minimum delay between the activation of the same hotey in milliseconds. Affects all hotkeys that do not set their own minimum delay

_________________
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
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon May 23, 2016 9:16 pm    Post subject: Reply with quote

Thanks, DB.
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Tue May 24, 2016 12:10 am    Post subject: Reply with quote

Dark Byte wrote:
go to settings->hotkeys and set "Delay between reactivating hotkeys to 1000" and keypoll interval to 10

Also, it depends on your keyboard. Some keyboards do not support more than 2 keys if they are in the same side of the keyboard. (That's why gaming keyboards register as multiple HID's so they can bypass that limitation)


Thank you my friend. I will be making sure to donate next month Smile
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Tue May 24, 2016 3:38 am    Post subject: Reply with quote

Also, hotkeys created with
Code:
local hk1=createHotkey(function, {keys, ...})


have DelayBetweenActivate property



@DB, I don't know if this happens to other people.

Try placing this:
Code:
setGlobalKeyPollInterval(50)
setGlobalDelayBetweenHotkeyActivation(300)

at the end or at the beginning of the Lua script. Save.
Then double click CT, allow Lua script. Those lines are ignored/overwritten.



Probably because handleparameters procedure executes Lua script, and then sets
mainform.visible:=mainformvisible; // which is true for CT

TMainForm.FormShow procedure loads settings from the registry with LoadSettingsFromRegistry.


Workaround will be:
- using a timer object
- or placing above lines inside onOpenProcess function.





Is it possible you can fix above issue by moving LoadSettingsFromRegistry to the first lines of handleparameters?
Code:
Index: cheatengine.lpr
===================================================================
--- cheatengine.lpr   (wersja 2385)
+++ cheatengine.lpr   (kopia robocza)
@@ -111,7 +111,7 @@
   tabletoload:='';
   origin:='';
   mainformvisible:=true;
-
+  LoadSettingsFromRegistry;
   try
 
     for i:=1 to Paramcount do
Index: MainUnit.pas
===================================================================
--- MainUnit.pas   (wersja 2385)
+++ MainUnit.pas   (kopia robocza)
@@ -6980,7 +6980,7 @@
       rsLicenseExpired, mtWarning, [mbOK], 0);
 
 
-  LoadSettingsFromRegistry;
+  //LoadSettingsFromRegistry;
 
   //Load the table if one was suplied
   overridedebug := False;

_________________
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 -> General Discussions 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