Skip to content

Instantly share code, notes, and snippets.

@rubyu
Last active June 25, 2018 20:42
Show Gist options
  • Save rubyu/d2dd0ae3717cb7a097d940ca67314c6f to your computer and use it in GitHub Desktop.
Save rubyu/d2dd0ae3717cb7a097d940ca67314c6f to your computer and use it in GitHub Desktop.
Advance through with WheelDown and view history with WheelUp on Doki Doki Literature Club!
// crevice4 setting file.
// https://github.com/creviceapp/creviceapp
var DDLC = When(ctx =>
{
return ctx.PointedWindow.ModuleName == "DDLC.exe";
});
DDLC.
On(Keys.WheelDown).
Do(ctx =>
{
SendInput.Multiple().
KeyDownWithScanCode(Keys.Enter).
KeyUpWithScanCode(Keys.Enter).
Send();
});
DDLC.
On(Keys.WheelUp).
Do(ctx =>
{
SendInput.Multiple().
ExtendedKeyDownWithScanCode(Keys.Up).
ExtendedKeyUpWithScanCode(Keys.Up).
Send();
SendInput.Multiple().
KeyDownWithScanCode(Keys.Enter).
KeyUpWithScanCode(Keys.Enter).
Send();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment