Register for your free account! | Forgot your password?

Go Back   elitepvpers > General Gaming > General Gaming Discussion
You last visited: Today at 20:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[AutoIt] Enter the queue script

Discussion on [AutoIt] Enter the queue script within the General Gaming Discussion forum part of the General Gaming category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2008
Posts: 113
Received Thanks: 56
[AutoIt] Enter the queue script

Note: I borrowed the .ini file and MouseCoord pieces from Jazkal.

These two scripts will allow you to target specific pieces of the Darkfall login process and jump in the queue at any time. I will be setting a scheduled task to fire off early in the morning to run this script.

First, I was going to create an instructional video but I dont want to edit out my Login and Character name. If you cant figure it out then I guess you are out of luck.

First, run the queue-setup.au3 file. It will ask you to mouse-hover over a few things. Just let the script run, it will end after a few seconds.
Just Click Enter when you are prompted with Message Boxes.

Second, run the queue.au3 file. You will have a 5 second delay before the mouse starts moving to the shortcut.

Queue-Setup.au3:

Code:
Opt("MouseCoordMode", 0) ; Sets the way coords are used in the mouse functions, 0 = relative coords to the active window

If Not FileExists(@ScriptDir&"\_Queue.ini") Then
IniWrite(@ScriptDir&"\_Queue.ini", "DarkfallIcon", "X", "0")
IniWrite(@ScriptDir&"\_Queue.ini", "DarkfallIcon", "Y", "0")
IniWrite(@ScriptDir&"\_Queue.ini", "LoginButton", "X", "0")
IniWrite(@ScriptDir&"\_Queue.ini", "LoginButton", "Y", "0")
IniWrite(@ScriptDir&"\_Queue.ini", "ServerButton", "X", "0")
IniWrite(@ScriptDir&"\_Queue.ini", "ServerButton", "Y", "0")
IniWrite(@ScriptDir&"\_Queue.ini", "CharacterButton", "X", "0")
IniWrite(@ScriptDir&"\_Queue.ini", "CharacterButton", "Y", "0")
Sleep(500)
EndIf

Global $DFIconTargetX = IniRead(@ScriptDir&"\_Queue.ini", "DarkfallIcon", "X", "0")
Global $DFIconTargetY = IniRead(@ScriptDir&"\_Queue.ini", "DarkfallIcon", "Y", "0")
Global $DFLoginButtonX = IniRead(@ScriptDir&"\_Queue.ini", "LoginButton", "X", "0")
Global $DFLoginButtonY = IniRead(@ScriptDir&"\_Queue.ini", "LoginButton", "Y", "0")
Global $DFServerButtonX = IniRead(@ScriptDir&"\_Queue.ini", "ServerButton", "X", "0")
Global $DFServerButtonY = IniRead(@ScriptDir&"\_Queue.ini", "ServerButton", "Y", "0")
Global $DFCharacterButtonX = IniRead(@ScriptDir&"\_Queue.ini", "CharacterButton", "X", "0")
Global $DFCharacterButtonY = IniRead(@ScriptDir&"\_Queue.ini", "CharacterButton", "Y", "0")

HotKeySet("`", "_GetCoords") ; Press ` key to active coords

$i = 1
While $i = 1
    MsgBox(0, "Get Desktop Shortcut Coords", "Highlight your Darkfall shortcut and press the ` key")
    Sleep (60000)
    $i = $i + 1
Wend

Func _GetCoords()
    $MousePos = MouseGetPos()
    IniWrite(@ScriptDir&"\_Queue.ini", "DarkfallIcon", "X", $MousePos[0])
    IniWrite(@ScriptDir&"\_Queue.ini", "DarkfallIcon", "Y", $MousePos[1])
    $DFIconTargetX = $MousePos[0]
    $DFIconTargetY = $MousePos[1] 
    Sleep (3000)
    MsgBox(0, "Login Screen", "Please bring up the Login Screen")
    Sleep (5000)
    MsgBox(0, "Get Login Button Coords", "You have 5 seconds to MouseOver the Login Button")
    Sleep (5000)
    $MousePos = MouseGetPos()
    IniWrite(@ScriptDir&"\_Queue.ini", "LoginButton", "X", $MousePos[0])
    IniWrite(@ScriptDir&"\_Queue.ini", "LoginButton", "Y", $MousePos[1])
    $DFLoginButtonX = $MousePos[0]
    $DFLoginButtonY = $MousePos[1]
    Sleep (3000)
    MsgBox(0, "Lobby Menu", "Please bring up the Lobby")
    Sleep (5000)
    MsgBox(0, "Get Lobby Server Button Coords", "You have 5 seconds to MouseOver the Servers Tab")
    Sleep (5000)
    $MousePos = MouseGetPos()
    IniWrite(@ScriptDir&"\_Queue.ini", "ServerButton", "X", $MousePos[0])
    IniWrite(@ScriptDir&"\_Queue.ini", "ServerButton", "Y", $MousePos[1])
    $DFServerButtonX = $MousePos[0]
    $DFServerButtonY = $MousePos[1]
    Sleep (3000)
    MsgBox(0, "Character Screen", "Please bring up the Servers Tab")
    Sleep (5000)
    MsgBox(0, "Get Character Coords", "You have 5 seconds to MouseOver your character")
    Sleep (5000)
    $MousePos = MouseGetPos()
    IniWrite(@ScriptDir&"\_Queue.ini", "CharacterButton", "X", $MousePos[0])
    IniWrite(@ScriptDir&"\_Queue.ini", "CharacterButton", "Y", $MousePos[1])
    $DFCharacterButtonX = $MousePos[0]
    $DFCharacterButtonY = $MousePos[1]
EndFunc
Queue.au3:

Code:
Opt("MouseCoordMode", 0) ; Sets the way coords are used in the mouse functions, 0 = relative coords to the active window

Global $DFIconTargetX = IniRead(@ScriptDir&"\_Queue.ini", "DarkfallIcon", "X", "0")
Global $DFIconTargetY = IniRead(@ScriptDir&"\_Queue.ini", "DarkfallIcon", "Y", "0")
Global $DFLoginButtonX = IniRead(@ScriptDir&"\_Queue.ini", "LoginButton", "X", "0")
Global $DFLoginButtonY = IniRead(@ScriptDir&"\_Queue.ini", "LoginButton", "Y", "0")
Global $DFServerButtonX = IniRead(@ScriptDir&"\_Queue.ini", "ServerButton", "X", "0")
Global $DFServerButtonY = IniRead(@ScriptDir&"\_Queue.ini", "ServerButton", "Y", "0")
Global $DFCharacterButtonX = IniRead(@ScriptDir&"\_Queue.ini", "CharacterButton", "X", "0")
Global $DFCharacterButtonY = IniRead(@ScriptDir&"\_Queue.ini", "CharacterButton", "Y", "0")

$i = 1
While $i = 1
    Sleep (5000)
    _Launch()
    $i = $i + 1
WEnd


Func _Launch()
    _DesktopIcon()
    _Login()
    _Lobby()
    _Character()
EndFunc

Func _DesktopIcon()
    MouseClick("left", $DFIconTargetX, $DFIconTargetY, 2)
    Sleep (1000)
    If WinExists("Darkfall End User License Agreement") Then
        ControlClick("Darkfall", "", "Button1", "left", 2)
    EndIf
EndFunc

Func _Login()
    WinActivate("Darkfall")
    Sleep (5000)
    MouseClick("left", $DFLoginButtonX, $DFLoginButtonY, 1)
    Sleep (5000)
EndFunc

Func _Lobby()
    WinActivate("Darkfall")
    Sleep (2000)
    MouseClick("left", $DFServerButtonX, $DFServerButtonY, 1)
    Sleep (5000)
EndFunc

Func _Character()
    WinActivate("Darkfall")
    Sleep (2000)
    MouseClick("left", $DFCharacterButtonX, $DFCharacterButtonY, 1)
    Sleep (5000)
EndFunc
Penakle is offline  
Reply


Similar Threads Similar Threads
Autoit Script als nicht Autoit erkennbar machen
02/22/2013 - AutoIt - 22 Replies
Hallo es haben wiele bestimmt schon gesehn das w0uter mal eine Anleitung gepostet hat wie man ein Autoit script so umbaut das es keins mehr ist. Die anleitung ist aber leider weg :( Dann habe ich mich selber rangesetz und was ausprobiert aber hat nichts gebracht. Dann habe ich geguckt bis wohin sein script geht als ... (kA wie man das nent halt das im hex editor ganz links diese 0x zahlen) und davor habe ich ein ha genauso eins gemacht und verglichen. Am anfang habe ich bemerkt es fengt...
AutoIt Script
07/02/2010 - AutoIt - 33 Replies
Kann mir jemand ein Scirpt machen?? Es soll diese GUI haben: #Region ### START Koda GUI section ### Form=c:\users\philipp\desktop\koda\forms\4story eg bot ge.kxf $Form1_1 = GUICreate("4Story EG Bot", 397, 125, 193, 125) $Tastenfeld = GUICtrlCreateInput("", 32, 40, 121, 21) $startbutton = GUICtrlCreateButton("Start", 184, 40, 75, 25, 0) $Zeitfeld = GUICtrlCreateInput("", 32, 80, 121, 21) $stoppbutton = GUICtrlCreateButton("Stopp", 184, 80, 75, 25, 0) $Label1 =...
need autoIT script
06/24/2009 - Dekaron - 0 Replies
can someone release some scripts for AutoIT plz, or send them to me thank you
Autoit Script
05/13/2007 - Technical Support - 5 Replies
hallo ich hab ein kleines problem ich hab ein autoit script von dem ich möchte das es immer in der taskleiste is und immer wenn ich f9 drücke solls was ausführen und wenn ich f10 drücke solls was anderes ausführen. das script was auszuführen ist hab ich schon aber ich hab keine ahnung wie ich das mit den hotkeys machen soll hoffe ihr könnt mir helfen



All times are GMT +1. The time now is 20:04.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.