Skip to content

Instantly share code, notes, and snippets.

View maestrith's full-sized avatar

Chad Wilson maestrith

View GitHub Profile
@maestrith
maestrith / SocketEventProc.ahk
Created February 26, 2014 23:49
Posted using AHK Studio
SocketEventProc(info*){
Critical
static count:=0
global id
static a:=[]
if info.1.1
return a
if (info.3=socket.__eventmsg){
if (info.2&0xFFFF=1){
onrecv(a[info.1])
@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
@maestrith
maestrith / irc
Created December 11, 2013 15:24
Posted with AHK Studio
0.001.44
Added:
-Edit server list popup when you right click on the background of the server list
0.001.43
Re-Added: (reported by joedf)
-Themes
0.001.42
Fixed:
-Right Click Stuff
0.001.41
@maestrith
maestrith / server.ahk
Created December 1, 2013 15:11
Posted using AHK Studio
#Persistent
OnExit, Cleanup
Tester := new SocketTCP
myTcp := new SocketTCP()
myTcp.onAccept := Func("OnTCPAccept")
return
OnTCPAccept(){
@maestrith
maestrith / irc.ahk
Created November 13, 2013 00:37
Posted using AHK Studio
#SingleInstance,Force
v:=[],settings:=new xml("settings"),v.socklist:=[]
if !FileExist("scilexer.dll"){
SplashTextOn,200,50,Downloading required files,Please wait...
urldownloadtofile,http://www.maestrith.com/files/AHKStudio/SciLexer.dll,SciLexer.dll
SplashTextOff
}
il:=IL_Create(2)
for a,b in [4,87]
IL_Add(il,"shell32.dll",b)
@maestrith
maestrith / Socket.ahk
Created November 11, 2013 10:25
Posted using AHK Studio
#SingleInstance,Force
sock:=new socket()
sock.connect("irc.freenode.net",6667)
size:=0
Gui,Add,ListView,w800 h800,Text
Gui,show
LV_Add("",sock.sendtext("NICK maestrith1"))
LV_Add("",sock.sendtext("USER maestrith1 0 * :maestrith1"))
while,A_Index<4{
LV_Add("",sock.recvtext())
@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))
@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 / 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 / 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
}
}