Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Context menu in specific window
#3
The same without FuncOf.

Code:
Copy      Help
    [Triggers]
    void Example_mouse_trigger_with_FilterOf_and_menu() {
        wnd childWindow = default; //we use this variable to pass the child window handle to the trigger action
        Triggers.Of.Window(cn: "Notepad*", also: o => { childWindow = wnd.fromMouse(WXYFlags.NeedControl); return childWindow.ClassNameIs("Scintilla"); });
        Triggers.Mouse[TMClick.Right, flags: TMFlags.ButtonModUp] = o => { script.run(@"Example_mouse_trigger_with_FilterOf_and_menu.cs", $"{childWindow.Handle}"); };
        Triggers.Of.AllWindows();
    }


Messages In This Thread
Context menu in specific window - by Davider - 03-14-2024, 11:01 PM
RE: Context menu in specific window - by Gintaras - 03-16-2024, 06:50 AM
RE: Context menu in specific window - by Gintaras - 03-16-2024, 07:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)