Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Gesture status helper.
//
// Functions:
// - Show the state of stroke gestures (current stroke status and registered stroke gestures which can be reached from it).
// - Show the synopsis of gestures which could be activated from last state of GestureMachine when it timeout.
//
// Requires:
// Crevice >= 4.15
{
string StrokeSequenceToString(IEnumerable<Crevice.Core.Stroke.StrokeDirection> strokeSequence)
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Concurrent;
using Crevice.Logging;
public class GestureStrokeOverlayManager : IDisposable
{
protected class Message {}
protected class ResetMessage : Message {}
protected class DrawMessage : Message
var Taskbar = When(ctx =>
{
return ctx.PointedWindow.ModuleName == "explorer.exe" &&
(ctx.PointedWindow.ClassName == "MSTaskListWClass" ||
ctx.PointedWindow.ClassName == "IMEModeButton" ||
ctx.PointedWindow.ClassName == "Button" ||
ctx.PointedWindow.ClassName == "ToolbarWindow32" ||
ctx.PointedWindow.ClassName == "InputIndicatorButton" ||
ctx.PointedWindow.ClassName == "TrayShowDesktopButtonWClass" ||
ctx.PointedWindow.ClassName == "TrayButton" ||
@rubyu
rubyu / #readme.md
Last active June 27, 2018 08:40
OCR script

Prepare the output directory and Google API credential

mkdir "%userprofile%\Crevice4 OCR"
cd "%userprofile%\Crevice4 OCR"
echo YOUR_GOOGLE_API_KEY > google_api_key.txt

Put dependent library dll files into %userprofile%\Crevice4

@rubyu
rubyu / default.csx
Last active June 25, 2018 20:42
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).
ソード妖夢オンライン【完結】.txt
陶都物語~赤き炎の中に~.txt
ありふれた職業で世界最強.txt
俺のロボ.txt
[12354] ゼンドリック漂流記【DDO(D&Dエベロン)二次小説、チートあり】.txt
淡海乃海 水面が揺れる時.txt
紳士は異世界でメイドハーレムの夢をみる.txt
大徳†無双‐等価伝‐.txt
さようなら竜生 こんにちは人生.txt
[22225] 真・恋姫†夢想 とんでも外史.txt
紅糸清澄.txt
ありふれた職業で世界最強.txt
俺のロボ.txt
職人は魔工兵器を持って迷宮に挑み、軍用傀儡は戦場を疾駆する.txt
四度目は嫌な死属性魔術師.txt
陶都物語~赤き炎の中に~.txt
真・恋姫†無双?李岳伝?.txt
淡海乃海 水面が揺れる時.txt
八幡と、恋する乙女の恋物語集.txt
俺ガイル 日常の何気ないエロス。.txt
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Crevice.WinAPI.Window;
var Whenever = When(ctx =>
using System.Drawing;
using System.Threading;
using System.Windows.Forms;
using System.Collections.Concurrent;
using System.Runtime.InteropServices;
using Crevice.Threading;
using Crevice.Logging;
public class GestureStrokeOverlayManager : IDisposable