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
#NoEnv | |
#SingleInstance, Force | |
; http://www.autohotkey.com/board/topic/45876-ahk-l-arrays/ | |
; not needed when placed in library folder | |
#Include <Array> | |
SetWorkingDir %A_ScriptDir% | |
; files to backup |
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
if 1 = mount | |
Run "%ProgramFiles%\Truecrypt\truecrypt.exe" /q /l y /v "%A_MyDocuments%\Dropbox\safe.tc" | |
else if 1 = dismount | |
Run "%ProgramFiles%\Truecrypt\truecrypt.exe" /q /dismount y | |
else | |
Msgbox,,Usage:, | |
( | |
%A_ScriptName% <option> | |
options are "mount" and "dismount" | |
) |
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
; requires WinScript Advanced Content Plugin for Total Commander: http://totalcmd.net/plugring/WinScriptAdv.html | |
#NoEnv | |
#NoTrayIcon | |
FileEncoding UTF-8 | |
SetBatchLines,-1 | |
file = %filename% | |
; find file |
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
; ArduCmd v0.2 | |
; by Daniel Jackel, dev@0x4a.net | |
; todo: | |
; file not found error | |
; return stdout.txt | |
; %0% contains number of arguments! | |
; http://www.autohotkey.com/community/viewtopic.php?t=53996 | |
; http://www.autohotkey.com/community/viewtopic.php?t=46226 |
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
; truecrypt / dropbox delayed startup script | |
#Persistent | |
#include y:\0x4a\Code\AHK\lib\notify.ahk | |
#include y:\0x4a\Code\AHK\lib\Array.ahk | |
SetTimer, checkDrive, 5000 | |
return | |
checkDrive: | |
DriveGet, status, Status, y:\ | |
if (status = "Ready") |
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
Msgbox,52,Bitte bestätigen,Soll der Papierkorb wirklich geleert werden? | |
Ifmsgbox No | |
ExitApp | |
Else | |
FileRecycleEmpty | |
If %ErrorLevel% | |
Msgbox,,,something went wrong | |
ExitApp |
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
; Dateien nach Erweiterung sortieren | |
#SingleInstance | |
#NoEnv | |
;#Include X:\Eigene Dateien\Code\AHK\lib\Array.ahk | |
SetWorkingDir %A_ScriptDir% | |
; really sort? | |
Msgbox,68,Bitte bestätigen,Soll %A_WorkingDir% wirklich sortiert werden? | |
Ifmsgbox No |
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
; Lautstärke runterregeln | |
#SingleInstance | |
#NoEnv | |
SetWorkingDir %A_ScriptDir% | |
SoundGet, current | |
SoundSet, 10 | |
Msgbox,1,,Zimmerlautstärke aktiviert! | |
Ifmsgbox Cancel |
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
FileEncoding UTF-8 | |
Loop,read,fortune.txt | |
numbers:=A_INDEX | |
random,rnd,1,%numbers% | |
FileReadLine,line,fortune.txt,%rnd% | |
MsgBox your fortune: `n%line% |
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
#SingleInstance, force | |
#NoEnv | |
SetWorkingDir %A_ScriptDir% | |
FileEncoding UTF-8 | |
; measure time | |
StartTime := A_TickCount | |
StringLength := StrLen(StartTime) * (A_IsUnicode ? 2 : 1) | |
TmpFile := A_ScriptDir "\" SubStr( A_ScriptName, 1, -3 ) . "tmp" | |
WaitClose := 1 |
OlderNewer