From 0b343aa01a03b902326f7e3ca39e19b86cf76a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sch=C3=B6nfeld?= Date: Sun, 5 Nov 2017 21:50:15 +0100 Subject: [PATCH] clipboard error fix-try --- atom_latex_autorun.ahk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/atom_latex_autorun.ahk b/atom_latex_autorun.ahk index 47558f6..d269f6c 100644 --- a/atom_latex_autorun.ahk +++ b/atom_latex_autorun.ahk @@ -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 @@ -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}