This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test := GetTimeZones() | |
ExitApp | |
GetTimeZones() { | |
; Taken from: http://www.autohotkey.com/community/viewtopic.php?t=73951 | |
OutputDebug % "**** GetTimeZones START ****" | |
; Get the "Time Zones" entries from registry | |
RegRoot := "HKEY_LOCAL_MACHINE" | |
RegKey := "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;############################ | |
; description: Generate JUnit-XML output for Yunit-Framework (https://github.com/Uberi/Yunit) | |
; | |
; author: hoppfrosch | |
; date: 20121207 | |
;############################ | |
class xml{ | |
; Credits:By Maestrith (http://www.autohotkey.com/board/topic/85010-xml-parser/?hl=msxml) | |
__New(param*){ | |
ref:=param.1,root:=param.2,file:=param.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;shows what version of ahk the user is running | |
; i think sinkfaze might have come up with this originally (dist. by camerb) | |
info := "AutoHotkey:`t" "AutoHotkey" ((A_AhkVersion < 1.1) ? " Classic ": ((A_IsDll ? "_H (DLL)":"_L"))) | |
. "`nAHK Version:`t" A_AhkVersion | |
. "`nUnicode:`t`t" (A_IsUnicode ? "Yes " ((A_PtrSize=8) ? "(64-bit)" : "(32-bit)") : "No") | |
. "`nOperating System:`t" (!A_OSVersion ? A_OSType : A_OSVersion) " " (A_Is64bitOS ? "(64-bit)" : "(32-bit)") | |
. "`nAdmin Rights:`t" (A_IsAdmin ? "Yes" : "No") | |
MsgBox, 68, Support Information, %info%`n`nWould you like to copy this information to the Clipboard? | |
IfMsgBox Yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Description: Get Process properties via AHK using WMI | |
; | |
; Author: hoppfrosch - 20140206 | |
; | |
; Credits | |
; * http://technet.microsoft.com/en-us/library/ee176712.aspx (by MSDN) | |
; * http://msdn.microsoft.com/en-us/library/windows/desktop/aa394372%28v=vs.85%29.aspx | |
; * http://http://www.autohotkey.com/board/topic/90385-drei-kleine-fragen (by Rohwedder) | |
; * http://www.autohotkey.com/board/topic/72817-how-to-obtain-%E2%80%9Cuser-name%E2%80%9D-from-running-processes/#entry465606 (by Lexikos) | |
PropertyList := "Caption,CommandLine,CreationClassName,CreationDate,CSCreationClassName,CSName,Description,ExecutablePath," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Calculating date of christian easter and subsequent christian feasts | |
; | |
; The following feasts are calculated: | |
; * Christian Easter | |
; * Ash Wednesday | |
; * Ascension Day | |
; * Whitsunday | |
; * Corpus Christi | |
; | |
; Author: hoppfrosch @ [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Conversion of a version given as string to a numerical version (to allow version comparison) | |
; | |
; see: http://www.autohotkey.com/board/topic/62037-conversion-of-version-string-to-number/ | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
; Example: Does current AHK-Version meet my requirements? | |
; Which version of Autohotkey is required? | |
versionAHKReq := "1.0.90.0" | |
vAHKCurr := NumifyVersion(A_AhkVersion) | |
vAHKReq := NumifyVersion(versionAHKReq) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Named parameters for functions | |
; | |
; Credits: named parameters by lexikos (http://www.autohotkey.com/board/topic/62504-variadic-functions) | |
; Note the Brackets around the parameters and the trailing star {...}*!!! (Brackets: JSON - Star: Variadic ...) | |
Test({WinTitle: "ahk_class Notepad", ExcludeTitle: "Untitled", Cmd: "PID"}*) | |
Test2({WinTitle: "ahk_class Notepad", ExcludeTitle: "Untitled2", Cmd: "PID2"}*) | |
; Simple Variadic: All parameters are accesible through prms-Array | |
Test(prms*) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Title: JSON | |
JSON Utilities for AutoHotkey | |
Details: | |
Internally the ActiveX Control "Windows Script Control " (http://www.microsoft.com/de-de/download/details.aspx?id=1949) is used by those functions | |
Author: | |
Compilation by hoppfrosch; Original work by Wicked and tmplinshi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CallStack(deepness = 5, printLines = 1) | |
{ | |
loop % deepness | |
{ | |
lvl := -1 - deepness + A_Index | |
oEx := Exception("", lvl) | |
oExPrev := Exception("", lvl - 1) | |
FileReadLine, line, % oEx.file, % oEx.line | |
if(oEx.What = lvl) | |
continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; AHK wake-up-timer | |
; scheduler provides some of the functions of Window's Task Scheduler or the command line tool "schtasks" as an AHK-script. | |
; Unlike Windows' Scheduled Tasks this function works with accounts without passwords | |
; | |
; Author: boskoop (http://http://www.autohotkey.com/board/topic/10587-wake-up-timer-scheduler-function) | |
; CONFIGURATION | |
Year=2006 | |
Month=8 ;1-12 | |
Day=30 ;1-31 |
OlderNewer