diff --git a/script_helper.ahk b/script_helper.ahk index 612ee0a..96f153a 100644 --- a/script_helper.ahk +++ b/script_helper.ahk @@ -32,6 +32,7 @@ inipath := A_AppData "\script_helper\" FileCreateDir, %inipath% SetWorkingDir, %inipath% inifile := "optionsv2.ini" +FileDelete, %A_Temp%\cversion.txt fileinstall, version.txt, %A_Temp%\cversion.txt githubversiontxt := "https://raw.githubusercontent.com/Martin-SF/script_helper_by_Peter_Holz/master/version.txt" @@ -39,10 +40,6 @@ settingsread() check_updates(githubversiontxt) return -*^1:: -run, %inipath% -return - check_updates(verurl) { URLDownloadToFile, %verurl% , %A_Temp%\version.txt IniRead, dwnv , %A_Temp%\version.txt , version, version @@ -65,7 +62,11 @@ GuiClose: Hotkey, ~f5, on return -^4:: +*^1:: +run, % inipath . "\" . inifile +return + +^2:: ListVars return @@ -217,7 +218,7 @@ get_scripttype(scriptname) { open_c(programexe, programpathexe, path := "") { ;programme starparam übergeben : path - global conemu_ms + global conemu_ms, send_ms p := 0 newstarted := 0 @@ -251,7 +252,7 @@ open_c(programexe, programpathexe, path := "") { WinActivate, ahk_exe %programexe% ;TIMEOUTS WinWaitActive, ahk_exe %programexe% - sleep 10 + sleep send_ms if (newstarted = 0 and p = 1) { clearconsole() } @@ -302,6 +303,7 @@ write_std_settings(n) { global inifile std_shortcut_waittime := 100 + std_send_ms := 50 std_conemu_waittime := 5000 std_clearmethod := 1 std_conemupathexe := "C:\Program Files\ConEmu\ConEmu64.exe" @@ -317,10 +319,13 @@ write_std_settings(n) { iniwrite, %std_sumatrapathexe%, %inifile%, settings, SumatraPDF_path_exe if (n=5 or n=0) iniwrite, %std_clearmethod%, %inifile%, settings, clearing_method_in_conemu + if (n=6 or n=0) + iniwrite, %std_send_ms%, %inifile%, settings, wait_for_conemu_input_in_ms + settingsread() } settingsread() { - global conemupathexe, sumatrapathexe, shortcut_ms, conemu_ms, inifile, clearmethod + global conemupathexe, sumatrapathexe, shortcut_ms, conemu_ms, inifile, clearmethod, send_ms if !FileExist(inifile) write_std_settings(0) @@ -345,6 +350,10 @@ settingsread() { if (clearmethod = "ERROR") write_std_settings(5) + iniread, send_ms, %inifile% ,settings , wait_for_conemu_input_in_ms + if (send_ms = "ERROR") + write_std_settings(6) + } check_program_availability() { diff --git a/version.txt b/version.txt index 7f700b5..78f80b3 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ [version] -version = v1.0-beta_3.0.5.2 +version = v1.0-beta_3.0.5.3