Could not close the previous instance of this script. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Could not close the previous instance of this script.  Topic is solved

15 Feb 2018, 06:36

"temp.ahk: Could not close the previous instance of this script. Keep waiting?"

temp.ahk is a dynamically created and saved ahk-script.

ugly workaround. but seems working:

Code: Select all

DetectHiddenWindows,On
SetTitleMatchMode,1
winTC := sayHelloFunctionInc . " ahk_class AutoHotkey"
if(winexist(winTC)){
	WinClose,% winTC
	WinWaitClose,% winTC,,1
}
if(winexist(winTC)){
	ToolTip, '%winTC%' already exist. cant RUN it `n (line:%A_LineNumber%) `n 
	return false
}
....
run, sayHelloFunctionInc 

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: roysubs and 286 guests