-
Notifications
You must be signed in to change notification settings - Fork 7
/
splice-levels-into-adobe-director.ahk
62 lines (56 loc) · 1.56 KB
/
splice-levels-into-adobe-director.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#SingleInstance force
SetTitleMatchMode 2
StringCaseSense, On
SetKeyDelay, 100
;--------------------------------------------------------
; JUNKBOT LEVEL SPLICING
;--------------------------------------------------------
^Insert::
if WinExist("junkbot - Adobe Director")
{
WinActivate
}
else {
MsgBox junkbot.dir must be open in Adobe Director
return
}
; Assumption: Cast:levels panel is open, and view is set to list, and ordered by number
MsgBox, 4,, This script assumes the Cast panel is open, showing levels cast, and the view is set to list, and ordered by number.`n`nWould you like to continue?
IfMsgBox No
{
return
}
; Go to first level slot
Send ^3^3{Home}
Loop, Files, C:\JunkbotLevels\*.txt, F
{
FileRead, LevelContent, %A_LoopFileLongPath%
Clipboard := LevelContent
WinActivate, junkbot - Adobe Director
; Go to next level slot
Send ^3^3{Down}
; Open text editor and replace level contents
Send {Enter}^a^v
; Rename cast member
;Send {F2}%A_LoopFileName%{Enter}
}
return
;--------------------------------------------------------
; EDIT THIS SCRIPT
;--------------------------------------------------------
; ^!e::
; ; C:\Program Files (x86)\Notepad++\notepad++.exe
; Run "C:\Program Files\Sublime Text 3\sublime_text.exe" "%a_scriptdir%\%a_scriptname%"
; return
;--------------------------------------------------------
; AUTO RELOAD THIS SCRIPT
;--------------------------------------------------------
~^s::
IfWinActive, %a_scriptname%
{
SplashTextOn,,,Reloading %a_scriptname%
Sleep 500
SplashTextOff
Reload
}
return