View previous topic :: View next topic |
Author |
Message |
kucingkembar Advanced Cheater Reputation: 0
Joined: 08 Oct 2020 Posts: 68
|
Posted: Sat Jul 23, 2022 5:05 pm Post subject: PageControl1.ActivePage.name Do not work |
|
|
sorry for my bad English
I open this link
https://wiki.cheatengine.org/index.php?title=Lua:Class:PageControl
and try
Quote: | ActivePage : TabSheet
Contains the currently selected tab. |
but somehow it does not work,
what I try to get is: get active tab name
Note:
-the tab order in my script may be changed based on condition
thank you, have a nice day
|
|
Back to top |
|
|
mece Newbie cheater Reputation: 2
Joined: 29 Jun 2014 Posts: 17
|
Posted: Sat Jul 23, 2022 6:07 pm Post subject: |
|
|
The following code works for me in my table.
Code: | print(CEFormTeleporter.CEPageControlTeleporter.ActivePage.Caption) |
More info can be found at celua.txt
|
|
Back to top |
|
|
kucingkembar Advanced Cheater Reputation: 0
Joined: 08 Oct 2020 Posts: 68
|
Posted: Sat Jul 23, 2022 6:29 pm Post subject: |
|
|
ok, this is quite silly,
Code: | if TheForm then
TheForm.destroy()
end
ThePageControl= CreatePageControl(TheForm)
FirstTab = ThePageControl.addTab()
FirstTab.name = "first" --this line
SecondTab = ThePageControl.addTab()
SecondTab.name = "Second" --this line
ThePageControl.TabIndex = 0
print(ThePageControl.ActivePage.Caption) |
I misunderstood "FirstTab" as the Tab name, it turns out you need to add ".name" to FirstTab to rename it as the default is blank,
it is quite embarrassing for me, I am very sorry
and thank you mece for the reply
|
|
Back to top |
|
|
|