Double Click Empty Space on Taskbar Error

Get help with using AutoHotkey and its commands and hotkeys
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

oAcc := Acc_ObjectFromPoint(vChildId)
vAccRoleNum := oAcc.accRole(vChildId)
vAccName := oAcc.accName(vChildId)
oAcc := ""
Try {
	If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500)
		if (vAccRoleNum = 0x16) && (vAccName = "Running applications")
		send #m
Based on these posts :
- https /r/AutoHotkey/comments/5cena8/request_doubleclick_empty_space_on_taskbar_to/

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

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.
error.jpg (29.87 KiB) Viewed 106 times

Return to “Ask For Help”

Who is online

Users browsing this forum: Albireo, Google [Bot], JaydeNpie, JoeWinograd, natester002, shadowsong and 199 guests