Better:
Code:
#NoTrayIcon
MsgBox(0, "WoWBot ~ Created by Zhox", "Hotkeys: " & @CRLF & "F11: Toggle Start/Stop" & CRLF & "F12: Exit")
HotKeySet("{F11}","_Toggle")
HotKeySet("{F12}","_Exit")
$Status = 0
While 1
Sleep(10)
If $Status = 1 Then MouseClick("Left")
WEnd
Func _Toggle()
If $Status = 0 Then
$Status = 1
Else
$Status = 0
EndIf
EndFunc
Func _Exit()
MsgBox("WoWBot ~ Created by Zhox", "Thank you for using the bot, press ok to exit.")
Exit
Endfunc

There are many bots like this out there, so I can't give you +Rep. Good job anyway