forked from baderas/autohotkey-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutorun.ahk
31 lines (30 loc) · 813 Bytes
/
Autorun.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;; This script is used to start programs (etc.) after windows has started and user has logged in
;; Author: Andreas Bader
;; Date: August, 2016
;; https://github.com/baderas/autohotkey-scripts
#Include %A_LineFile%\..\WindowPlacementFunctions.ahk
{
SetTitleMatchMode, 2
IfWinNotExist,KeePass
{
; Delete old cygwinsocket if still existing
; (KeePass + KeeAgent)
IfWinNotExist, database.kdbx - KeePass
{
FileDelete, C:\Users\%USERNAME%\.ssh\cygwinsocket
}
}
IfWinNotExist,Google Chrome
{
Run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
}
IfWinNotExist,Mozilla Thunderbird
{
Run "C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe"
}
IfWinNotExist,Skype
{
Run "C:\Program Files (x86)\Skype\Phone\Skype.exe"
}
return
}