Sign in to follow this  
Followers 0
NewForAutoit

help send message

3 posts in this topic

#1 ·  Posted (edited)

I want to add the number of sends

it is possible on autoit?

#include <GUIConstants.au3>
$Form1 = GUICreate("message speed sender", 371, 97, 365, 130)
$Label1 = GUICtrlCreateLabel("Message Send to contact :", 8, 16, 132, 17)
$Input1 = GUICtrlCreateInput("", 144, 8, 209, 21)
$Label2 = GUICtrlCreateLabel("Number :", 88, 48, 47, 17)
$Input2 = GUICtrlCreateInput("", 144, 48, 49, 21)
$Button1 = GUICtrlCreateButton("send", 304, 48, 57, 25, 0)
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $Button1
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
EndSwitch
WEnd
Edited by NewForAutoit

Share this post


Link to post
Share on other sites



You can put the send statements in a For loop


In the beginning there was nothing and then even that exploded - anonymous

Share this post


Link to post
Share on other sites

I want to add the number of sends

it is possible on autoit?

#include <GUIConstants.au3>
$Form1 = GUICreate("message speed sender", 371, 97, 365, 130)
$Label1 = GUICtrlCreateLabel("Message Send to contact :", 8, 16, 132, 17)
$Input1 = GUICtrlCreateInput("", 144, 8, 209, 21)
$Label2 = GUICtrlCreateLabel("Number :", 88, 48, 47, 17)
$Input2 = GUICtrlCreateInput("", 144, 48, 49, 21)
$Button1 = GUICtrlCreateButton("send", 304, 48, 57, 25, 0)
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        case $Button1
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
EndSwitch
WEnd
case $Button1
                        For $i = 1 to 5 Step 1
            Send(""&GUICtrlRead($Input4))
            Send("{enter}")
                        Next

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  
Followers 0