Again, taken from WoWGlider Members Area Enjoy
Although I love reloggin on disconnect the most...
Another script of mine is more immediate but not as effective
This script will reattach glider and then hit glide, or just hit glide if it is already attached after you have begun gliding.
Code:
;----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author: PwnSh0p
;
; Script Function:
;
; If it finds that glider is unattached or not gliding,
; it will reattach glider
; and choose glide on -- ---
;----------------------------------------------------------------------------
AutoItWinSetTitle(random(10, 1000000, 1))
$title = random(10, 1000000, 1)
$win_title = "World of Warcraft"
HotKeySet("{END}", "request_end")
$hit = 1
$oncolor = "0xFF0000"
checkwindow()
while $hit
Msg("Move your mouse EXACTLY over the black {A} character part of the ""attach"" button" & @LF & "and press enter. This works very well but might require a few retries," & @LF & "and you need to make sure that glider is not already attached.")
$mouserPOS = MouseGetPos()
$attachx = $mouserPOS[0]
$glidey = $mouserPOS[1]
$glidex = $mouserPOS[0] - 68
$colordec = PixelGetColor($mouserPOS[0], $mouserPOS[1])
$color_to_use = "0x" & Hex($colordec, 6)
if $color_to_use = "0x000000" then
msg("Perfect. Use the {END} key on the keyboard to exit. Automation starting...")
$hit = 0
else
msg("Try again. Mouse has to be over the black text of the attach button.")
$hit = 1
endif
wend
while 1
checkwindow()
$checkunattached = "0x" & Hex(PixelGetColor ( $attachx , $glidey ), 6)
if $checkunattached = "0x000000" then
MouseMove($attachx, $glidey, 1)
sleep(1000)
MouseClick("left", $attachx, $glidey, 1, 1)
sleep(1000)
MouseMove($glidex, $glidey, 1)
sleep(1000)
MouseClick("left", $glidex, $glidey, 1, 1)
endif
sleep(5000)
$checkgliding = "0x" & Hex(PixelGetColor ( $attachx - 15 , $glidey ), 6)
if $checkgliding = "0xA7A6AA" then
MouseMove($glidex, $glidey, 1)
sleep(1000)
MouseClick("left", $glidex, $glidey, 1, 1)
sleep(1000)
elseif $checkgliding = $oncolor then
sleep(5000)
else
msg("Unknown state of gliding. Exiting...")
Exit
endif
sleep(2000)
wend
func request_end()
$MB_YESNO = 4
$MB_YES = 6
if MsgBox($MB_YESNO, $title, "End WoWAttach?") == $MB_YES then
Exit
endif
endfunc
func checkwindow()
$x = WinGetState( $win_title )
$y = BitAND( $x, 9 )
if $y = 0 then
msgbox( 0, $title, "WoW Window is nonapparent. Exiting...")
Exit
endif
endfunc
func msg($text)
MsgBox(0, $title, $text)
endfunc
Get AutoIt here: (Although you should already have it )
http://www.autoitscript.com/autoit3/