Double Click Empty Space on Taskbar Error

Get help with using AutoHotkey and its commands and hotkeys
LightYears
Posts: 1
Joined: 17 Apr 2019, 12:42

Double Click Empty Space on Taskbar Error

17 Apr 2019, 13:00

Hello all,
I need a script to minimize all windows on double clicking the empty space on taskbar.
This is the script i have so far :

Code: Select all

#NoTrayIcon
~LButton::
oAcc := Acc_ObjectFromPoint(vChildId)
vAccRoleNum := oAcc.accRole(vChildId)
vAccName := oAcc.accName(vChildId)
oAcc := ""
;ROLE_SYSTEM_TOOLBAR := 0x16
Try {
	If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500)
	{
		if (vAccRoleNum = 0x16) && (vAccName = "Running applications")
		send #m
	}
}
return
Based on these posts :
- https://www.autohotkey.com/boards/viewtopic.php?p=193440&sid=a3d4ba42ae7729a50a5021b983ac1bdf#p193440
- https://www.autohotkey.com/boards/viewtopic.php?p=267571#p267571
- https old.reddit.com /r/AutoHotkey/comments/5cena8/request_doubleclick_empty_space_on_taskbar_to/

The script is working great but after some time i get this error :
Image

I am completely new to AHK and programming in general and i have no idea how to use the try/try catch to fix the error.
I would really appreciate if someone can help me.
Thank you.
Attachments
error.jpg
error.jpg (29.87 KiB) Viewed 35 times

Return to “Ask For Help”

Who is online

Users browsing this forum: Ataricx, Bing [Bot], Odlanir, swagfag, vsub and 32 guests