Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Window triggering two QM items
#3
here's my trigger. I think it may have something to do with the regex in the trigger. could that be?
if i take out the trigger for the toolbar it works fine

Toolbar
Trigger !ca"$(.*save to|Open)" "#32770"     Help - how to add the trigger to the macro
Code:
Copy      Help
;/mov -48 0 /siz 46 {0.05; GetWinXY TriggerWindow 0 0 0 _i; ret _i} /isiz 32 32 /set 1|4|128

Function Redirect_Name
Trigger !ca"Enter name of file to save to…" "#32770" /FIREFOX     Help - how to add the trigger to the macro
Code:
Copy      Help
int hwnd=val(_command)
spe 80
str a b c d
int z
0.15
;Retry


Acc aa=acc("File name:" "TEXT" win("Enter name of file to save to" "#32770" "firefox") "Edit" "" 0x1801 0x0 0x20000040)
err
,0.15
,_i+1
,if _i=10
,,end
,goto Retry
str aa_str=aa.Value

more code below
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)