Skip to content

Instantly share code, notes, and snippets.

View y3rsh's full-sized avatar
😊
One moment at a time.

Josh McVey y3rsh

😊
One moment at a time.
View GitHub Profile
import time
import win32api, win32con
VK_CODE = {'left_arrow':0x25,
'spacebar':0x20,
'right_arrow':0x27}
def press(x):
win32api.keybd_event(VK_CODE[x], 0,0,0)
win32api.keybd_event(VK_CODE[x],0 ,win32con.KEYEVENTF_KEYUP ,0)
@y3rsh
y3rsh / CustomRules.js
Created June 29, 2011 17:12
Fiddler Custom Rules
import System;
import System.IO;
import System.Windows.Forms;
import Microsoft.VisualBasic;
import Fiddler;
// GLOBALIZATION NOTE:
// Be sure to save this file with UTF-8 Encoding if using any non-ASCII characters
// in strings, etc.
//