bobheart Posted September 7, 2004 Share Posted September 7, 2004 Is it possible to show the time in the gui window ? And if so how ? Thank you for any help . Link to comment Share on other sites More sharing options...
bobheart Posted September 7, 2004 Author Share Posted September 7, 2004 Umm this won't work ? this close ? #cs - ### Generated by AutoBuilder 0.4 -- do not modify ### 394 224 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 button $button_1 Button 1 20 60 120 20 0 0 edit $edit_1 Edit 1 80 150 230 30 0 0 #ce - ### End of Dump ### ;Script generated by AutoBuilder 0.4 Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 392,219,(@DesktopWidth-392)/2, (@DesktopHeight-219)/2 , 0x04CF0000) $button_1 = GUISetControl("button", "Button 1", 20, 60, 120, 20) $edit_1 = GUISetControl("edit", "edit_1", 80, 100, 230, 90) GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = 1 ;;; Case $msg = $button_1 ;;; Case $msg = $edit_1 (""& @HOUR &"" ,""& @MIN &"","" & @SEC & "") EndSelect WEnd Exit Link to comment Share on other sites More sharing options...
sugi Posted September 7, 2004 Share Posted September 7, 2004 Umm this won't work ? this close ? (""& @HOUR &"" ,""& @MIN &"","" & @SEC & "")So what are you trying to do with this line of code? Link to comment Share on other sites More sharing options...
bobheart Posted September 7, 2004 Author Share Posted September 7, 2004 Show the time . Link to comment Share on other sites More sharing options...
sugi Posted September 7, 2004 Share Posted September 7, 2004 And how would you want AutoIt to interpret this line? There's no command, only a few strange characters thrown together. Do you want AutoIt to guess what you want? Remember that you have to tell the computer what it should do, not write something and let the computer guess what you want. Link to comment Share on other sites More sharing options...
bobheart Posted September 7, 2004 Author Share Posted September 7, 2004 How do you show the time in a gui . Link to comment Share on other sites More sharing options...
SlimShady Posted September 7, 2004 Share Posted September 7, 2004 #cs - ### Generated by AutoBuilder 0.4 -- do not modify ### 394 224 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 button $button_1 Button 1 20 60 120 20 0 0 edit $edit_1 Edit 1 80 150 230 30 0 0 #ce - ### End of Dump ### ;Script generated by AutoBuilder 0.4 Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 392,219,(@DesktopWidth-392)/2, (@DesktopHeight-219)/2 , 0x04CF0000) $button_1 = GUISetControl("button", "Button 1", 20, 60, 120, 20) $edit_1 = GUISetControl("edit", "edit_1", 80, 100, 230, 90) GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 ExitLoop Case $msg = 1 ;;; Case $msg = $button_1 ;;; Case $msg = $edit_1 GUIWrite($edit_1, 0, @HOUR & " ," & @MIN & "," & @SEC) EndSelect WEnd GUIDelete() Exit Link to comment Share on other sites More sharing options...
bobheart Posted September 7, 2004 Author Share Posted September 7, 2004 Wheres the time ? Link to comment Share on other sites More sharing options...
SlimShady Posted September 7, 2004 Share Posted September 7, 2004 No, the question is "where do I want to show the time?" Answer that to yourself and post it here so we can help you. Link to comment Share on other sites More sharing options...
bobheart Posted September 7, 2004 Author Share Posted September 7, 2004 Link to comment Share on other sites More sharing options...
SlimShady Posted September 7, 2004 Share Posted September 7, 2004 I'm working on it... Tell me... What font did you use in your example? I can make a perfect match (I hope). Link to comment Share on other sites More sharing options...
bobheart Posted September 7, 2004 Author Share Posted September 7, 2004 No don't worry about the font it , it will use what is on the computer anyways right . Link to comment Share on other sites More sharing options...
SlimShady Posted September 7, 2004 Share Posted September 7, 2004 expandcollapse popup#cs - ### Generated by AutoBuilder 0.4 -- do not modify ### 394 224 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 button $button_1 Button 1 20 60 120 20 0 0 edit $edit_1 Edit 1 80 150 230 30 0 0 #ce - ### End of Dump ### ;Script generated by AutoBuilder 0.4 Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 392,219,(@DesktopWidth-392)/2, (@DesktopHeight-219)/2 , 0x04CF0000) $button_1 = GUISetControl("button", "Button 1", 20, 60, 120, 20) $edit_1 = GUISetControl("edit", "edit_1", 80, 100, 230, 90) $Time = @HOUR & ":" & @MIN & "." & @SEC $PrevTime = $Time $time_control = GUISetControl("label", $Time, 250, 30, 80, 25) GUISetControlFont(-1, 16, 600, "Garamond") GuiShow() $x = 0 While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 ExitLoop Case $msg = 1 ;;; Case $msg = $button_1 ;;; Case $msg = $edit_1 EndSelect $x = $x + 1 $Time = @HOUR & ":" & @MIN & "." & @SEC If $x = 9 OR $PrevTime <> $Time Then GUIWrite($time_control, 0, $Time) $PrevTime = $Time $x = 0 EndIf WEnd GUIDelete() Exit Link to comment Share on other sites More sharing options...
bobheart Posted September 7, 2004 Author Share Posted September 7, 2004 See from the help file I would of never know how to this .. thank you . now I know how to do it I can use it in anything I want the time to show . Thank you ., Link to comment Share on other sites More sharing options...
SlimShady Posted September 7, 2004 Share Posted September 7, 2004 No problem. Link to comment Share on other sites More sharing options...
bobheart Posted September 7, 2004 Author Share Posted September 7, 2004 sent you a pm . 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