ProductRNR AutoHotKey Script.

Discussion in 'Scripts' started by douglife31, May 1, 2013.

  1. douglife31

    douglife31 User

    Joined:
    Mar 15, 2013
    Messages:
    446
    Likes Received:
    0
    Credit goes to goughghan and Zerda.Fennecus for coming up with this. This will set all of the selections to "non-adult" and then you can just review all of them and change the ones you need to.

    Just copy and paste into your autohotkey script and then run script.
    #LShift::
    Loop 104
    {
    Send {Tab}
    Send {Right}
    Send {Right}
    Send {Right}
    Send {Right}
    Send {Right}
    Send {Right}
    }
    return


    Also if you want to just go through them using hot keys you can do this script

    You have to click the first bubble to get started, and I usually scroll down with my scroll wheel as I'm going and make corrections with the mouse.

    1::
    Send {Tab}
    Send {Tab}
    Send {Down}
    Send {Down}
    Send {Down}
    Send {Down}
    Send {Down}
    Send {Down}
    return

    2::
    Send {Tab}
    Send {Tab}
    Send {Down}
    Send {Up}
    return

    3::
    Send {Tab}
    Send {Tab}
    Send {Down}
    return

    4::
    Send {Tab}
    Send {Tab}
    Send {Down}
    Send {Down}
    Send {Down}
    return

    1= Non adult
    2= hard core
    3= explicit
    4= suggestive

    everything else I just click with the mouse because it doesn't happen often enough really. Feel free to change the numbers to fit a style that works best for you!
     
    #1 douglife31, May 1, 2013
    Last edited by a moderator: May 2, 2013
  2. iceblink

    iceblink User

    Joined:
    Apr 3, 2012
    Messages:
    550
    Likes Received:
    0
    Thanks for posting this, very useful indeed
     
  3. ownedbytamater

    Joined:
    Aug 18, 2012
    Messages:
    199
    Likes Received:
    0
    I can't seem to get the select all non-adult script to work. I have it typed in correctly but I can't get it to activate.

    Anyone else have this problem or knows what is wrong?

    #LShift::
    Loop 104
    {
    Send {Tab}
    Send {Right}
    Send {Right}
    Send {Right}
    Send {Right}
    Send {Right}
    Send {Right}
    }
    return

    is exactly what I have typed in :~(
     
  4. Zefside

    Zefside User

    Joined:
    Apr 28, 2013
    Messages:
    1,447
    Likes Received:
    0
    i can't get it to work either
     
  5. Zefside

    Zefside User

    Joined:
    Apr 28, 2013
    Messages:
    1,447
    Likes Received:
    0
    nvm got it to work..u have to hit windows key+ Lshift for it to work thats what the #Lshift means
     
  6. KnightSaber24

    Joined:
    Apr 5, 2013
    Messages:
    714
    Likes Received:
    0
    THANK YOU for laying the groundwork for this. I was able (with the help of this thread) to develop a script for these picture RnR's

    https://www.mturk.com/mturk/preview...oductRnR&hitId=2A85R98D8J3VYFWP4FEYIG3QZE0FVZ

    If you want to do the 1,2,3 method use this. Note: The #q is to start so that you land on the first "related" then use the numbers subsequently after. Make sure your clicking on the blue area as well so that it does it properly.

    #q::
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Down}
    Send {up}
    return

    1::
    Send {Tab}
    Send {Tab}
    Send {Down}
    Send {Up}
    return

    2::
    Send {Tab}
    Send {Tab}
    Send {Down}
    return

    3::
    Send {Tab}
    Send {Tab}
    Send {Down}
    Send {Down}


    If you want it to select all of "related" options then discern them from there use this one.Notes: Again use #q to start the process

    #q::
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Tab}
    Send {Down}
    Send {up}
    return

    #LShift::
    Loop 29
    {
    Send {Tab}
    Send {Tab}
    Send {Down}
    Send {Up}
    }
    return


    Thank you guys I had a bad turking day yesterday this will hopefully be able to make up for that so I can bury numbers on my stupid rejections.
     
  7. kcasepr

    kcasepr User

    Joined:
    May 5, 2013
    Messages:
    115
    Likes Received:
    0
    That is a good script. But the delay of 13 to 15 seconds was irritating me. So I pulled out the reference and did some adjusting.
    #LShift::
    Loop 104
    {
    SendInput {Tab}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    }
    return

    This script doesn't have any delay. It also might act funny on a minority of computers.
     
  8. gemthing

    gemthing User

    Joined:
    Apr 11, 2013
    Messages:
    87
    Likes Received:
    0
    All right, found an AppleScript online and adapted. It may be sloppy, but it works.

    For me, it's not actually faster than tab, space bar and down arrow, but maybe it'll help someone. If anyone figures out how to assign the 1,2,3 keys to select and tab, please let me know. I think that would actually be faster.

    Tab so you're on the first Related button and it's selected. Then run this and it'll select all the Related buttons, then you can go back and change what you need to.

    try
    tell application "System Events"
    tell my application "Google Chrome" to activate
    delay 1
    tell process "Google Chrome"
    repeat 29 times
    repeat 2 times
    keystroke tab
    end repeat
    keystroke space
    delay 0.25
    end repeat
    end tell
    end tell
    end try

    **You can take out the delays and it's a little faster, but with the delays you can watch the pictures go by. Your choice.
     
    #8 gemthing, May 9, 2013
    Last edited by a moderator: May 9, 2013
  9. Willow

    Willow User

    Joined:
    Apr 16, 2013
    Messages:
    119
    Likes Received:
    0
    Here are the basic instructions to download, install and start using AutoHotKey:

    1. Download and install AutoHotkey. http://www.autohotkey.com/download/
    2. Right-click an empty spot on your desktop or in a folder of your choice.
    3. In the menu that appears, select New -> AutoHotkey Script. (Alternatively, select New -> Text Document.)
    4. Type a name for the file, ensuring that it ends in .ahk. For example: Test.ahk
    5. Right-click the file and choose Edit Script.
    6. On a new blank line, copy and paste the ProductRNR script from above that you would like to use.

    In the line above, the first character "#" stands for the Windows key; so #A means holding down the Windows key then pressing the A to activate the hotkey.

    7. Save the file with a new name, close the file.
    8. Double-click the file icon from the desktop to launch it. A new icon appears in the taskbar notification area.
    9. Go to the ProductRnR hit you want to use the script with. Accept Hit. Click somewhere in the frame the hit is contained in. Hold down the Windows key and press the A or Left Shift, whichever the script says to use and voila.
    10. To exit or edit the script, right-click the green "H" icon in the taskbar notification area. Save changes then double click to activate it.
    11. Try it out on your ProductRnR hit.
    12. Just repeat above steps for all new scripts.

    Note: Multiple scripts can be running simultaneously, each with its own icon in the taskbar notification area.

    Hope this helps! If you want more detailed instructions, check out this page: http://www.autohotkey.com/docs/Tutorial.htm
     
  10. kcasepr

    kcasepr User

    Joined:
    May 5, 2013
    Messages:
    115
    Likes Received:
    0
    I adjusted this script for Opera web browser. Opera behaves more a bit more stable with hotkey scripts than Chrome does. After the script runs I use the page up and page down keys to check 2 lines of images at a time. I recommend disabling smooth scrolling.

    Answer the first box, then run the script.
    #LShift::
    Loop 44
    {
    SendInput {Tab}
    SendInput {Tab}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}


    }
    Send {Home}
    return
     
  11. Hazed_0ut

    Hazed_0ut User

    Joined:
    Feb 15, 2013
    Messages:
    845
    Likes Received:
    0
    Just had "blue waffle disease pictures" on ProductRNR. WHY?!?! WHY WHY WHY?!?!

    DO NOT GOOGLE IT IF YOU DON'T KNOW WHAT IT IS!!
     
  12. belmonkey

    belmonkey User

    Joined:
    Feb 16, 2013
    Messages:
    488
    Likes Received:
    0
    The scripts on the first page didn't seem to do things perfectly for me. I edited my script to this:


    #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
    ; #Warn ; Enable warnings to assist with detecting common errors.
    SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
    #LShift::
    Loop 110
    {
    SendInput {Tab}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    SendInput {Right}
    sendinput {home}
    }
    sendinput {home}
    sendinput {home}
    Loop 100
    {
    sendinput {left}
    }
    return


    (Only press once) It fills out all the bubbles (one I tried from the other page missed the last few) and it only shifts the screen to the right, as opposed to shifting to the right and to the bottom of the page. Saves a lot of time. Just have to make sure to click on a blank part of the page after using the script because trying to immediately use an arrow key to move back to the left might actually change the answer to the very last bubble in the HIT instead of moving left.

    Edit: in the interest of time saving, added one more loop to the script so that it no longer scrolls to the right.

    Edit 2: The script now seems to fill out the last bubble as "hardcore", so make sure to change that one if necessary.
     
    #12 belmonkey, May 17, 2013
    Last edited by a moderator: May 19, 2013
  13. Herman Pain

    Joined:
    Mar 17, 2013
    Messages:
    70
    Likes Received:
    0
    Thanks a lot bel. So how you would you code this so it can work on the "unrelated items" HIT? I appreciate your help.
     
  14. belmonkey

    belmonkey User

    Joined:
    Feb 16, 2013
    Messages:
    488
    Likes Received:
    0
    That's something I'm not really sure about; I only did a bit of trial / error and asking around how to tweak the script. I haven't done the unrelated items HITs, but if it's just a different amount of bubbles, I'd think the script would have less "Sendinput {right}" commands.
     
  15. belmonkey

    belmonkey User

    Joined:
    Feb 16, 2013
    Messages:
    488
    Likes Received:
    0
    I took a look at how to change up the script for the unrelated images RnR HITs. Here's the new script:


    #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
    ; #Warn ; Enable warnings to assist with detecting common errors.
    SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
    #LShift::
    Loop 110
    {
    SendInput {Tab}
    Sendinput {right}
    Sendinput {left}
    sendinput {home}
    }
    sendinput {home}
    sendinput {home}
    Loop 100
    {
    sendinput {left}
    }
    return


    This automatically fills everything out as related, so you can just pick out the outliers. It's also fixed so that it no longer scrolls to the right like the other script, so it saves a bit more time. If you want to change this script so that it automatically fills it all out as "unrelated", simply delete the first "Sendinput {left}".

    Just put it together, so keep an eye out to make sure it works properly.
     
  16. Sakeeta2013

    Sakeeta2013 Banned

    Joined:
    May 23, 2013
    Messages:
    18
    Likes Received:
    0
    Hello, I see no one ever replied to tell you that your script does not work.

    It ALMOST works, but it marks everything as "Image did not load", not as "Related". If you could please fix this or help me figure out how to fix it, please do so... this script would be very helpful for me.
     
  17. ronburgundy

    ronburgundy Member

    Joined:
    May 21, 2013
    Messages:
    13
    Likes Received:
    0
    nvm script works fine, dont know what happened
     
    #17 ronburgundy, May 23, 2013
    Last edited by a moderator: May 23, 2013
  18. belmonkey

    belmonkey User

    Joined:
    Feb 16, 2013
    Messages:
    488
    Likes Received:
    0
    Mine works fine, although when I set it to automatically fill everything as "unrelated", if I clicked the hotkey more than once it would then set everything to "did not load". It was also the case that if I last activated the other RNR script, it would use those instructions and incorrectly fill out this batch. So I think both scripts can be activated at once, but the one activated most recently is the one that will happen when you use the hotkey. If it's simply the Unrelated batch script activated, I'm not sure what the problem is.
     
  19. lunarobverse

    Joined:
    Mar 22, 2013
    Messages:
    13,055
    Likes Received:
    0
    I've got a Mac so I've always been left out of the AutoHotKey fun, but I spent some time today getting WinXP working in VirtualBox and now all I need is some ProductRnR related or adult HITs to test it all out.

    This could change everything.
     
  20. kcasepr

    kcasepr User

    Joined:
    May 5, 2013
    Messages:
    115
    Likes Received:
    0
    Another potential alternative to autohotkey is a firefox extension called Customize Your Web. It is a greasemonkey user script generator for firefox. I don't have any productrnr hits to use it against at the moment, but I was testing it against other hits and it has some fun capabilities. In theory it should be able to generate scripts to automatically check radio buttons on the page load that can be loaded into any webbrowser supporting user scripts. When I have some results, I'll post some news. It might take some time before I get to it. If someone wants to beat me there, more power to you.
     

Share This Page