Code:
$startup = MsgBox(0x41, "AFKer", "F5 to start and F6 to cancel")
If $startup = 2 Then
MsgBox(0, "Seal's Afker", "Bot Closed")
Exit
EndIf
HotKeySet("{F5}", "hide")
HotKeySet("{F6}", "show")
While 1
Sleep(1000)
WEnd
Func hide()
Global $Show = 0
WinSetState( "World of Warcraft", "", @SW_MINIMIZE)
WinActivate("World of Warcraft")
If @error Then
MsgBox(0, "error", "Start WoW Please")
Else
While 1
$unique = Random(1, 5, 1)
Do
Sleep(6000000 + Random(40000, 60000, 1))
ControlSend( "World of Warcraft", "", "", "{Enter}/camp{Enter}")
Sleep(31000 + Random(10000, 70000, 1))
ControlSend( "World of Warcraft", "", "", "{Enter}")
Until $unique = 6
Do
ControlSend( "World of Warcraft", "", "", "9", 1)
Sleep(18000 + Random(1, 1000, 1))
Until $unique = 6
Sleep(100)
If $unique = 1 Then
ControlSend( "World of Warcraft", "", "", "{UP DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{UP UP}")
ControlSend( "World of Warcraft", "", "", "{DOWN DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{DOWN UP}")
Sleep(200000 + Random(5000, 15000, 1))
ElseIf $unique = 2 Then
ControlSend( "World of Warcraft", "", "", "{RIGHT DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{RIGHT UP}")
ControlSend( "World of Warcraft", "", "", "{LEFT DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{LEFT UP}")
Sleep(200000 + Random(5000, 15000, 1))
ElseIf $unique = 3 Then
ControlSend( "World of Warcraft", "", "", "{DOWN DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{DOWN UP}")
ControlSend( "World of Warcraft", "", "", "{UP DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{UP UP}")
Sleep(200000 + Random(5000, 15000, 1))
ElseIf $unique = 4 Then
ControlSend( "World of Warcraft", "", "", "{LEFT DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{LEFT UP}")
ControlSend( "World of Warcraft", "", "", "{RIGHT DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{RIGHT UP}")
Sleep(200000 + Random(5000, 15000, 1))
ElseIf $unique = 5 Then
ControlSend( "World of Warcraft", "", "", "{LEFT DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{LEFT UP}")
ControlSend( "World of Warcraft", "", "", "{RIGHT DOWN}")
Sleep(100 + Random(1, 50, 1))
ControlSend( "World of Warcraft", "", "", "{RIGHT UP}")
Sleep(200000 + Random(5000, 15000, 1))
EndIf
If $Show > 0 Then ExitLoop
WEnd
EndIf
EndFunc ;==>hide
Func show()
Global $Show = 1
WinSetState("World of Warcraft", "", @SW_SHOW)
WinSetState("World of Warcraft", "", @SW_MAXIMIZE)
WinActivate( "World of Warcraft", "")
EndFunc ;==>show
Second try(tried other stuff):
Code:
$startup = MsgBox(0x41, "AFKer", "F5 to start and F6 to cancel")
If $startup = 2 Then
MsgBox(0, "Seal's Afker", "Bot Closed")
Exit
EndIf
HotKeySet("{F5}", "hide")
HotKeySet("{F6}", "show")
While 1
Sleep(1000)
WEnd
Func hide()
Global $Show = 0
AutoItSetOption( "SendKeyDelay", 50)
WinActivate("World of Warcraft")
WinSetOnTop("World of Warcraft", "", 0)
WinWaitActive("World of Warcraft")
If ProcessExists("Wow.exe") Then
$unique = Random(1, 5, 1)
ElseIf $unique = 1 Then
Send("{UP DOWN}")
Sleep(100 + Random(1, 50, 1))
Send("{UP UP}")
Send("{DOWN DOWN}")
Sleep(100 + Random(1, 50, 1))
Send("{DOWN UP}")
Sleep(200000 + Random(5000, 15000, 1))
ElseIf $unique >= 2 Then
Send("{RIGHT DOWN}")
Sleep(100 + Random(1, 50, 1))
Send("{RIGHT UP}")
Send("{LEFT DOWN}")
Sleep(100 + Random(1, 50, 1))
Send("{LEFT UP}")
Sleep(200000 + Random(5000, 15000, 1))
EndIf
While 1
Do
Sleep(6000000 + Random(40000, 60000, 1))
Send("{Enter}/camp{Enter}")
Sleep(31000 + Random(10000, 70000, 1))
Send("{Enter}")
Until $unique = 6
Do
Send("9")
Sleep(18000 + Random(1, 1000, 1))
Until $unique = 6
WEnd
EndFunc ;==>hide
Func show()
Global $Show = 1
WinSetState("World of Warcraft", "", @SW_SHOW)
WinSetState("World of Warcraft", "", @SW_MAXIMIZE)
WinActivate( "World of Warcraft", "")
EndFunc ;==>show
In both instances, the bot is completely unresponsive in wow. I can't get anything to work. Oh and btw, the 9 key is a join/leave bg macro I made. I just want it to press 9, randomly move, and logout every 10 mins (preferably while minimized, but we'll see).