Skip to content

Instantly share code, notes, and snippets.

View jasondavis's full-sized avatar

Jason Davis jasondavis

View GitHub Profile
@jasondavis
jasondavis / dynaclip.ahk
Created February 3, 2018 23:29 — forked from db93n2/dynaclip.ahk
(autohotkey) - basic web clipper for https://dynalist.io
/*
[script info]
version = 0.4
description = basic web clipper for dynalist.io
author = davebrny
source = https://gist.github.com/davebrny/a23080af7aa3a648c5ce54fb61362416
*/
#noEnv
#persistent
@jasondavis
jasondavis / HtmlBox.ahk
Created January 25, 2018 21:04 — forked from G33kDude/HtmlBox.ahk
A message box style dialogue that is powered by html.
HtmlBox(HTML, Title="HtmlBox", Body=True, Full=False, URL=False, width=300, height=200)
{ ; Creates a MsgBox style GUI that has embedded HTML
global MsgBoxOK, MsgBoxActiveX, MsgBoxFull=Full
; Set up the GUI
Gui, +HwndDefault
Gui, MsgBox:New, +HwndMsgBox +Resize +MinSize +LabelMsgBox
if Full
Gui, Margin, 0, 0
else
Array_Gui(Array, Parent="") {
if !Parent
{
Gui, +HwndDefault
Gui, New, +HwndGuiArray +LabelGuiArray +Resize
Gui, Margin, 5, 5
Gui, Add, TreeView, w300 h200
Item := TV_Add("Array", 0, "+Expand")
Array_Gui(Array, Item)
@jasondavis
jasondavis / Menu.ahk
Created January 18, 2018 01:31 — forked from cocobelgica/Menu.ahk
Class: Menu (AutoHotkey_L)
/*;=======================================================================================
class: Menu
;=======================================================================================
*/
class Menu
{
static MenuList := [], MenuCount := 0, RetVal := ""
__New(MenuName) { ; Creates a new menu
@jasondavis
jasondavis / Menu Creator.ahk
Created January 18, 2018 01:24 — forked from cocobelgica/Menu Creator.ahk
Menu Creator (AutoHotkey_L)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
CreateMenu(LVMenu, PMenu), CreateHotkey("PGUP", "PGDN")
, qmenu := new MenuProp()
, item := new ItemProp()
, qmenu.Create(), qmenu.Show()
return
/* 函数: RegExMatchAll
* 正则匹配所有结果,返回数组。
* 用法:
* RegExMatchAll(Haystack, NeedleRegEx, SubPat="")
* 参数:
* Haystack - 被搜索的字符
* NeedleRegEx - 正则表达式
* SubPat - (可选) 获取子匹配N,而非整个匹配
* 返回:
* 成功返回数组,失败返回空。
@jasondavis
jasondavis / create-new-file.ahk
Created January 12, 2018 18:49 — forked from diastremskii/create-new-file.ahk
AutoHotKey: Create a new file with Alt+N keyboard shortcut in Windows Explorer
; This is part of my AutoHotKey [1] script. When you are in Windows Explorer it
; allows you to press Alt+N and type a filename, and that file is created
; in the current directory and opened in the appropriate editor (usually
; [gVim](http://www.vim.org/) in my case, but it will use whatever program is
; associated with the file in Windows Explorer).
; This is much easier than the alternative that I have been using until now:
; Right click > New > Text file, delete default filename and extension (which
; isn't highlighted in Windows 7), type the filename, press enter twice.
; (Particularly for creating dot files like ".htaccess".)
; KeypressOSD.ahk
;--------------------------------------------------------------------------------------------------------------------------
; ChangeLog : v2.22 (2017-02-25) - Now pressing same combination keys continuously more than 2 times,
; for example press Ctrl+V 3 times, will displayed as "Ctrl + v (3)"
; v2.21 (2017-02-24) - Fixed LWin/RWin not poping up start menu
; v2.20 (2017-02-24) - Added displaying continuous-pressed combination keys.
; e.g.: With CTRL key held down, pressing K and U continuously will shown as "Ctrl + k, u"
; v2.10 (2017-01-22) - Added ShowStickyModKeyCount option
; v2.09 (2017-01-22) - Added ShowModifierKeyCount option
; v2.08 (2017-01-19) - Fixed a bug
@jasondavis
jasondavis / AutoHotKey.ahk
Created January 11, 2018 16:32 — forked from srt4rulez/AutoHotKey.ahk
Autohotkey
;-------------------------------------------------------------------------------
; Jake's AutoHotKey.ahk
;
; For Reference:
;
; Hotkey Modifiers
; # - Windows key
; ! - Alt
; ^ - Control
; + - Shift
name description version
change case change the case of selected text
dynaclip basic web clipper for dynalist.io
file properties open properties for the selected file 1.1
google time range 🔎 switch between the various time ranges (hour, day, week, month, year)
goto open folder 📂 show a list of open folders when youre at a "save as" or "open" dialog 1.3
lightshot+ various improvements for the lightshot screenshot app 0.4.1
[linker](h