Skip to content

Commit

Permalink
clipboard error fix-try
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-SF committed Nov 5, 2017
1 parent 7015495 commit 0b343aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions atom_latex_autorun.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ get_scriptfullpath_atom() {

clipboard = ; Empty the clipboard
keys_get_filedest(shortcut_ms)
ClipWait, 1
ClipWait, 3
if ErrorLevel
throw Exception("clipboard error")
scriptfullpath := Clipboard
Expand All @@ -189,19 +189,19 @@ keys_close_run_npp() {
Sendinput {enter up}
}

keys_save_texteditor(shortcut_ms) {
keys_save_texteditor(ms) {
sendinput {Lcontrol down}
sendinput {s down}
sleep shortcut_ms
sleep ms
sendinput {s up}
sendinput {lcontrol up}
}

keys_get_filedest(shortcut_ms) {
keys_get_filedest(ms) {
sendinput {Lcontrol down}
sendinput {shift down}
sendinput {c down}
sleep shortcut_ms
sleep ms
sendinput {c up}
sendinput {shift up}
sendinput {lcontrol up}
Expand Down

0 comments on commit 0b343aa

Please sign in to comment.