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 


Address List Companion
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting -> Lua Extensions
View previous topic :: View next topic  
Author Message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Fri Jul 22, 2016 3:16 pm    Post subject: Reply with quote

@ 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
View user's profile Send private message
ParkourPenguin
Grandmaster Cheater Supreme
Reputation: 52

Joined: 06 Jul 2014
Posts: 1774
Location: Arcadian Suburbia

PostPosted: Fri Jul 22, 2016 3:58 pm    Post subject: Reply with quote

akumakuja28 wrote:
As far as the "Lua Stack" i doubt anything like that exist.

http://www.lua.org/manual/5.3/manual.html#4
https://www.lua.org/pil/24.2.html

_________________
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
predprey
Master Cheater
Reputation: 15

Joined: 08 Oct 2015
Posts: 366

PostPosted: Fri Jul 22, 2016 4:18 pm    Post subject: Reply with quote

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. Very Happy

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 Very Happy

ParkourPenguin wrote:
akumakuja28 wrote:
As far as the "Lua Stack" i doubt anything like that exist.

http://www.lua.org/manual/5.3/manual.html#4
https://www.lua.org/pil/24.2.html

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

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

PostPosted: Fri Jul 22, 2016 5:39 pm    Post subject: Reply with quote

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)



AddressListCompanion.lua
 Description:

Download
 Filename:  AddressListCompanion.lua
 Filesize:  18.06 KB
 Downloaded:  593 Time(s)


_________________
Back to top
View user's profile Send private message MSN Messenger
ParkourPenguin
Grandmaster Cheater Supreme
Reputation: 52

Joined: 06 Jul 2014
Posts: 1774
Location: Arcadian Suburbia

PostPosted: Sun Jul 24, 2016 9:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sun Jul 24, 2016 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
predprey
Master Cheater
Reputation: 15

Joined: 08 Oct 2015
Posts: 366

PostPosted: Sun Jul 24, 2016 10:57 pm    Post subject: Reply with quote

ParkourPenguin wrote:
predprey:
You can also backtrace calls to GetSysColor.

thanks. Very Happy there are only two windows api functions i know of currently lol, getasynckeystate and isbadreadptr. this would be the third
Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 425

PostPosted: Sun Feb 12, 2017 1:34 am    Post subject: Reply with quote

So, is this Address List Companion V.1 only work for CE 6.5.1 and CE x64 ?

Thanks
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sun Feb 12, 2017 3:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 425

PostPosted: Sun Feb 12, 2017 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Merlini
Advanced Cheater
Reputation: 2

Joined: 12 Jun 2016
Posts: 53

PostPosted: Tue Apr 11, 2017 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
YoucefHam
Newbie cheater
Reputation: 0

Joined: 19 Mar 2015
Posts: 15
Location: Algeria

PostPosted: Thu May 04, 2017 8:55 am    Post subject: Reply with quote

I get this error.


cheatengine-x86_64_2017-05-04_15-44-29.png
 Description:
 Filesize:  4.53 KB
 Viewed:  8215 Time(s)

cheatengine-x86_64_2017-05-04_15-44-29.png


Back to top
View user's profile Send private message Send e-mail
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sun May 07, 2017 5:52 pm    Post subject: Reply with quote

I will make some time to update this extension. Its work season again so time is limited. Sorrt folks.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting -> Lua Extensions All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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