You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scite4AutoHotkey gives me an "internal error. do you want to continue running without debug?" and immediately closes my debug output window so I can't even see what the problem might be.
clipboard threaded.ahk
#SingleInstance, FORCE
Gui, Add, Text,, Downloading From Youtube
Gui, +LabelMainGUI
global workers := []
Percent1 := 0
Percent2 := 0
Percent3 := 0
Percent4 := 0
Percent5 := 0
Percent6 := 0
Percent7 := 0
Percent8 := 0
Percent9 := 0
Percent10 := 0
Loop, 10
{
Gui, Add, Progress, w300 h20 cBlue vPercent%A_Index%
GuiControl,, Percent%A_Index%, 0
GuiControl, Hide, Percent%A_Index%
}
Gui, Show
OnClipboardChange("ClipChanged")
Loop
{
Sleep, 1000
toremove := []
for i,w in workers
{
percent := w.percent
OutputDebug %percent%
if w.done
{
toremove.Push(i)
if i < 11
{
GuiControl,, Percent%i%, 0
GuiControl, Hide, Percent%i%
}
}
else if i < 11 && percent > 0
{
if Percent%i% = 0
{
GuiControl, Show, Percent%i%
}
GuiControl,, Percent%i%, %percent%
}
}
Sort toremove, N R U
for i,v in toremove
{
OutputDebug removing
OutputDebug toremove[i]
workers.RemoveAt(toremove[i])
}
}
return
ClipChanged(Type){
FoundPos := InStr(clipboard, "https://www.youtube.com/watch" , CaseSensitive = true)
url := clipboard
OutputDebug %url%
if FoundPos
{
;Create worker thread
Thread := ThreadObj("#include" " ytdownload.ahk", url)
workers.Push(Thread)
}
}
return
GuiClose:
ExitApp
return
I am trying to get Autohotkey_h v2 to work because I wanted to use multithreading
https://hotkeyit.github.io/v2/
Scite4AutoHotkey gives me an "internal error. do you want to continue running without debug?" and immediately closes my debug output window so I can't even see what the problem might be.
The text was updated successfully, but these errors were encountered: