[Script] AHK Morning Script

Discussion in 'mTurk Scripts & Resources' started by Havoc928, Jul 23, 2018.

  1. Havoc928

    Havoc928 Active Turker

    Messages:
    854
    Gender:
    Male
    Ratings:
    +818
    Hello everyone, decided I should learn how to do some scripting since we are turkers and all. I have no past experience and have been going at this project for a few hours now banging my head against the wall trying to logic my way through things but this is what I have so far and hopefully will be updated with random stuff in the future.

    Morning Script:
    Simple GUI that opens up popular sites that we use everyday for turking, I decided to create this for when i'm rolling out of bed a O'dark thirty for those juicy east coasts hits I only have to press one button, giving me time to rub my eyes.

    Instructions:
    • Compile in AutoHotKey(AHK)
    • Check off the sites that you want launched and click the big button
    • Enter Mturk ID in line 3 so you can copy and paste for HITs by pressing Ctrl + 1
    Screenshot:

    [​IMG]


    Code:
    Code:
    ;Created by Havoc928
    ;For TurkerHub
    ;07/23/2018
    ;Version 1.0
    
    #SingleInstance, Force
    
    MturkID := "MturkID Here"
    
    ;GUI Layout
    ;-------------------
    ;--------------------------------
    Gui, Font, Black                            ; Text input Box
    Gui, Add, Edit, Limit13 x200 y250 w100 h15 vMturkID gSubmitID, %MturkID%
    
    Gui, Font, cWhite
    Gui, Add, Text, x230 y225, Mturk ID
    
    Gui, Add, Button, x150 y300 w200 h30 gStartUp, Make Money!
    
    
    Gui, Add, CheckBox, x100 y50 cWhite Checked vTurkerHub gSubmit_All, TurkerHub        ;Check Boxes
    Gui, Add, CheckBox, x100 y100 cWhite Checked vDashBoard gSubmit_All, DashBoard
    Gui, Add, CheckBox, x100 y150 cWhite Checked vGmail gSubmit_All, Gmail
    Gui, Add, CheckBox, x300 y50 cWhite Checked vHitForker gSubmit_All, Hit Forker
    Gui, Add, CheckBox, x300 y100 cWhite Checked vPandaCrazy gSubmit_All, Panda Crazy
    
    Gui, Color, Black
    Gui, Show, w500 h500, Morning Script
    Gui, Submit, NoHide
    return
    
    
    ;Labels
    ;-------------------
    ;---------------------------------
    
     
    Submit_All:
        Gui, Submit, NoHide
        Return
     
    SubmitID:
        Gui, Submit, NoHide
        Return
     
     
    
    StartUp:            ;Check box functions
        If(TurkerHub==1)
        {
            Run, chrome.exe https://turkerhub.com/, , Max
            sleep, 1000
        }
        If(DashBoard==1)
        {    Run, Chrome.exe https://worker.mturk.com/dashboard, , Max
            sleep, 1000
        }
        If(Gmail==1)
        {    Run, Chrome.exe https://mail.google.com/, , Max
            sleep, 1000
        }
        If(HitForker==1)
        {    Run, Chrome.exe https://worker.mturk.com/?hit_forker, , Max
            sleep, 1000
        }
        If(PandaCrazy==1)
        {    Run, Chrome.exe https://worker.mturk.com/requesters/PandaCrazy/projects, , Max
            sleep, 1000
        }
        Return
      
    
    ;Functions
    ;--------------------
    ;---------------------------
    
    
    
    
    ;Hotkeys
    ;--------------------
    ;--------------------------------
    
    ^1::
    Send %MturkID%
    return
    
    
    Any feedback, tips, or suggestions would be awesome.

    Thanks.
     
    • Like Like x 2
    • Today I Learned Today I Learned x 2
    Last edited: Jul 23, 2018
  2. Havoc928

    Havoc928 Active Turker

    Messages:
    854
    Gender:
    Male
    Ratings:
    +818
    Updated to now paste Mturk ID by pressing Ctrl + 1
     
    Last edited: Jul 23, 2018
  3. Ballistic406

    Ballistic406 Survey Slinger

    Messages:
    3,888
    Gender:
    Male
    Ratings:
    +6,667
    upload_2018-7-23_21-15-35.png
    Pin your tabs and they'll open up when you open chrome :emoji_thumbsup: