Skip to content

Instantly share code, notes, and snippets.

View maestrith's full-sized avatar

Chad Wilson maestrith

View GitHub Profile
@maestrith
maestrith / tab hotkey.ahk
Created August 3, 2013 01:19
Posted using AHK Studio
tab::
msgbox Ok
return
#SingleInstance,Force
SplitPath,A_AhkPath,,dir
dir.="\AutoHotkeyU32.exe"
FileSelectFile,file,,,Select the AHK you wish to run in 32 bit,*.ahk
run,%dir% "%file%"
#SingleInstance,Force
DetectHiddenWindows,On
Gui,Font,s40,Tahoma
Gui, Add, Button,gGo vgo hwndb1,Change the code below and click here
Gui,Add,Button,hwndb2 ggo,Right click for a random color
Gui,Add,Checkbox,hwndb3 gmsg,Press Enter to activate the Button
Gui,Add,Text,,Tab through and watch the colors
Gui, Add, Edit,,0x0000FF
OnMessage(0x18,"show")
OnMessage(0x101,"key")
@maestrith
maestrith / Version.txt
Last active December 20, 2015 03:29
AHK Studio Version Information File
0.001.19
Fixed:
-When adding Custom Highlight Text it will re-order the lists in the Theme window.
0.001.18
Added:
-Restore Current File. AHK Studio backs up every time you run/save a file. All of them are in the %projectdir%\backup directory. Restore Current File is an easy way to interface with it. Works well with Full Backup to clean up all of the old junk files.
Fixed:
-Colors for the treeviews were not changing properly when switching themes.
0.001.17
Added:
@maestrith
maestrith / AHK Studio.ahk
Created July 20, 2013 11:19
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 / Gist Editor.ahk
Created July 19, 2013 19:45
Posted using AHK Studio
#SingleInstance,Force
IniRead,access_token,settings.ini,access,token,0
if !access_token{
InputBox,access_token,Please enter your access token from Github,Without an access token this will not work.
if (ErrorLevel||access_token="")
ExitApp
IniWrite,%access_token%,settings.ini,access,token
}
Gui,+hwndmain
Gui,Add,Edit,w600 h500 WantTab
@maestrith
maestrith / gist.ahk
Created July 19, 2013 16:38
Posted using AHK Studio
info:="Code to post goes here" ;Change this to create the new text for the Gist
access_token:="" ;Your Github access token goes here if you want to publish it to your Gist list
filename:="mygit.txt" ;change this to whatever you want your file name to be
desc:="my description" ;This is where you would have a description for your Gist
post_gist(info,access_token,filename,desc)
return
post_gist(info,access_token,filename,desc){
info:=RegExReplace(info,"([" Chr(34) "\\])","\$1")
for a,b in {"`n":"\n","`t":"\t","`r":""}
StringReplace,info,info,%a%,%b%,All
@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 / github.ahk
Created July 19, 2013 14:36
my description
url:="https://api.github.com/gists"
info:="Code to post goes here" ;Change this to create the new text for the Gist
access_token:="" ;Your Github access token goes here if you want to publish it to your Gist list
filename:="mygit.txt" ;change this to whatever you want your file name to be
desc:="my description" ;This is where you would have a description for your Gist
info:=RegExReplace(info,"([" Chr(34) "\\])","\$1")
StringReplace,info,info,`r,,All
StringReplace,info,info,`n,\n,All
StringReplace,info,info,`t,\t,All
http:=ComObjCreate("WinHttp.WinHttpRequest.5.1")
@maestrith
maestrith / Imgur_Upload.ahk
Last active December 19, 2015 10:59
Upload an image to Imgur: Instructions Below:
#SingleInstance,force
Menu,Tray,Add
Menu,Tray,Add,Grab,grab
return
grab:
Hotkey,LButton,select,On
Hotkey,RButton,Select,On
Hotkey,^F1,getinfo,On
return
getinfo: