Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <AutoItConstants.au3>
- func send_input()
- $val = Random(1, 7, 1 )
- If $val > 1 Then
- Send("{SPACE}")
- Elseif $val = 1 Then
- Send("w")
- ElseIf $val = 2 Then
- Send("s")
- ElseIf $val = 3 Then
- Send("a")
- ElseIf $val = 4 Then
- Send("d")
- ElseIf $val = 6 Then
- MouseClick("left", Random(0,0, 1), Random(0,0, 1), Random(1, 1, 1))
- ElseIf $val = 7 Then
- MouseClick("right", Random(0,0, 1), Random(0,0, 1), Random(1, 1, 1))
- EndIf
- EndFunc
- While 1
- WinWaitActive("For Honor™")
- sleep(250 )
- send_input()
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement