-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.ahk
31 lines (24 loc) · 834 Bytes
/
start.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
#include Desktop\GatherWindows.ahk
#include Desktop\TaskbarMove.ahk
if (!DllCall("User32\OpenInputDesktop","int",0*0,"int",0*0,"int",0x0001L*1))
{
MsgBox Desktop is locked. Demo will not be started.
ExitApp
}
SetWorkingDir, %A_ScriptDir%\Projectors
RunWait, start_projectors.ahk
RunWait, enable_projectors_display.ahk
; TODO: move desktop icons over to the secondary display from the projector (primary) display
Sleep 200
GatherWindows(2)
TaskbarMove("Bottom", 2)
SetWorkingDir, %A_ScriptDir%\SoftDesktopLock
Run, UpdateDesktopCover.ahk
SetWorkingDir, C:\Program Files\Scalable Display2\release\
RunWait, WarpDesktop.bat
SetWorkingDir, %A_ScriptDir%\Demos
RunWait, Cronographer.ahk
SetWorkingDir, %A_ScriptDir%\Desktop
RunWait, MoveMouseOffProjector.ahk
; For some reason, the script is not exiting as expected
ExitApp