Demon777 Posted September 4, 2008 Share Posted September 4, 2008 I have a problem guys =) I made a script for a game that should show how much time till next Event... This Event starting every 1.30 Hour.. For example: At 10.30 on channel 5-4 for low lvl and on ch 1-3 for high lvl... At 12.30 on channel 1-3 for low lvl and on ch 5-4 for high lvl... So how can i make this script to show the time till every Event ? I tryed this : $Form1 = GUICreate("Event Check", 218, 104, -1, -1) $Label1 = GUICtrlCreateLabel("Next Event is at :", 8, 8, 139, 17) GUICtrlSetFont(-1, 8, 400, 0, "Segoe UI") $Label2 = GUICtrlCreateLabel("$Time", 152, 8, 35, 17) GUICtrlSetFont(-1, 8, 800, 0, "Segoe UI") GUICtrlSetColor(-1, 0xFF0000) If $Hour < 0 and $Min < 30 Then GUICtrlSetData ($Label2, '0.30') EndIf For Example : If @HOUR and @MIN < 12.30 and > 10.30 Then Set Data to Label2 that next Event is at 12.30 and so on... Need help =P Thanks ! Link to comment Share on other sites More sharing options...
BrettF Posted September 4, 2008 Share Posted September 4, 2008 Have a look at the _Date* functions. Should have everything you need in there Cheers, Brett 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