Skip to content

Instantly share code, notes, and snippets.

// crevice4 setting file.
// You can use Visual Studio Code for editing this file.
#region #r direction section.
// You can use #r directive to load an assembly. #r directive must be on the top,
// above of all the other lines.
//#r "other.dll"
#endregion
#region #load directive section.
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
{{FrontSide}}
<hr id=answer>
{{Back}}
<div id="google-search">{{text:Front}}</div>
<script type="text/javascript">
var target = document.querySelector("div#google-search");
var query_word = target.textContent;
// ==UserScript==
// @name Remove Joshin Items
// @match https://shopping.dmkt-sp.jp/products_search*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function main(){
Array.from(document.querySelectorAll("#search-item-list .item.item-list"))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rubyu
rubyu / minimize_rdp_apps.cs
Created January 9, 2018 03:32
Minimize foreground window with Crevice by using Win32 API.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CreviceApp.WinAPI.CoreAudio;
using CreviceApp.WinAPI.Window;
using static CreviceApp.WinAPI.Constants.WindowsMessages;
@rubyu
rubyu / modifier_example.cs
Created January 9, 2018 03:25
Using the value if modifier key is pressed or not in Crevice user definition.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CreviceApp.WinAPI.CoreAudio;
using CreviceApp.WinAPI.Window;
using static CreviceApp.WinAPI.Constants.WindowsMessages;
@rubyu
rubyu / claunch.csx
Created December 23, 2017 07:47
Disable CLaunch window by middle button click
var CLaunch = @when((ctx) =>
{
return ctx.PointedWindow.ModuleName == "CLaunch.exe";
});
CLaunch.
@if(MiddleButton).
@do((ctx) =>
{
#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.
+^!F9::Run, DisplayStandBy.exe
+^!F10::Run, schtasks /run /tn "SwitchDisplayProfile1"
+^!F11::Run, schtasks /run /tn "SwitchDisplayProfile2"
+^!F12::Run, schtasks /run /tn "SwitchDisplayProfile3"