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 


how to add a file? how to show a form?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
cd&
Newbie cheater
Reputation: 0

Joined: 08 Apr 2023
Posts: 20

PostPosted: Sat Apr 15, 2023 8:16 am    Post subject: how to add a file? how to show a form? Reply with quote

ttps://wiki.cheatengine.org/index.phptitle=Tutorial:LuaFormGUI#Showing_the_form

CheatForm.Show()
timer = createTimer(MainForm)
timer.Interval = 50
timer.OnTimer = function(timer)
timer.destroy()
hideAllCEWindows()
end

cheatenginewiki tells those code show the form. but in fact it is a lie (error : this instruction can't be compiled)
please teach me how to show a form.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Sat Apr 15, 2023 11:00 am    Post subject: Re: how to add a file? how to show a form? Reply with quote

cd& wrote:
ttps://wiki.cheatengine.org/index.phptitle=Tutorial:LuaFormGUI#Showing_the_form

CheatForm.Show()
timer = createTimer(MainForm)
timer.Interval = 50
timer.OnTimer = function(timer)
timer.destroy()
hideAllCEWindows()
end

cheatenginewiki tells those code show the form. but in fact it is a lie (error : this instruction can't be compiled)
please teach me how to show a form.


There is a fault in your code, but you should post all relevant code so others can double-check for errors. From the small snippet you have posted, the timer is destroyed before the function hideAllCEWindows() executes.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4722

PostPosted: Sat Apr 15, 2023 11:24 am    Post subject: Reply with quote

Quote:
error : this instruction can't be compiled
Are you trying to run Lua code in an Auto Assembler window?
_________________
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
cd&
Newbie cheater
Reputation: 0

Joined: 08 Apr 2023
Posts: 20

PostPosted: Sat Apr 15, 2023 7:27 pm    Post subject: Reply with quote

thank you for your reply
>Are you trying to run Lua code in an Auto Assembler window?
yes. I write in auto assemble window.I click file→assign to current cheat table.
>you should post all relevant code
ok.
[enable]
(form that i write).Show()
timer = createTimer(mainform)
timer.Interval = 50
timer.OnTimer = function(timer)
timer.destroy()
hideAllCEWindows()
end
[disable]
(form that i write).hide
end

this code replys (form that i write).Show(): this instruction can't be compiled.
I think .show() can not be compiled.but i also think that is so,why?

postscript
problem is solved
cheatenginewiki and I are wrong.
because of lack of {$lua}
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 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