Skip to content

Instantly share code, notes, and snippets.

View maestrith's full-sized avatar

Chad Wilson maestrith

View GitHub Profile
@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 / 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 / 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:
#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")
#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%"
@maestrith
maestrith / tab hotkey.ahk
Created August 3, 2013 01:19
Posted using AHK Studio
tab::
msgbox Ok
return
@maestrith
maestrith / ie.ahk
Created August 6, 2013 04:28
Posted using AHK Studio
Pwb:=ComObjCreate("InternetExplorer.Application")
url:="http://www.google.com"
pwb.navigate(url)
sleep,1000
For Pwb in ComObjCreate("Shell.Application").Windows{
if InStr(pwb.locationurl,url){
pwb.visible:=1
WinMaximize,% "ahk_id" pwb.hwnd
}
}
@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 / 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
@maestrith
maestrith / directory.ahk
Created August 30, 2013 03:36
Posted using AHK Studio
#SingleInstance,Force
Gui,Add,TreeView,w300 h500 AltSubmit gdropdir
Gui,Add,ListView,w600 h500 x+10 AltSubmit gfileclick,Filename|Size
dir:=[]
DriveGet,Letters,List
Loop,Parse,Letters
{
Drive:=A_LoopField ":"
DriveGet,Label,Label,%Drive%
If !(FileExist(Drive))