molotoweef Posted March 20, 2013 Share Posted March 20, 2013 Helas members of that great board, i am a noob at autoit. Still i kind of managed to make it do what i want. But now a problem appeared for which i can't find a solution by searching. expandcollapse popupDo #Region Einfache Suche1 $SearchFluestern = _imageSearch('Fluestern.bmp', 1, $X, $Y, 50) if $SearchFluestern = 1 Then Opt("MouseCoordMode", 2) MouseMove (40, 140) Sleep ( 500 ) MouseClick ( "left" ) EndIf until $SearchFluestern = 1 Sleep ( 400) Send ( "Gamename" ) Sleep ( 200) Send ( "{ENTER}" ) Sleep ( 2000 ) Do #Region Einfache Suche2 $Search101 = _imageSearch('x1.bmp', 1, $X, $Y, 20) If $Search101 = 1 Then Sleep ( 200 ) Opt("MouseCoordMode", 2) MouseMove (500, 390) Sleep ( 150 ) MouseClick ( "left" ) Sleep ( 10000 ) Send ( "{ENTER}" ) Else Sleep ( 300 ) #Region Einfache Suche3 $SearchEingeklinkt = _imageSearch('x2.bmp', 1, $Z, $H, 150) if $SearchEingeklinkt = 1 Then send ( "text" ) send ( "{ENTER}" ) EndIf EndIf Until $Search101 = 1 So this is my prolly eyehurting script. - First Imagesearch checks if my gamingclient is at the right place. If it is, it goes and hosts a game. - Seoncd Imagesearch checks if the game is full, if it is, it starts the game (Until then it an included third Imagesearch welcomse ppl who join). So far so good. What i can't figure out is how i create a loop in the way, that when the game has finished, the script goes back to start. The only dirty solution i could think of, is: make this script open a second script, let the second script close, and then open the first script. But i would love to have it all in one. So i am thankfull for every help. Greetings, Molo. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 20, 2013 Moderators Share Posted March 20, 2013 molotoweef,Welcome to the AutoIt forum. A great pity your searching did not find the Forum rules (there is also a link at bottom right of each page) - you would then have seen that we do not support scripts which interact with games. So you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts