I have a very simple script where I have a field with lines of text and send button.
Code: Select all
#SingleInstance, Force
; Create the main Edit control and display the window:
; Gui [Main] Layout
Gui, Main:Color, C2C5CC
Gui Main:+AlwaysOnTop
;Gui Edit Fields
Gui, Main:Add, Edit, x22 y10 w250 h100 vEmail
;Gui Buttons
Gui, Main:Add, Button, x22 y115 w100 h20 gEmail, <<<
Gui, Main:Show, w300 h150, test
GuiControl, Main:Focus, User
return
; Gui Labels
Work:
Email:
Gui, Main:Submit
Send, %Email% {Enter}
Gui, Main:Show
Return
GuiClose:
ExitApp
When i press the button again script shoud send "bbb" and remove "bbb" from list ... and so on to the end of the list.
Can someone tell me how to do this?