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 


[Help] Form button in lua?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Wed Feb 10, 2016 10:01 pm    Post subject: [Help] Form button in lua? Reply with quote

Can someone show me how to, do these things.
#make float input for user,
#Make a button print("1")
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Feb 10, 2016 10:10 pm    Post subject: Reply with quote

Code:
writeFloat("address", 1.0)
showMessage("1")
Back to top
View user's profile Send private message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Wed Feb 10, 2016 10:23 pm    Post subject: Reply with quote

Zanzer wrote:
Code:
writeFloat("address", 1.0)
showMessage("1")


Sorry, maybe I didn't say it clear enough, I want to make a trainer where the user that doesn't have access too the source, where he has a text input box where he could input a float, and a BUTTON where if he presses it, it'll print 1 too the console or whatever you would like to call it.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Wed Feb 10, 2016 11:08 pm    Post subject: Reply with quote

Topic covering custom trainers here. Refer to main.lua for more information on the different classes of the GUI elements.
_________________
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
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Thu Feb 11, 2016 5:10 am    Post subject: Reply with quote

ParkourPenguin wrote:
Topic covering custom trainers [urhere[/url]. Refer to main.lua for more information on the different classes of the GUI elements.


ty
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Thu Feb 11, 2016 8:43 pm    Post subject: Reply with quote

[quote="ParkourPenguin"]Topic covering custom trainers

Mhm, I gotten 'decent' at making trainers, but how do I get the users input example

User_input = input("Enter a number")
User_input1 = input("Enter another number")

print(User_input)
print(User_input1)

but make these text boxes..
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Fri Feb 12, 2016 12:45 am    Post subject: Reply with quote

Look into the "Edit" class.

You could also use inputQuery(...) if you want.

_________________
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
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