zFrank Posted July 25, 2008 Share Posted July 25, 2008 (edited) anyone please help me in adding every second updated time in my gui and its title. thanks in advance for help! like Time is: 10:48:21 Date is: 25/7/2008 i hope anyone will help me shortly please also give some example if possible. - Edited July 25, 2008 by zFrank [font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php$Life = "Happy" If @Error Then $Life = "Risk" Link to comment Share on other sites More sharing options...
zFrank Posted July 26, 2008 Author Share Posted July 26, 2008 i added the time in title but it was not updating, please tell the way to do it. anyone? [font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php$Life = "Happy" If @Error Then $Life = "Risk" Link to comment Share on other sites More sharing options...
d4rk Posted July 26, 2008 Share Posted July 26, 2008 Just some drafts ... While 1 sleep(1000) $Sec=$Sec+1 GUICtrlSetData($Sec,$Sec) if $Sec>50 then $Min=$Min+1 etc... Wend [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
BrettF Posted July 26, 2008 Share Posted July 26, 2008 Wasn't that hard, but here it is, #include <GUIConstantsEx.au3> #Include <Date.au3> $timeOld = _NowTime () $title = "My Title- " #Region ### START Koda GUI section ### Form= $Form1 = GUICreate($title, 633, 446, 193, 115) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch If $timeOld <> _NowTime () Then $timeOld = _NowTime () $title = "My Title- " & _NowDate () & " - " & $timeOld WinSetTitle ($Form1, "", $title) EndIf WEnd Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
zFrank Posted July 26, 2008 Author Share Posted July 26, 2008 @ BrettF Thanks, its working. can you please tell me how to add it in centre of GUI? @d4rk Thanks for the help! [font="Georgia"]GSM Expert[/font] but not AutoIt :DProud to be Admin Of : http://www.gsmhosting.net/visit my Forum... http://www.gsmhosting.net/vbb/index.php$Life = "Happy" If @Error Then $Life = "Risk" Link to comment Share on other sites More sharing options...
BrettF Posted July 26, 2008 Share Posted July 26, 2008 Fairly simple... Create a label and update it where we updated the title... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now