eri Posted February 22, 2010 Posted February 22, 2010 #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("", 150, 130, -1, -1, 0) GUICtrlCreateLabel("Exit Time", 0, 15, 150, 30, $SS_CENTER) GUICtrlSetFont(-1, 16, 400, 0, "Gloucester MT Extra Condensed") $Label = GUICtrlCreateLabel("", 0, 50, 150, 70, $SS_CENTER) GUICtrlSetFont(-1, 30, 400, 0, "Gloucester MT Extra Condensed") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $time = 8 Do $time += -1 GUICtrlSetData($label, $time) Sleep(1000) Until $time = 0 Exit How to Change my script with winapi like in helpfile winapi create font.. Only Display text But run my counter time..
Moderators Melba23 Posted February 22, 2010 Moderators Posted February 22, 2010 eri, Perhaps like this? #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("", 150, 130, -1, -1, $WS_POPUP, $WS_EX_LAYERED) GUISetBkColor(0xABCDEF) _WinAPI_SetLayeredWindowAttributes($Form1, 0xABCDEF, 250) GUICtrlCreateLabel("Exit Time", 0, 15, 150, 30, $SS_CENTER) GUICtrlSetFont(-1, 16, 400, 0, "Gloucester MT Extra Condensed") $Label = GUICtrlCreateLabel("", 0, 50, 150, 70, $SS_CENTER) GUICtrlSetFont(-1, 30, 400, 0, "Gloucester MT Extra Condensed") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $time = 8 Do $time -= 1 GUICtrlSetData($Label, $time) Sleep(1000) Until $time = 0 Exit M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
eri Posted February 22, 2010 Author Posted February 22, 2010 eri, Perhaps like this? #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("", 150, 130, -1, -1, $WS_POPUP, $WS_EX_LAYERED) GUISetBkColor(0xABCDEF) _WinAPI_SetLayeredWindowAttributes($Form1, 0xABCDEF, 250) GUICtrlCreateLabel("Exit Time", 0, 15, 150, 30, $SS_CENTER) GUICtrlSetFont(-1, 16, 400, 0, "Gloucester MT Extra Condensed") $Label = GUICtrlCreateLabel("", 0, 50, 150, 70, $SS_CENTER) GUICtrlSetFont(-1, 30, 400, 0, "Gloucester MT Extra Condensed") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $time = 8 Do $time -= 1 GUICtrlSetData($Label, $time) Sleep(1000) Until $time = 0 Exit M23 Hi M23.. Thank`S Very Much.. you Are right.. But Still Get splash with black Backgroung.. How to make Full transparant..??
Moderators Melba23 Posted February 22, 2010 Moderators Posted February 22, 2010 eri, I get a tranparent GUI with just the text visible, so I do not understand. Are you getting a black backgound? Can you see the text? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
eri Posted February 22, 2010 Author Posted February 22, 2010 eri,I get a tranparent GUI with just the text visible, so I do not understand. Are you getting a black backgound? Can you see the text?M23I get a transparat to.. But get spalsh Black colour in first run.. Only want disable splash Your scirpt is what I wanted..
eri Posted February 22, 2010 Author Posted February 22, 2010 (edited) forget that one Melba.. Help Me again with this Animation.. expandcollapse popup#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $hP = GUICreate("About", 300, 325) GUISetBkColor(0xA0A0A0) $image = GUICtrlCreatePic("Image.jpg", 5, 5, 290, 190, $WS_BORDER, $WS_EX_CLIENTEDGE) $Ok = GUICtrlCreateButton("Button", 213, 290, 80, 25) GUICtrlSetFont(-1, 12, 400, 0, "Gloucester MT Extra Condensed") $Label = GUICtrlCreateLabel("HomePage :", 10, 285, 65, 15) $Label1 = GUICtrlCreateLabel("www.AutoItScript.com", 10, 300, 130, 15) GUICtrlSetColor(-1, 0x0000FF) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW) $hGUI =GUICreate("Animation Text", 286, 75, 6, 203, BitOR($WS_MINIMIZEBOX, $WS_CHILD,$WS_BORDER),-1,$hP) $label2 = GUICtrlCreateLabel("AutoIt"& @CRLF _ &"Sample AutoIt Scirpt"& @CRLF _ &"I Want Stop This Animation When Cursor Stuck This Text" & @CRLF _ &"..0O Help Me O0..", 10, 10, 240, 100,$SS_CENTER) GUICtrlSetFont(-1, 10, 400, 0, "Comic Sans MS") GUISetState() While 1 For $x = 1 To 160 GUICtrlSetPos($label2, 20, 75 - $x) Sleep(40) $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE, $Ok Exit Case $Label1 ShellExecute("www.AutoItScript.com") EndSwitch Next WEnd How to stop Animation Text when the cursor stuck at the Text.. I hope you're not bored with My questions.. Edited February 22, 2010 by eri
Moderators Melba23 Posted February 22, 2010 Moderators Posted February 22, 2010 eri, I hope you're not bored with My questionsNot if they are easy to solve as this one: $fFlag = True While 1 For $x = 1 To 160 If $fFlag = True Then GUICtrlSetPos($label2, 20, 75 - $x) Sleep(40) $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE, $Ok Exit Case $Label1 ShellExecute("www.AutoItScript.com") Case $label2 $fFlag = False EndSwitch Next WEnd But you need to put more effort into solving your problems by yourself. Next time I shall expect you to have made some effort to solve your problem before I give you a solution! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
eri Posted February 22, 2010 Author Posted February 22, 2010 But you need to put more effort into solving your problems by yourself. Next time I shall expect you to have made some effort to solve your problem before I give you a solution! Ok I'll try .. thank you. You Are solver for me..
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