Code: Select all
#l:: ; lower-case L
; this line is contained in my resident script, "atb.ahk"
Run C:\Users\mik\Documents\AutoHotKey\MakeLabel\MakeLabel.ahk
Return
Code: Select all
; Script : MakeLabel
#Singleinstance force
#noenv
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode,2
CoordMode, ToolTip, Screen
CoordMode, Mouse, Screen
IfWinNotExist, ahk_exe audacity.exe
{ msgbox, Audacity not active
return
}
InputBox, Label_1,,Enter first label of book
num := "" ; clear num
c =
Loop
{ c := SubStr(Label_1, A_index , 1)
if c is number
num .= c
else if(c = "")
break
else
Title .= c
}
msgbox %A_index% : %Label_1% : %num% : %Title% : %c%
When I press Win + l, it starts running my script "MakeLabel.ahk" and I see the InputBox flash on the screen, then it locks Windows-7. It's not a big deal - it goes to the log-on screen, but as there are no other users, all I have to do is press Enter, and it comes back to my script.
Why is this happening, and how can I stop it?
Thanks Folks.