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 


Bind Key without form

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Sun Dec 18, 2016 3:37 pm    Post subject: Re: Bind Key without form Reply with quote

You can replace VK_F with any other key
Code:

form = createForm(false)
form.Position = poDesktopCenter
form.Show()

show = true
function form_show_hide()

   if show then
       show = false
        form.Hide()
    else
       show = true
        form.Show()
    end

end
if key1 then key1.destroy(); key1=nil end
key1 = createHotkey(form_show_hide, VK_F)
key1.DelayBetweenActivate = 300

_________________
...
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Mon Dec 19, 2016 1:04 pm    Post subject: Reply with quote

Copy the script again and run.
_________________
...
Back to top
View user's profile Send private message
Filipe_Br
Master Cheater
Reputation: 3

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Mon Dec 19, 2016 5:54 pm    Post subject: Reply with quote

Maybe your version of the cheat engine is very old. Because here it works very well my script.
_________________
...
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Dec 19, 2016 6:13 pm    Post subject: Reply with quote

Clearly the name of your form is "CETrainer" so it should've been
Code:
CETrainer.Show()
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