Re: CEA for a Toolbar Button set switch
Posted: 08 Apr 2024 20:33
Many users of XYplorer also use AHK. There might be some interest in this small AHK script that you could put in your AHK startup file. It simply detects a scroll accomplished over XY's toolbar. You could use it to run a script which you want to run on one particular toolbar or a different script for a second toolbar. For me I use it to place the address bar on toolbar button set #2, line 1, and the script also changes a CTB indicating which toolbar is active or current. This same CTB also switches toolbars like scrolling does. Scrolling to other toolbars only works if you don't have toolbar scrolling enabled in TB options. I can post the XY script as well if anyone wants it. The code is in AHK v1 though I'm sure someone could write the V2 equivalent.
Code: Select all
#If isMouseOver("ThunderRT6PictureBoxDC",[66,67,72,73])
~WheelUp::
~WheelDown::
SendInput ^!{Numpad5} ;runs a UDC which in turn runs a script when scrolling TB
;soundbeep
return
#If
isMouseOver(controlName, controlNums) {
MouseGetPos,,,, controlNameUnderMouse
for each, controlNum in controlNums
if (controlNameUnderMouse = controlName . controlNum)
;also works
;Loop % controlNums.Length()
; if (controlNameUnderMouse = controlName . controlNums[A_Index])
;also works
;For index, value in controlNums
; if (controlNameUnderMouse = controlName . value)
return 1
return 0
}