|
You last visited: Today at 14:37
Advertisement
[AutoIt] Check element exist in loop
Discussion on [AutoIt] Check element exist in loop within the AutoIt forum part of the Coders Den category.
01/30/2016, 16:47
|
#1
|
elite*gold: 0
Join Date: Jan 2016
Posts: 1
Received Thanks: 0
|
[AutoIt] Check element exist in loop
Hello.
I have that function:
Code:
Func atak()
Local $oFrame = _IEFrameGetCollection($oIE, 1)
Local $tagas = _IETagNameGetCollection($oFrame, "a")
For $taga In $tagas
If StringInStr($taga.id,"npvpattack_") Then
_IEAction($taga,"click")
Sleep(Round(Random(100, 165), 2))
EndIf
Next
EndFunc
And i want to do that:
If $tagas exist or no errors > do "For" loop > at start in loop chekec if no errors > find string with id="xx" then > if no error > ieaction with sleep > else sleep()
Can someone help me with this?
|
|
|
|
Similar Threads
|
AutoIt Image Search Loop help.
11/18/2014 - AutoIt - 7 Replies
Hello people, how is it going? :)
I have recently created a bot which is supposed to click on specific pictures in Clash of Clans with Bluestacks. My problem is, code does work once. Founds everything, clicks once. But it does not loop even with While 1 at start and WEnd at the end. But once I turn off the bot and re open it, everything starts to work again. If someone can help me out to find my problem, I'll be very glad guys. :handsdown:
#include <ImageSearch.au3>
#include <GDIPlus.au3>...
|
Autoit Loop break and restart
04/30/2013 - AutoIt - 4 Replies
Hello guys.
I have wrote a very simple bot (using Autoit) for the game Juggernaut.
Website: s1.jugger.ru (RUS, this bot is for russian server)
Website: Juggernaut - 3D MMORPG Online Game - Online Role-playing Game (ENG)
The bot is for gathering resources (the script uses just normal mouseclicks, no packets). I wrote the bot using While loop, i want to add a refresh function to my bot. So i want the script to refresh the website every X amount of time and RESTART the while loop (not...
|
AutoIT Loop/If help needed
06/26/2010 - CO2 Programming - 2 Replies
Hello, I'm trying out some AutoIT programming for the first time.
I'm trying to make a very simple mining bot but i got stuck, here's the code for the loop where i am stuck:
While 1
$coord0 = PixelSearch ($pos0, $pos0, $pos1, $pos1, 0xD6A252); Search for CopperOre
If Not @error Then MouseClick ("left", $coord0, $coord0, 1, 15)
Sleep (500)
MouseClick ("left", 450, 450, 1, 20); Drop CopperOre
Sleep (2000)
|
Autoit - loop TAB key?
01/11/2010 - Perfect World - 4 Replies
Hi everyone :confused:
I have try all night to make a tab key work...
here the code;
**********************************************
$title = "Element Client"
$game=WinActivate($title, "")
WinSetOnTop($title, "", 0)
Sleep(1000)
$red = "0xFF0000"
|
autoit loop not working
02/17/2009 - Silkroad Online - 0 Replies
$checksum = PixelChecksum(0,0, 50,50)
While 1
If ControlGetText ("SBot v1.10a (C)2008,2009 by bot-cave.net", "", "Static9") = "Connecting" or "Connected" Then
If not ControlGetText ("SBot v1.10a (C)2008,2009 by bot-cave.net", "", "Static11") = "Login error" Then
If $checksum = PixelChecksum(0,0, 50,50) Then
Else
Sleep(5000)
EndIf
Else
ShellExecute($LoginScriptPath & "\" & $LoginScript, $LoginScriptPath)
|
All times are GMT +2. The time now is 14:37.
|
|