From f1b951fdcaec1414f78880a23ebf1f0e68fd7679 Mon Sep 17 00:00:00 2001 From: Eric Werner Date: Wed, 7 Dec 2022 01:05:04 +0100 Subject: [PATCH] Update explorer_create_on_paste.ahk --- ExplorerCreateFile/explorer_create_on_paste.ahk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ExplorerCreateFile/explorer_create_on_paste.ahk b/ExplorerCreateFile/explorer_create_on_paste.ahk index 3fc0385..4b30ea4 100644 --- a/ExplorerCreateFile/explorer_create_on_paste.ahk +++ b/ExplorerCreateFile/explorer_create_on_paste.ahk @@ -117,8 +117,16 @@ _explorer_create_from_text(current_path) { _explorer_create_finish(file_name) { - if explorer_try_select(file_name) - Return + Loop, 10 + { + if explorer_select(basename) + Return + Sleep, 400 + } + + ; TODO: Use the lib func in future + ; if explorer_try_select(file_name) + ; Return msgbox_error("Could not create file """ file_name """!", "ExplorerCreateFile: ERROR") }