Moderators Melba23 Posted February 4, 2013 Moderators Share Posted February 4, 2013 Hmmm, It seems some people are just too lazy to apply the lessons of one script to another. But because I am feeling generous this afternoon: expandcollapse popup#include <GUIConstantsEx.au3> Global $iLoop = 0 $Form1 = GUICreate("Form1", 400, 130) $Button1 = GUICtrlCreateButton("Start", 10, 90, 80, 30) $Button2 = GUICtrlCreateButton("Stop", 100, 90, 80, 30) $sLabel = GUICtrlCreateLabel("", 10, 10, 1, 30) GUICtrlSetBkColor(-1, 0xFF0000) GUICtrlSetState(-1, $GUI_HIDE) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 _Start() Case $Button2 _Stop() EndSwitch WEnd Func _Start() AdlibRegister("_Marquee", 20) GUICtrlSetState($sLabel, $GUI_SHOW) EndFunc Func _Stop() AdlibUnRegister("_Marquee") GUICtrlSetState($sLabel, $GUI_HIDE) GUICtrlSetPos($sLabel, 10, 10, 1, 30) $iLoop = 0 EndFunc Func _Marquee() $iLoop = Mod($iLoop + 1, 481) + 1 Switch $iLoop Case 1 To 99 GUICtrlSetPos($sLabel, 10, 10, $iLoop, 30) Case 380 To 480 GUICtrlSetPos($sLabel, $iLoop - 90, 10, 480 - $iLoop, 30) Case Else GUICtrlSetPos($sLabel, $iLoop - 90, 10, 100, 30) EndSwitch EndFunc ;==>_Start And now I really am out of here. 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 Link to comment Share on other sites More sharing options...
johnmcloud Posted February 4, 2013 Author Share Posted February 4, 2013 (edited) OliverA, Do not take advantage of the time of Melba, a bit of effort never hurts. P.S. I have say to Melba to update that post for a future reference, for avoid people bump this thread for a stupid thing...i was clairvoyant and it happened 10 minutes after... Have a nice day Edited February 4, 2013 by johnmcloud 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