-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathupdate-icfp-submission.ahk
42 lines (42 loc) · 2.63 KB
/
update-icfp-submission.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
Run, chrome.exe https://icfp2016.hotcrp.com/paper/14/edit
WinWait, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
IfWinNotActive, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window, WinActivate, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
WinWaitActive, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
Send, {CTRLDOWN}e{CTRLUP}
Sleep, 500
Send, {BACKSPACE}javascript:document.getElementById('paperUpload').click(){ENTER}
WinWait, Open, Namespace Tree Contr
IfWinNotActive, Open, Namespace Tree Contr, WinActivate, Open, Namespace Tree Contr
WinWaitActive, Open, Namespace Tree Contr
Send, D:\Documents\GitHub\lob-paper\lob-preprint.pdf{ENTER}
WinWait, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
IfWinNotActive, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window, WinActivate, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
WinWaitActive, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
Send, {CTRLDOWN}e{CTRLUP}
Sleep, 500
Send, {BACKSPACE}javascript:((function (foo) {{} for (var i = 0; i < foo.length; i{+}{+}) if (foo[i].id.match('{^}remover')) foo[i].click(); {}})(document.getElementsByTagName('a'))){ENTER}
Send, {CTRLDOWN}f{CTRLUP}
; Sleep, 500
; Send, {TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}
Send, 0{BACKSPACE}add{SPACE}attachment{ESC}{ENTER}
WinWait, Open, Namespace Tree Contr
IfWinNotActive, Open, Namespace Tree Contr, WinActivate, Open, Namespace Tree Contr
WinWaitActive, Open, Namespace Tree Contr
Send, D:\Documents\GitHub\lob-paper\supplemental-anonymous.zip{ENTER}
WinWait, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
IfWinNotActive, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window, WinActivate, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
WinWaitActive, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
Send, {CTRLDOWN}f{CTRLUP}
; Sleep, 500
; Send, {TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}
Send, 0{BACKSPACE}add{SPACE}attachment{ENTER}{ESC}{ENTER}
WinWait, Open, Namespace Tree Contr
IfWinNotActive, Open, Namespace Tree Contr, WinActivate, Open, Namespace Tree Contr
WinWaitActive, Open, Namespace Tree Contr
Send, D:\Documents\GitHub\lob-paper\supplemental-nonymous.zip{ENTER}
WinWait, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
IfWinNotActive, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window, WinActivate, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
WinWaitActive, #14 - ICFP 2016 - Google Chrome, Chrome Legacy Window
Send, {CTRLDOWN}e{CTRLUP}
Sleep, 500
Send, {SHIFTDOWN}{TAB}{TAB}{TAB}{TAB}{SHIFTUP}