pezo89 Posted January 5, 2010 Share Posted January 5, 2010 $a_answers = StringSplit("hei alt bra?, heisann slang igjen en liten kommentar jeg :)", ",")Hi guys, i where just wondering how i can have two diffrent $a_answers? for example above thats one line, but i kinda want two random inputs like below here $a_answers = StringSplit("hei alt bra?, heisann slang igjen en liten kommentar jeg :)", ",") $a_answers = StringSplit(":Roll,:smile,:laugh",") so it adds first a random on the first one into the send code then the a random word from the second behind that then sends enter $i_var = Random(1, $a_answers[0],1) Sleep(Random(100,600)) Send($a_answers[$i_var]) expandcollapse popup#include <IE.au3> $oIE = _IEAttach ("about:blank", "url") _IELoadWait ($oIE) Global $Paused sleep ("1000") HotKeySet("{Pause}", "TogglePause") HotKeySet("{Insert}", "Terminate") send ("{Pause}") $a_answers = StringSplit("hei alt bra?, heisann slang igjen en liten kommentar jeg :)", ",") while 1 $pixelSearch=PixelSearch(637, 348, 1082, 1004, 0x352D00) If IsArray($pixelSearch)=1 Then toolTip('Script - "Scriptet er - PÅ"',0, 40) ;50points -0x352D00 $pixelSearch=PixelSearch(637, 348, 1082, 1004, 0xFFFF00) ;Search the pixelcolor => Start at 0pixel by 0pixel and finish at your DesktopWidth by DesktopHeight $randum = Random(200, 900, 1) MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,5) ;Click with left mouse at pixelfound position (with 0 speed = MAX) MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,5) ;Click with left mouse at pixelfound position (with 0 speed = MAX) Sleep(Random(100,660)) send ("{tab}") Sleep(Random(100,660)) Send("+{TAB}") Sleep(Random(100,660)) $i_var = Random(1, $a_answers[0],1) Sleep(Random(100,600)) Send($a_answers[$i_var]) Sleep(Random(100,660)) $pixelSearch=PixelSearch(637, 348, 1082, 1004, 0x352D00) Sleep(Random(100,660)) MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,5) ;Click with left mouse at pixelfound position (with 0 speed = MAX) MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,5) ;Click with left mouse at pixelfound position (with 0 speed = MAX) send ("{ESC}") Sleep(Random(100,660)) send ("{LEft}") Sleep(Random(100,660)) send ("{Pause}") EndIf WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) toolTip('Script - "Scriptet er - AV"',0, 40) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func End() $counter=0 EndFunc Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 5, 2010 Share Posted January 5, 2010 $a_answers = StringSplit("hei alt bra?, heisann slang igjen en liten kommentar jeg :)", ",")Hi guys, i where just wondering how i can have two diffrent $a_answers? for example above thats one line, but i kinda want two random inputs like below here $a_answers = StringSplit("hei alt bra?, heisann slang igjen en liten kommentar jeg :)", ",") $a_answers = StringSplit(":Roll,:smile,:laugh",") Like this? $a_answers1 = StringSplit("hei alt bra?, heisann slang igjen en liten kommentar jeg :)", ",") $a_answers2 = StringSplit(":Roll,:smile,:laugh",",") Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
pezo89 Posted January 5, 2010 Author Share Posted January 5, 2010 i WAS so simple, i where thinking on it, but never tried it.. lol... thx m8 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