|
本帖最后由 1219923 于 2014-3-20 21:11 编辑
小弟的跑馬燈已向上停止幾秒後在顯示下一則
旦發現執行久了記憶體就被吃光了
不知該如何修改
以下是小弟的寫法!!在請各位大大教教小弟!!
#include <Marquee.au3>
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
$a = 0
Global $i = 0
Local $iWidth = 720, $iHeight = 40, $iX = @DesktopWidth - $iWidth, $iY = 0
Dim $mager[10] = ["文字一","文字二","文字三","文字四","文字五","文字六","文字七","文字八","文字九"]
GUICreate("跑馬燈", $iWidth, $iHeight, $iX, $iY,$WS_POPUPWINDOW,$WS_EX_TOOLWINDOW)
_GUICtrlMarquee_SetScroll(0,"slide" ,"up" , Default, 10)
_GUICtrlMarquee_SetDisplay(10, 0x000066, 0xCCFFCC, 32, "標楷體")
_GUICtrlMarquee_Create($mager[$a], 0, 0, 800, 40)
GUISetState(@SW_SHOW)
While 1
If $a = 9 Then
$a = 0
Else
_GUICtrlMarquee_Create($mager[$a], 0, 0, 800, 40)
sleep(1000)
$a += 1
EndIf
WEnd |
|