Skip to content

Instantly share code, notes, and snippets.

View maestrith's full-sized avatar

Chad Wilson maestrith

View GitHub Profile
@maestrith
maestrith / AHK Studio.ahk
Created July 19, 2013 15:32
Posted using AHK Studio
#SingleInstance,Force
v:=[],OnMessage(0x4E,"notify"),OnMessage(0x5,"arrange"),vversion:=new xml("version","lib\version.xml")
startup(),filecheck(),v.lastlist:=[],misc:=new xml("misc")
settings:=new xml("settings","lib\settings.xml"),keywords(),files:=new xml("files"),positions:=new xml("positions","lib\positions.xml"),access_token:=settings.ssn("//@access_token").text
idea:=new xml("idea","lib\ideas.xml")
global v,sci,settings,commands,files,positions,vversion,access_token,misc,idea
menu(),defaults(),gui(),hotkeys(),titlechange()
ControlFocus,Scintilla1,% aid()
if settings.ssn("//ideas").text{
ideas()
@maestrith
maestrith / GUI Creator.ahk
Created August 7, 2013 16:48
Posted using AHK Studio
#SingleInstance,Force
DetectHiddenWindows,On
if !FileExist("lib")
FileCreateDir,lib
v:=[],gui:=new xml("gui"),settings:=new xml("settings","lib\settings.xml")
CoordMode,ToolTip,Screen
global v,gui,settings
gui()
return
GuiEscape:
@maestrith
maestrith / hello_world
Created May 30, 2020 20:20
Hello World Examples
Nice it works
Second line
@maestrith
maestrith / hello_world.rb
Created May 30, 2020 20:18
Hello World Examples
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
@maestrith
maestrith / GUI Creator
Created August 14, 2013 14:19
Posted with AHK Studio
0.001.26
Changed:
-Moved the Quick Options to the Settings window. (Actually makes them quick!)
-Changed the Right Click Menu (rcm) to make it a bit less confusing.
Added:
-Reorder GUI: Not too well documented but it should be pretty easy to figure out.
0.001.25
Fixed: Reported by Uberi
-The popup window was staying on top of everything (Duh moment I had +alwaysontop set...)
0.001.24
#SingleInstance,Force
global settings:=new xml("settings")
if(FileExist("workspaces.ico"))
Menu,Tray,Icon,Workspaces.ico
Gui()
return
show:
WinShow,% hwnd([1])
return
capture(){
#SingleInstance,Force
Version:="0.000.01"
Branch:="master"
x:=Studio(1)
NewWin:=new GuiKeep("MyWindow1")
global SmallSettings
NewWin.Add("ListView,w200 h200 NoSortHdr,Numbers|Words,wh","Edit,x+M w200 h200 vHello,,xh"
,"Button,xm gAdd,&Add,y"
,"Button,xm gTesting,Click Me,y"
,"Button,gDelete,D&elete,y"
#SingleInstance,Off
#MaxHotkeysPerInterval,2000
#NoEnv
SetBatchLines,-1
Tick:=A_TickCount
SetWorkingDir,%A_ScriptDir%
SetControlDelay,-1
SetWinDelay,-1
DetectHiddenWindows,On
CoordMode,ToolTip,Screen
@-moz-document domain("youtube.com") {
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
body {
background: none #222222 !important;
color: #aaaaaa !important;
}
a:href, a:hover {
background-color: #222222;
}
@maestrith
maestrith / AHK Studio
Created January 4, 2014 14:40
Posted with AHK Studio
0.001.56
Fixed:
-About/Help now has a link to my online documentation.
-Cleaned up a bit.
0.001.55
Fixed:
-Using quick find with regex and a search term of . was causing issues
0.001.54
Fixed:
-Major bug with undo