View previous topic :: View next topic |
Author |
Message |
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Fri Jul 22, 2016 3:16 pm Post subject: |
|
|
@ predprey
1st question:
I searched for the variable 80000008 in hex in CE's memory and just kept changing values till a color change happened.
the Color 80000008 is what CE uses to find the windows theme color.
Hotkey form
Code: |
Hot_xcv = getMainForm().findComponentByName("SetHotkey1")
boo = getMainForm().findComponentByName("SetHotkey1").getOnClick()
print(tostring(Hot_xcv))
f = createForm()
b = createButton(f)
b.Caption = "Hotkey Editor"
b.top = 20
b.Width = 200
b.Left = 60
--------------------------------------------------
----- Addlist entry MUST selected
--------------------------------------------------
b.OnClick = boo
|
Lua Code for finding the Hotkey activate.
Maybe it will help.
As far as the "Lua Stack" i doubt anything like that exist.
Your trying to batch edit CE's Hotkeys? I seen that the other day on your LUA extension post.
1. I honestly thought it would be easier to write the table to a temp location and use "io.open" edit the xml lines to include the keys that wr just created and then reload the table. You can store all the selected address and use
"loadTable(filename, merge OPTIONAL): " to reload the table. Even this seems really difficult to do and will result in a lot of extra code.
2.Although if you get into the the hotkey form and use and "setSelectedRecord(memrec)". Store the Slected entries and Call the getOnClick() on each "stored" selected entry by using "setSelectedRecord(memrec)".
But this would require grabbing all the info of the Hotkeywindow. Finding all the functions, Strings.
It may work you will also have to override the screen position of that window so its not seen blinking like a hazard light.
3.Or maybe build your own Editor window like the Hotkey window find the "Hotkey" windows "ok" button function and call that function on an array for the selected address's.
Prolly the easiest as this will use CE's "native code" to write the Hotkey as its [readonly].
IDK man thats how I would approuch the problem. But im wrong "ALOT" so good luck
_________________
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4289
|
|
Back to top |
|
|
predprey Master Cheater Reputation: 24
Joined: 08 Oct 2015 Posts: 486
|
Posted: Fri Jul 22, 2016 4:18 pm Post subject: |
|
|
akumakuja28 wrote: | 1st question:
I searched for the variable 80000008 in hex in CE's memory and just kept changing values till a color change happened. |
ahh i see. thanks.
akumakuja28 wrote: | 2.Although if you get into the the hotkey form and use and "setSelectedRecord(memrec)". Store the Slected entries and Call the getOnClick() on each "stored" selected entry by using "setSelectedRecord(memrec)".
But this would require grabbing all the info of the Hotkeywindow. Finding all the functions, Strings.
It may work you will also have to override the screen position of that window so its not seen blinking like a hazard light. |
I was just trying out this method lol. Roadblocks everywhere after I ran my code the first time. synchronizing time lags, access violations etc. trashed the code in the end. So guess it's back to the drawing board for me.
akumakuja28 wrote: | 3.Or maybe build your own Editor window like the Hotkey window find the "Hotkey" windows "ok" button function and call that function on an array for the selected address's.
Prolly the easiest as this will use CE's "native code" to write the Hotkey as its [readonly]. |
probably doing this next, executing CE's "native code". but the skill barrier for the reversing part is much higher, i would probably give up halfway.
akumakuja28 wrote: | 1. I honestly thought it would be easier to write the table to a temp location and use "io.open" edit the xml lines to include the keys that wr just created and then reload the table. You can store all the selected address and use
"loadTable(filename, merge OPTIONAL): " to reload the table. Even this seems really difficult to do and will result in a lot of extra code. |
This would probably be the last resort and if it comes down to this i don't feel the urge to do it since it's just purely automating the manual process. i wouldn't learn much from this too. don't really use hotkeys much anyway, just trying to learn something new while contributing to this community.
thanks for the ideas. my experience with programming has been a long road of trial and errors too but exchanging ideas is always great, there are no wrong solutions, only ones better suited
thanks.
|
|
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 Jul 22, 2016 5:39 pm Post subject: |
|
|
Refurbished akumakuja28's version 1.0.1
The only globals:
- function "Only_IF_64_CE_xcv"
- timer Grab_Entry_Color_Timer_xcv
- variable switch_List_Compact_xcv
Other changes:
- added "local" keyword in many places in the code
- more indentation in the code
- I think Select_Box_xcv8_Panel having OnClick is a bug. So I removed it.
- added "cancel" support for color picker
- reverted to normal aobscans (aobscanmodule and aobscanregion)
Description: |
|
Download |
Filename: |
AddressListCompanion.lua |
Filesize: |
18.06 KB |
Downloaded: |
1658 Time(s) |
_________________
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4289
|
Posted: Sun Jul 24, 2016 9:43 pm Post subject: |
|
|
GitHub commit
Seems like DB added "official" support for changing colours in the address list using Lua. Another revision to this script might be useful whenever this gets officially released.
predprey:
You can also backtrace calls to GetSysColor.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sun Jul 24, 2016 9:58 pm Post subject: |
|
|
ParkourPenguin wrote: | GitHub commit
Seems like DB added "official" support for changing colours in the address list using Lua. Another revision to this script might be useful whenever this gets officially released.
predprey:
You can also backtrace calls to GetSysColor. |
So glad that happened Dark Byte could you also include default color of new list entries. Also fix the overlay issue with the scripts & groups when using a different color for selection.
_________________
|
|
Back to top |
|
|
predprey Master Cheater Reputation: 24
Joined: 08 Oct 2015 Posts: 486
|
Posted: Sun Jul 24, 2016 10:57 pm Post subject: |
|
|
ParkourPenguin wrote: | predprey:
You can also backtrace calls to GetSysColor. |
thanks. there are only two windows api functions i know of currently lol, getasynckeystate and isbadreadptr. this would be the third
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sun Feb 12, 2017 1:34 am Post subject: |
|
|
So, is this Address List Companion V.1 only work for CE 6.5.1 and CE x64 ?
Thanks
|
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sun Feb 12, 2017 3:16 am Post subject: |
|
|
Corroder wrote: | So, is this Address List Companion V.1 only work for CE 6.5.1 and CE x64 ?
Thanks |
Yeah I never got around ti finishing the update. Dark byte exposed the colors to Lua in the 6.6 update.
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sun Feb 12, 2017 6:37 am Post subject: |
|
|
Quote: | Yeah I never got around ti finishing the update. Dark byte exposed the colors to Lua in the 6.6 update. |
Thanks for info[/quote]
|
|
Back to top |
|
|
Merlini Advanced Cheater Reputation: 2
Joined: 12 Jun 2016 Posts: 53
|
Posted: Tue Apr 11, 2017 12:38 pm Post subject: |
|
|
Updated CE and address list companion is not working :<
Can you point me toward how to change memory record's background color and the active X color? (Hopefully it's something that can be set once or
into autorun folder.)
Thanks!
|
|
Back to top |
|
|
YoucefHam Cheater Reputation: 5
Joined: 19 Mar 2015 Posts: 39 Location: Algeria
|
Posted: Thu May 04, 2017 8:55 am Post subject: |
|
|
I get this error.
Description: |
|
Filesize: |
4.53 KB |
Viewed: |
33820 Time(s) |
|
|
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sun May 07, 2017 5:52 pm Post subject: |
|
|
I will make some time to update this extension. Its work season again so time is limited. Sorrt folks.
_________________
|
|
Back to top |
|
|
Mai Eternal How do I cheat? Reputation: 0
Joined: 28 Feb 2017 Posts: 7
|
Posted: Wed Nov 11, 2020 10:57 am Post subject: update maybe? |
|
|
Any chance for an update?
|
|
Back to top |
|
|
|