timsworld03 Posted April 10, 2009 Share Posted April 10, 2009 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? Link to comment Share on other sites More sharing options...
martin Posted April 10, 2009 Share Posted April 10, 2009 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. Link to comment Share on other sites More sharing options...
timsworld03 Posted April 10, 2009 Author Share Posted April 10, 2009 (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 April 10, 2009 by timsworld03 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now