Available on Google PlayApp Store

Hey beant, I was wondering if it would be possible that you could set up hotkeys for answering… - Feed Post from Sloppyninja to beeant

Hey beant, I was wondering if it would be possible that you could set up hotkeys for answering cards? (like 1, 2, 3, and 4 for the first answer, second, third, and fourth). Or would that add some load on the site?
posted by Sloppyninja

Comments 6

  • empiresx
    This is an easy modification to the websites code. Since all 4 possibilities are unique, its possible to program 1 to mean first choice, and 2 to mean second choice. Of course editing code like this may cause other parts of the code to behave badly and this requires the website to be down for maint while it is being tested and updated. Something no website owner wants is for their website to be down for extended amounts of time.
  • mog86uk
    It would be nice to have this feature. However, things have been kinda quiet recently, so I wouldn't expect to see this any time soon.

    ---

    I've just had a go at making my own hotkey feature, and it works really well, but only works for Google Chrome (not Firefox or Internet Explorer). It does exactly what you are after. If you have Google Chrome, here's how to do what I've done:

    On the Practice page, edit the HTML by right-clicking the background of the page and click 'Inspect element'. Find this line in the HTML...

    <body>

    ...and replace it with all of the following...
    <body >

    ...and that's all the HTML editing you need to do. Very quick to do if you save it in a text file to copy-paste from. At this stage you will be able to click answers by pressing ALT + 1-4.

    ---

    Next, if you want to remove the need to press ALT, follow these steps:

    1) Download and install AutoHotkey:
    http://ahkscript.org

    2) Open a new Notepad file and paste the following lines...

    1::!1
    2::!2
    3::!3
    4::!4
    #s::Suspend

    ...and save the file as "JCJP.ahk" (as long as it ends in .ahk the name doesn't matter).

    3) Double click the .ahk file you've just made to run it.

    The first four lines of the script changes the '1' key to ALT + 1, '2' to ALT + 2, etc, so you don't need to hold down ALT anymore.
    The fifth line in the script is for toggling the script on/off easily (to make it so 1-4 keys behave normally) which I've set to WindowsKey + S (which isn't used for anything in Windows 7). There's also the AHK icon in the taskbar for exiting the script.

    ---

    It sounds a lot more complicated than it is. It is really quick and easy to do once you've done it the first time.

    Again, this ONLY WORKS IN GOOGLE CHROME. Sorry if this doesn't apply you, but hopefully some Chrome users interested in having this feature might find my information very helpful. Hopefully this feature may be added to the site in a proper way by beeant, but in the meantime this works fine. ^^
  • mog86uk
    I knew that code wasn't going to show properly... 悔しい... -_-

    Okay, I've copy-pasted the code to replace, into an online note here:
    http://shrib.com/da5F1glB

    That took far too much effort for what it was worth! :P
  • empiresx
    I love autohotkey and this script is fantastic. Thank you for it mog86uk. Now I can be even more lazy than I was!
  • Sloppyninja
    Thank you so much mog, this should help me go through my 600 long oblivion list MUCH faster, thanks!
  • mog86uk
    どういたしまして~ I wasn't sure anyone would go through the effort of trying it out. I'm happy to see I didn't post all that for nothing. ^^

    I've been using it today and I kinda like using the hotkeys instead of the mouse, but it's taking some getting used to. I got an easy answer wrong only because I confused in my head which fingers were on which buttons, which was annoying. After using the hotkeys for a while though I can see that it is faster and more relaxing that using the mouse.

    It's pretty easy to change which keys are used if you want. I'm thinking about using something like Z X C V or maybe some unused keys on the numpad. The easiest way to change them is to leave it in the HTML as ALT+1, ALT+2, etc, and only change the AutoHotkey script for what buttons perfom this.

    So change...
    1::!1
    ...to...
    Z::!1
    ...which will make the 'Z' key perform ALT+1, or change it to...
    Numpad1::!1
    ...which will make the numpad '1' key perform ALT+1.

    Whatever keys you set it to won't be able to perfom their normal function while the script is running, but it's not really that much of a problem as you can pause the script easily with WIN+S. ^^
Sloppyninja
beeant

Share

Participants

empiresxmog86ukmog86ukempiresxmog86uk