Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Triggers for a specified window often fail
#1
Hi,

I assigned a middle mouse button trigger to Macro [Desk_Dia], which only takes effect when the desktop area  the middle mouse is pressed

However, when I have used the middle mouse button in other programs [For example in Google Chrome],

when I back to the desktop and press the middle mouse button, the trigger fails, I need to open the QM window so that the trigger takes effect again

Thanks for any advice and help
david

Function Middle_Click_FF
Trigger #M //Middle_Click_FF     Help - how to add the trigger to the macro
Code:
Copy      Help
;/

function# iid FILTER&f

str Win_1="Program Manager" ;;When the middle key is pressed on the desktop
str Win_2="" ;;
str Win_3="" ;;
str Win_4="" ;;

sel wintest(f.hwnd F"{Win_1}[]{Win_2}[]{Win_3}[]{Win_4}" "" "" 16)
,case 1 ret "Desk_Dia" ;;Win_1
,case 2 ret "" ;;Win_2
,case 3 ret "" ;;Win_3
,case 4 ret "" ;;Win_4

ret -2


Macro Desk_Dia
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" ""

if(!ShowDialog(dd 0 0)) ret


Messages In This Thread
Triggers for a specified window often fail - by Davider - 08-05-2022, 07:16 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)