Just would like to show where i am
#include <IE.au3>
$i = -1
$usernm = ":P"
$passwd = ":P"
$oIE = _IECreate ("http://swle.yarold.eu/main.php")
$HATT = "A human awareness test"
WinWait("Yarold's Samurai War Link Exchange - Windows Internet Explorer")
Sleep (500)
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{TAB}")
;$usernm = InputBox("Username", "Enter your username.")
Sleep (150)
Send ($usernm)
Send ("{TAB}")
;$passwd = InputBox("Password", "Enter your password.", "", "*")
Sleep (150)
Send ($passwd)
Send ("{TAB}")
Send ("{TAB}")
Send ("{ENTER}")
Sleep (7000)
$oLinks = _IELinkGetCollection ($oIE)
$iNumLinks = @extended
$iNumLinks2 = $iNumLinks - 23
MsgBox(0, "Link Info", $iNumLinks2 & " links found")
For $oLink In $oLinks
$i = $i + 1
If $i > 22 OR $iNumLinks - 1 > $i Then
_IELinkClickByIndex ($oLink.href, $i, 0)
If _IEPropertyGet ($oLink, "tilte")= $HATT Then
MsgBox (0, "HAT!", "I found a Human Awarness Test! Watch out!")
Endif
EndIf
Sleep (1)
Next
I have an idea for filtering, i will use IELinkClickbyIndex with an if method. Too lazy to calculate now
The only thing that i cant get work, the If _IEPropertyGet ($oLink, "tilte")= $HATT Then
MsgBox (0, "HAT!", "I found a Human Awarness Test! Watch out!")
Endif
Could anybody help to fix it?
Update: with IELink.... , but not workig Pls check out, whats the problem