wolf_II wrote:Ohh, sorry. Is this what you are looking for?
Code: Select all
InputBox, Msg_Count, Message Amount, Enter the number of messages
Loop, %Msg_Count%
InputBox, Message%A_Index%, Message, Enter text for message #%A_Index%
Loop, % Msg_Count {
Gui, Add, Text, xm, Message #%A_Index%
Gui, Add, Edit, x+m w200, % Message%A_Index%
}
Gui, Show,, Autotyper
Return
Thanks guys, now I got this one, and it works
Code: Select all
MsgBox,
(
Welcome to my Autotyper
^ means CTRL (Control)
Commands:
^s: Edit Messages
^r: Reload
^p: Pause/Play
Escape: Exit
The Messages will be repeated until you Pause or Exit.
Think of how many different Messages you want to type (for the next Step)
)
InputBox, Msg_Count, Message Amount, Enter the number of messages
InputBox, Delay_Count, Delay Amount, Enter the number of Delay in seconds, normally 5
Loop, %Msg_Count%{
InputBox, Message%A_Index%, Message, Enter text for message #%A_Index%
}
Loop, % Msg_Count {
Gui, Add, Text, xm, Message #%A_Index%
Gui, Add, Edit, x+m w200, % Message%A_Index%
}
Gui, Add, Text, xm, Press Control+S to edit Messages.
Gui, Show,, Autotyper
MsgBox, Press OK to start Typing (Cant Edit from GUI)
d:
While(true){
Loop, %Msg_Count%{
Send, % Message%A_Index%
Send, {ENTER}
FileAppend, % Message%A_Index% "`n", %A_ScriptDir%\message_log.txt ; <<< added
Sleep, Delay_Count*1000
}
}
f:
InputBox, Edit_Msg, Edit Message, Enter the number of the Message to edit.
InputBox, Message%Edit_Msg%, Message, Enter text for message #%Edit_Msg%
Gui Destroy
Loop, % Msg_Count {
Gui, Add, Text, xm, Message #%A_Index%
Gui, Add, Edit, x+m w200, % Message%A_Index%
}
Gui, Add, Text, xm, Press Control+S to edit Messages.
Gui, Show,, Autotyper
MsgBox, Press OK to start Typing again!
return
^r::Reload
^p::Pause
^s::Goto, f
Escape::ExitApp
Maybe possible to Add/Remove+Update GUI, I managed to Edit and change GUI but not sure how to Remove or Add
Remove should Remove any of X Messages example I have 4 Messages and I want to delete Message 2, after the deletion I have 3 Messages left, Message 3 becomes Message 2 and Message 4 becomes Message 3.
Adding should just add a Message at the End of the Row
I know its probably possible, but I dont know how