| View previous topic :: View next topic |
| Author |
Message |
theonetrueace Newbie cheater
Reputation: 0
Joined: 05 Feb 2008 Posts: 14
|
Posted: Sun Dec 28, 2008 7:24 pm Post subject: Interfacing with CE from my own script... |
|
|
so i'm trying to have my program send a hotkey to ce to have it do when the hotkey is supposed to do....i am writing all the code from the bottom (api) .... i've been using SendInput for all my sending of keystrokes until now .... I just havent been able to get CE to see the keystrokes I'm sending... is there any specific thing that would not permit this from working....I don't know what type of hook CE is using for the hotkeys, but my own hook sees the keystrokes as being sent....last but not least, yes I did check the keystrokes via the keyboard and they do work....
any ideas?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25931 Location: The netherlands
|
Posted: Mon Dec 29, 2008 4:32 am Post subject: |
|
|
for hotkeys ce uses getasynckeystate and only activates when all the required keys are down
Of course, it helps if you just say what hotkey you are trying to trigger
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
theonetrueace Newbie cheater
Reputation: 0
Joined: 05 Feb 2008 Posts: 14
|
Posted: Mon Dec 29, 2008 12:49 pm Post subject: |
|
|
nm got it working
Last edited by theonetrueace on Mon Dec 29, 2008 1:41 pm; edited 3 times in total |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25931 Location: The netherlands
|
Posted: Mon Dec 29, 2008 1:38 pm Post subject: |
|
|
PostMessage(cemainwindowhandle,WM_HOTKEY,2,0);
should toggle the speedhack
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
theonetrueace Newbie cheater
Reputation: 0
Joined: 05 Feb 2008 Posts: 14
|
Posted: Mon Dec 29, 2008 1:43 pm Post subject: |
|
|
ill try the postmessage also..... but i put kb_event in just to try it and it works with the 150ms pause....must have something wrong with my vars on the sendinput commands....thx for the info, sry to waste ur time
can u explain which var is telling ce which hotkey to press? the postmessage command works as u said but i want to use it to do other hotkeys in ce aswell
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25931 Location: The netherlands
|
Posted: Mon Dec 29, 2008 2:11 pm Post subject: |
|
|
It's handled in the hotkey and hotkey2 methods in mainform.
anyhow,
for the normal wm_hotkey message:
0: Bring ce to front
2: toggle speedhack
10+ : Activate a hotkey that has been assigned to a cheat table entry (can be any random number)
then there's the second generation of hotkey implementation using wm_user+800 or wm_user+0x800 (depending on which ce version you used, had a small typo, that didn't affect the hotkey implementation since it was on a const/define used by the rest of the code )
0: Bring ce to front
1: pause
2: toggle speedhack (it's implemented twice)
3-7: Set speedhack speed
8: increase speed with specified delta
9: decrease speed with specified delta
10-18: Change selected scantype
19: New scan
20: First scan exact value
21: First scan unknown initial value
22: Next scan exact valuer
23: next scan IncreasedValue
24: next scan DecreasedValue
25: next scan ChangedValue
26: next scan unchangedValue
27: undo lastscan
28: cancel current scan
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
theonetrueace Newbie cheater
Reputation: 0
Joined: 05 Feb 2008 Posts: 14
|
Posted: Mon Dec 29, 2008 2:33 pm Post subject: |
|
|
thx much...got it working....
PostMessage(nWnd, WM_USER + &H800&, 2, 0) ' Toggle
PostMessage(nWnd, WM_USER + &H800&, 3, 0) ' Enables SH1
again thanks much
edit: ok just so I know, what versions/builds were affected with this lil misprint bug....
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25931 Location: The netherlands
|
Posted: Mon Dec 29, 2008 4:10 pm Post subject: |
|
|
5.3 and earlier I think. Not sure when I found this small bug
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|