Well in my attempt to make a new script out of a previous one i already had i failed horribly
#include <IE.au3>
#include <String.au3>
If WinExists("TORN CITY") Then
$oIE = _IEAttach("TORN CITY")
Else
$oIE = _IECreate("http://www.torn.com")
EndIf
MsgBox("", "", "Press for start.")
While 1
$oSubmit = _IEGetObjByName($oIE, "City")
_IEAction($oSubmit, "click")
_IELoadWait($oIE)
$String = _StringBetween(_IEBodyReadHTML($oIE), '<CENTER><A href="', '">Cyber Force</A></CENTER>')
If @error Then
ClipPut(_IEDocReadHTML($oIE))
MsgBox("", "", "Error")
Exit
EndIf
_IENavigate($oIE, "http://Torn.com/" & $String[0])
WEnd
All i want this script to do is click 2 buttons continuously, the first button is "City" the second is "Cyber Force"
please let me know how to fix this script.