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 


Date and Time in Title bar

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

Joined: 27 Jul 2016
Posts: 124

PostPosted: Fri Jun 02, 2017 7:52 am    Post subject: Date and Time in Title bar Reply with quote

When I activate this code
Code:
function okclick()
 if not NewCaption then
    openProcess("gang.exe")
showMessage("Succes!.")
  end
end

Immediately date and time will appear in the title bar.
Is there anyway to do that?
If yes please guide me Very Happy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Fri Jun 02, 2017 9:21 am    Post subject: Reply with quote

form.Caption=os.date()
_________________
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
Sting9x
Expert Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 124

PostPosted: Sat Jun 03, 2017 7:18 am    Post subject: Reply with quote

Dark Byte wrote:
form.Caption=os.date()

I do not understand this Sad
Can you be clearer?
Back to top
View user's profile Send private message
Sting9x
Expert Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 124

PostPosted: Sat Jun 03, 2017 8:48 pm    Post subject: Reply with quote

up , help me Very Happy
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Jun 04, 2017 1:10 am    Post subject: Reply with quote

a form is a window. a form.caption is the title of the window

getMainForm() will return the ce main form

_________________
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
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sun Jun 04, 2017 3:30 am    Post subject: Reply with quote

Code:
f = createForm()

function okclick()
 if not NewCaption then
    openProcess("gang.exe")
showMessage("Succes!.")
f.Caption=os.date()
  end
end


No idea when and where to activating function okclick().

But, just to show date and time on form title bar :

Code:
f = createForm()
f.Caption = os.date()
f.show()

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Sting9x
Expert Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 124

PostPosted: Mon Jun 05, 2017 7:28 am    Post subject: Reply with quote

Corroder wrote:
Code:
f = createForm()

function okclick()
 if not NewCaption then
    openProcess("gang.exe")
showMessage("Succes!.")
f.Caption=os.date()
  end
end


No idea when and where to activating function okclick().

But, just to show date and time on form title bar :

Code:
f = createForm()
f.Caption = os.date()
f.show()

This is not my idea
Is there a way for Title gang.exe to change to Date and Time when I activate the code above?
Example : Gang Online - [ date and time ]
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Mon Jun 05, 2017 6:20 pm    Post subject: Reply with quote

Yes...

Code:
title = 'Gang Online'
f = createForm()
f.Caption = title..' - '..os.date()

f.show()

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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