Hello, to begin with I would like to say hello, I'm a new guy here, If the post doesn't belong here you are welcome to move it. Soo... I need help with writing simple script using AutoIt, below I'm showing you guys how would it look like.
- Start/Stop key = Alt + Pause Break
when start key pressed:
- Press F1, wait 2 seconds, use right click
wait 2 seconds
- Press F2, wait 2 seconds, use right click
wait 2 seconds
- Press F3, wait 2 seconds, use right click
continue pressing "F3, wait 2 seconds, use right click" for 1-2 minutes and then repeat F1, F2 and again F3 (loop)
Also I would like the script to use the right click where the mouse is set at, no need for setting coordinates.
;sets the hot key "alt+pause" for function _start ;sets the hot key "esc" for function _exit
Global $isPaused = True
;bool for toggle start/pause
While 1 If $isPaused = False Then ;checks if bot is on/off ;if on then... ;everything in this while will be repeated until you press alt+pause again Send("{F1}") ;sends key F1 Sleep(2000) ;sleeps for 2000ms = 2s MouseClick("Right") ;uses right click (mouse)
Send("{F2}") Sleep(2000) MouseClick("Right")
$timer = TimerInit() ;sets a timer $diff = TimerDiff($timer) ;reads the time difference to TimerInit() While $diff < 120000 ;while the timer difference is less than 120000ms (2min)..... $diff = TimerDiff($timer) ;read diff again otherwise it will always be as big as before the while Send("{F3}") Sleep(2000) MouseClick("Right") WEnd EndIf ;if off then ask again WEnd
Func _Start() ;function which is called by pressing alt+pause If $isPaused = False Then $isPaused = True If $isPaused = True Then $isPaused = False EndFunc
Func _Exit() Exit EndFunc
very simple explanations in the comments (with ; at the beginning)
Func _Start()
If $isPaused = False Then $isPaused = True
If $isPaused = True Then $isPaused = False
EndFunc
Func _Exit()
Exit
EndFunc
when you press alt+pause
everthing below "If $isPaused = False Then" will happen
->
send f1
wait 2s
right click
wait 2s
send f2
wait 2s
right click
wait 2s
timer will be set for 2m
during this 2m
->
send f3
wait 2s
right click
wait 2s
repeat until time is > 2m
go back and repeat everything
when you press alt+pause again
->
script will finish this operation (if you press alt+pause after the script presses f1 it will first do f2 and the 2mins f3)
Simple script needed 12/12/2013 - Diablo 2 Programming - 0 Replies Hi
I need a simple script that will create a game for x amount of minutes and display the time left until next game above the head of the character and nothing else.. I would write this myself but I don't know how.
thanks for any help
Need help on simple background bot script. 12/02/2010 - CO2 Programming - 5 Replies Hi all,
Can anyone help me to write a very small very simple bot (not macro), using C# that walks to a particular co-ordinate...
I found :
008CABEC as X Coord
008CABF0 as Y Coord
from Cheat Engine.
Very Simple AFK script 10/03/2009 - Aion Hacks, Bots, Cheats & Exploits - 0 Replies Autoit afk script, saw there was none but if you need it like i do at 20:00 and gotta go afk this is for you.
simple script or what ? 11/24/2008 - Lineage 2 - 1 Replies first sry my bad english i'm just 9 year old and i live in bulgaria
i need help for this :
on l2j , ct1 /or 2/ server i run ig walker /maybe 2.05 or 2.07/
i have necro character , and i want to this char use own skill death spike continously /on boss or etc./ without pressing the F-keys
i need some script , or something else , or it is possible or not
sorry if i ask too stupid things , but this is my first post , first problem , first walker using