Close
View RSS Feed

luxlunae

Launchers are annoying! my (rift) AutoHotKey script

Rate this Entry
Is there anything more annoying than typing a password 5x and then having to move your hand to the mouse to click?

Ok yeah there are lots of things more annoying, but this week this particular annoyance was top of my multiboxing to-do list (more on this later).


AutoHotKey is a freeware scripting program that I've been using for at least the last six years to handle many custom tweaks to computer input. The number one thing I use it for is to open the downloads folder on my computer with "win D" and to send the date no matter what program I'm in with "ctrl D". It's a lazy mans (womans?) scripting language, but I've never seen any good reason to convert my simple scripts to perl or anything else more exotic.


You might have to change the coordinates for yourself.


The ; precedes comments


This script must be run as administrator or else it cant see the isboxer launched windows (in my experimentation anyway)


Code:
Coordmode, Mouse, Screen ; very important


+`::                                            ; This part represents the hotkey, in this case shift `   

{
MouseMove, 1070, 579           ; Moves mouse to password box
Click                                         ; Clicks in password box to give it focus
Send, RIFTPASSWORD{return} ; sends the password and then enter
MouseMove, 1070, 763           ; moves to where the PLAY button will appear
Sleep 3000                               ; this is how long it takes for PLAY button to appear
Click                                          ; sends mouse click to PLAY button
}
return


Once "play" has been clicked, Isboxer will launch the next window in your set and you are free to repeat this sequence. Hypothetically you could string this together to repeat every ten seconds for fifty seconds, rather than pressing the hot key each time, but I'm just not personally comfortable with having it run that long and take over my mouse.
Tags: ahk Add / Edit Tags
Categories
Uncategorized

Comments

  1. JohnGabriel's Avatar
    I have a batch file I run for Rift, it does not do all that your autohotkey script does but its faster than nothing. It sends my password to the clipboard then starts Rift.

    echo RIFTPASSWORD| clip
    start E:\RIFT\riftpatchlive.exe
  2. luxlunae's Avatar
    That's a cool idea, storing it in the clipboard.
  3. Ughmahedhurtz's Avatar
    I did the same thing for my Rift launchers, but in AutoIt v3 (http://www.autoitscript.com/site/autoit/). I didn't update this for the new Glyph launcher but the process is very similar for just about any window.

    This script runs in the tray and just watches for a Rift launcher to pop up, puts in the password, presses enter and then clicks the play button. My riftpatchlive.exe launchers were managed by ISBoxer so the usernames were already populated for each account. If you need to add in account names, just do the same thing except instead of having it run constantly, you'd just have it click in the username textbox and put in a name, then do what's shown below for the first account, then repeat all of that for the second one and so on through your account list. I also have one for EVE if anybody's interested in that one.

    Code:
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_Compression=0
    #AutoIt3Wrapper_UseX64=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    ;#include <WinAPI.au3>
    #include <GUIConstants.au3>
    #include <WindowsConstants.au3>
    opt("WinTitleMatchMode", 3)
    opt("MouseCoordMode", 0)
    opt("TrayIconDebug", 1)
    
    opt("GUIOnEventMode", 1)
    opt("GUIEventOptions", 1)
    
    
    While 1 = 1
        ;#####MAIN
        WinWait("[CLASS:QWidget]", "", 60)
        If WinExists("[CLASS:QWidget]") Then
                sleep(3000)
                WinActivate("[CLASS:QWidget]")
            if WinActive("[CLASS:QWidget]") then MouseClick("left", 530, 360, 1, 0)
            if WinActive("[CLASS:QWidget]") then send("password{enter}")
            if WinActive("[CLASS:QWidget]") then     sleep(1000)
            if WinActive("[CLASS:QWidget]") then MouseClick("left", 530, 515, 1, 0)
            if WinActive("[CLASS:QWidget]") then     sleep(3000)
            if WinActive("[CLASS:QWidget]") then MouseClick("left", 530, 530, 1, 0)
            ProcessWaitClose("riftpatchlive.exe")
        EndIf
    WEnd