Commission request - Background input

Mathieu's Avatar

Mathieu

16 Jan, 2020 01:05 PM

Hello,

There's a feature I'd really like Anki to have and I was wondering if I could commission somebody on this forum to make an add-on for it.
In some video game emulators such as BizHawk, you have the option to accept background input. This is really useful because it allows me to play a game while doing something else in another window. This works really well with games that have a lot of idle moments (like RPGs and strategy games).

With Anki, when the application is out of focus, the keyboard shortcuts doesn't work anymore. Would it be possible to create an add-on that allows Anki to accept background input? It would also have to be compatible with the "Customize Keyboard Shortcuts" add-on.

I don't have a lot of money, but I'm willing to pay for this feature to be added because it would be really useful for me.

Thanks,

Mathieu

  1. 1 Posted by Mathieu on 17 Jan, 2020 05:11 AM

    Mathieu's Avatar

    I managed to do what I wanted using AutoHotkey so I don't need this add-on anymore.

  2. 2 Posted by exe on 26 Jan, 2020 03:03 AM

    exe's Avatar

    I too would like this feature.

  3. 3 Posted by exe on 26 Jan, 2020 03:04 AM

    exe's Avatar

    Would you please share your scripts?
    Mine broke when Anki updated to 2.1.

  4. 4 Posted by Mathieu on 26 Jan, 2020 03:43 AM

    Mathieu's Avatar

    #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.

    settitlematchmode,2
    ^4::
    ControlFocus,, - Anki
    sleep 10
    controlsend,,1, - Anki
    return

    settitlematchmode,2
    ^5::
    ControlFocus,, - Anki
    sleep 10
    controlsend,,{Space}, - Anki

    return

    settitlematchmode,2
    ^7::
    ControlFocus,, - Anki
    sleep 10
    controlsend,,3, - Anki
    return

    settitlematchmode,2
    ^8::
    ControlFocus,, - Anki
    sleep 10
    controlsend,,4, - Anki
    return

    settitlematchmode,2
    ^0::
    ControlFocus,, - Anki
    sleep 10
    controlsend,,^z, - Anki
    return

  5. 5 Posted by exe on 26 Jan, 2020 04:37 AM

    exe's Avatar

    Thats incredibly strange that you NEED to have ControlFocus.
    Thank you.

  6. 6 Posted by Mathieu on 28 Jan, 2020 12:45 AM

    Mathieu's Avatar

    Yeah it took me 2 hours to figure that out.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac