Skip to content

Instantly share code, notes, and snippets.

@TLMcode
TLMcode / AccLibInterace.ahk
Created March 24, 2014 00:26
halfblake's acc com interface
#Include Acc.ahk
/*
This function accepts all or part of a tab's name and returns the relevant actionable object.
You can then use accDoDefaultAction(0) to activate the tab in Firefox.
Note that using accDoDefaultAction will disrupt any previously defined tab objects.
Attempting to act on a previously defined tab after running accDoDefaultAction
will result in an AHK error. You will therefore need to define a tab, activate it,
and only after that can you establish a second tab on which to act.
@TLMcode
TLMcode / GetPlayerList()
Last active August 29, 2015 13:57
GetPlayerList() function for Ex0r in #ahk
#SingleInstance force
File := A_ScriptDir "/PlayerList.txt"
Gui, Add, Text,, Players
Gui, Add, Edit, R30 w200 +ReadOnly vPlayerList
Gui, Add, Text,, Page Amount
Gui, Add, Edit, w200 +Number vcnt
KeyArray := ["e","r","t"]
PgUp::
i++
Hotkey % Key := KeyArray[ Mod( i-1 , KeyArray.MaxIndex() )+1 ], % "Slabel_" i, on
Return
PgDn::
#MaxThreadsPerHotKey 2
$Numpad0::
Switch := !Switch
While Switch
{
Send LShift w
Sleep 20
}
Return
@TLMcode
TLMcode / gist:7869343
Created December 9, 2013 08:58
OnMessage Simple EventFunction Array Example
OnMessage(0x404,"TrayTip"), TrayTip()
Return
TrayTip(ParamArr*){
If !(ParamArr[1])
TrayTip, Tray Test, Click Me, 3
If (ParamArr[2]=1028 && ParamArr[4]=A_ScriptHwnd ) {
TrayTip, Next TrayTip, You waited too long! Click this time!, 3
Begin:
InputBox, var, Test,,, 300, 100
RegExMatch(var,"O)(\d{2,3}).*?(\d{2,3}).*?(\d{2,3}).*?(\d{2,3})", set_)
if !IsObject(set_)
{
Msgbox, 0x10, Whoops!, You must use a set of 4 digits only!`nPlease try again
Goto, Begin
}
@TLMcode
TLMcode / gist:7522378
Last active December 28, 2015 15:29
maestrith's ahk for irc
; http://files.maestrith.com/irc/irc.ahk
#SingleInstance,Force
v:=[],settings:=new xml("settings")
if !FileExist("scilexer.dll"){
SplashTextOn,200,50,Downloading required files,Please wait...
urldownloadtofile,http://www.maestrith.com/files/AHKStudio/SciLexer.dll,SciLexer.dll
SplashTextOff
}
CoordMode,ToolTip,Screen
@TLMcode
TLMcode / gist:6724077
Last active December 24, 2015 01:29
Detect Network Connection
Loop {
For Item in (ComObjGet("winmgmts:").ExecQuery("Select * from Win32_NetworkAdapter"),l:="")
l.=Item.NetEnabled
If !InStr(l,-1)
TrayTip,, Network Disconnected!
}
ESC::ExitApp ; <-- Press escape to exit.
@TLMcode
TLMcode / y,.reg.ahk
Created August 25, 2013 21:31
yahoo registration
url = https://edit.yahoo.com/registration?
CredArray := ["aosdjasd","aosdsaajasd","aosdjsaasd","SomePassword1234","6472219999",11,5,1985]
ieObj := ComObjCreate("InternetExplorer.Application"), ieObj.Visible:=1
ieObj.Navigate(url), Wait2(ieObj), FillFields(ieObj, CredArray, "male")
Return
FillFields(obj, cArr, gdr)
{
@TLMcode
TLMcode / AutoComplete_B.ahk
Created August 24, 2013 04:16
Mod'd AutoComplete
#NoEnv
#Warn All
#Warn LocalSameAsGlobal, Off
#MaxThreadsBuffer On
SetBatchLines, -1
WordListFile := A_ScriptDir . "\WordList.txt" ;path of the wordlist file