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 


@DarkByte, your opinion is needed for the last step.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1260

PostPosted: Thu Feb 29, 2024 1:09 pm    Post subject: @DarkByte, your opinion is needed for the last step. Reply with quote

In our last meeting , you gave me the fishing rod and said, "You catch the fish."

The last step remained and I couldn't figure it out.
Code:
obj=MainForm.frmAutoInject

New tab = OK
Code:
obj.addTab()

Add code to new tab = OK
Code:
aa12 = [[print(obj.Name)]]
obj.TabScript[tonumber(obj.TabCount)-1] = aa12

The final step; Name the new tab!
ex:
Code:
obj.TabScript[obj.TabCount-1].TabText --[selectedtab] ? x,y
-- or
obj.TabScript[obj.TabCount-1].CanvasTextOut

Do you have any ideas for the final step? Rolling Eyes

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Feb 29, 2024 3:33 pm    Post subject: Reply with quote

there is currently no property access for indexed entries , and there's no specialized lua array handler for texttext in tablist, so right now it's not possible
_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1260

PostPosted: Thu Feb 29, 2024 4:58 pm    Post subject: Reply with quote

Another question;

"LoadTable = true" adds to the address list (Without deleting previous records.)
But it resets (Deletes) all tabs registered in Lua Script.

Is there a directory that will paste or load the existing xml string into the address list with code other than "LoadTable"?

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Feb 29, 2024 6:06 pm    Post subject: Reply with quote

you can always do something like:
Code:

ss=createStringStream()
saveTable(ss)

tableintextform=ss.DataString

--do stuff with tableintextform

ss.DataString=newtabletext
loadTable(ss)
ss.destroy()

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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