Jump to content
Sign in to follow this  

help about label blink

Recommended Posts


Please do not blink Thanks a lot

If I were to do with PNG background jitter do not know why the more powerful

please help me!~~ thanks

here's Script!~

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#include <GUIConstantsEx.au3>

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

#include <File.au3>
#include <Array.au3>
#include <StaticConstants.au3>
#include <Constants.au3>

#Region ### START Koda GUI section ### Form=
$GUI = GUICreate("test gui", 595, 79, 193, @DesktopHeight-110,$WS_POPUP,$WS_EX_LAYERED)
_API_SetLayeredWindowAttributes($GUI, 0xABCDEF)

;SetBitmap($GUI, $hImage, 0)
; Register notification messages
$Group1 = GUICtrlCreateGroup("Bulletin", 2, 8, 590, 57)
$Label1 = GUICtrlCreateLabel("Please do not blink Thanks a lot !!!   this is test!~~~", 580, 32, 572, 17,$SS_CENTERIMAGE)
GUICtrlSetBkColor(-1, 0x00ff00)     ; Green
;_API_SetLayeredWindowAttributes($GUI, 0x010101) 

#EndRegion ### END Koda GUI section ###
$b = 1
While 1
if $b = 580 Then 
$b = 1
sleep (10)
ControlMove ($GUI,"", $Label1, 580-$b, 32, 572, 17)
$b +=2
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE

    Func WM_NCHITTEST($hWnd, $iMsg, $iwParam, $ilParam)
    If ($hWnd = $GUI) And ($iMsg = $WM_NCHITTEST) Then Return $HTCAPTION
EndFunc   ;==>WM_NCHITTEST

Func _API_SetLayeredWindowAttributes($hwnd, $i_transcolor, $Transparency = 255, $isColorRef = False)
        Local Const $AC_SRC_ALPHA = 1
        Local Const $ULW_ALPHA = 2
        Local Const $LWA_ALPHA = 0x2
        Local Const $LWA_COLORKEY = 0x1
        If Not $isColorRef Then
                $i_transcolor = Hex(String($i_transcolor), 6)
                $i_transcolor = Execute('0x00' & _
                                                StringMid($i_transcolor, 5, 2) & StringMid($i_transcolor, 3, 2) & StringMid($i_transcolor, 1, 2))
        Local $Ret = DllCall("user32.dll", "int", "SetLayeredWindowAttributes", "hwnd", $hwnd, _
                                                 "long", $i_transcolor, "byte", $Transparency, "long", $LWA_COLORKEY + $LWA_ALPHA)
                Case @error
                        Return SetError(@error, 0, 0)
                Case $Ret[0] = 0
                        Return SetError(4, 0, 0)
                Case Else
                        Return 1


Edited by loveau3

Share this post

Link to post
Share on other sites


The text does not blink for me, but yout label is taking part of the Group line with it as it scrolls. :)

You might be interested in the Marquee UDF in my signature - it does pretty much what you are looking to do. :idea:


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this