1. Glad you stopped in for a visit!

    Please feel free to peruse around and if you have a minute make sure to sign up for an account! We're one of the largest, most active, and helpful communities you'll find for learning about mTurk & registered accounts automatically get access to tons of useful features on the site.

    Features for members include:

    • The ability to post messages - our community is incredibly helpful & happy to welcome newcomers who are looking to learn the ropes!
    • Live thread update - no need to refresh pages to see new posts/HITs they flow onto the page automatically as they're posted.
    • Desktop alerts - direct PANDAs from exported HITs right on your desktop
    • Access to the full list of HITs exported through the Daily HIT Log
    • TurkerView account which will grant you extra access to HIT review information all across mTurk through TVJS

    But most importantly you'll be joining an amazing community. You'll find all types here, from stay-at-home Moms to IT pros. We're a great group - feel free to join us!

[Script] AHK Morning Script

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

  1. Havoc928

    Havoc928 Active Member

    Messages:
    672
    Gender:
    Male
    Ratings:
    +723 / 0 / -0
    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
    • Useful / Informative Useful / Informative x 2
    Last edited: Jul 23, 2018
  2. Havoc928

    Havoc928 Active Member

    Messages:
    672
    Gender:
    Male
    Ratings:
    +723 / 0 / -0
    Updated to now paste Mturk ID by pressing Ctrl + 1
     
    Last edited: Jul 23, 2018
  3. Ballistic406

    Ballistic406 Well-Known Member

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