Sign in to follow this  
Followers 0
timsworld03

alittle Help with code

3 posts in this topic

Ok i am making myself an email bot. Here is the script so far..

MouseClick("left",29,776,3)
MouseClick("left",43,330,3)
sleep(20000)
MouseClick("left",73,52,3)
Sleep(9000)
MouseClick("left",181,182,3)
While 1
    Send("timsworld03@yahoo.com")
    Sleep(2000)
WEnd
MouseClick("left",156,340,3)
While 1
    Send("This is a test")
    Sleep(5000)
WEnd
MouseClick("left"97,147,3)

Everything goes fine until, when it types in my email, it keeps on typing it and wont go on to the next line of script. Is there something im missing?

Share this post


Link to post
Share on other sites



Ok i am making myself an email bot. Here is the script so far..

MouseClick("left",29,776,3)
 MouseClick("left",43,330,3)
 sleep(20000)
 MouseClick("left",73,52,3)
 Sleep(9000)
 MouseClick("left",181,182,3)
 While 1
     Send("timsworld03@yahoo.com")
     Sleep(2000)
 WEnd
 MouseClick("left",156,340,3)
 While 1
     Send("This is a test")
     Sleep(5000)
 WEnd
 MouseClick("left"97,147,3)

Everything goes fine until, when it types in my email, it keeps on typing it and wont go on to the next line of script. Is there something im missing?

The While 1/wend will repeatedly execute the code inside until either you make it exit the loop with an exitloop statement or your PC stops working.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

The While 1/wend will repeatedly execute the code inside until either you make it exit the loop with an exitloop statement or your PC stops working.

MouseClick("left",29,776,3)
MouseClick("left",43,330,3)
sleep(20000)
MouseClick("left",73,52,3)
Sleep(9000)
While 1
    Send("timsworld03@yahoo.com")
    Sleep(2000)
    ExitLoop
MouseClick("left",156,340,3)
While 1 
    Send("This is a test message.")
    Sleep(5000)
    ExitLoop
MouseClick("left"97,147,3)
MsgBox("Message sent! The Bot works!")

What do I replace "While 1" With?

Edited by timsworld03

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