#NoEnv SetBatchLines -1 SetControlDelay 0 ; Put in the char you want STR := "###" LEN := StrLen(STR) ; Increase/decrease for slower/faster SLP := 25 ; Create the Gui Gui, 2:+LabelGUI2_ Gui, 2:Margin, 20, 20 Gui, 2:Font, s22 cWhite Bold, Arial Gui, 2:Add, Text, vGUI2_TX , %STR% GuiControlGet, TX, Pos, GUI2_TX GuiControl, Move, GUI2_TX, % "x" TXX "y" TXY "h" TXH "w0" Gui, 2:Show, , % " :)" ; Let's roll D := (TXW + (StrLen(STR) - 1)) // StrLen(STR) X := TXX FX := 0 W := 0 FW := +1 Loop { Sleep, %SLP% W += (D * FW) If (W > TXW) { W := TXW - D FW := -1 If (FX = 0) { X := TXX FX := +1 } ELSE { FX := 0 } } If (W < 0) { W := D FW := +1 If (FX = +1) { FX := -1 } Else { FX := 0 } } X += (D * FX) GuiControl, Move ,GUI2_TX, % "x" X "y" TXY "h" TXH "w" W } ExitApp ; Let's go GUI2_Close: GUI2_Escape: ExitApp
Why does this not run? Change Gui 2 to 1, and it runs like a party. I looked this over and over and don't understand why it gets lost please help me! :?