Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handling Web controls on mouse hover
#1
I want to delete a specific entry from the ChatGPT conversation list, and this feature is included in the More menu on the right side of the entry. See Gif demo
https://i.ibb.co/3hjzZny/gpt.gif

I've tested some methods, but I haven't gotten any results
#2
Code:
Copy      Help
var specificEntry = "Specific*";

var w = wnd.find(1, "*Google Chrome", "Chrome_WidgetWin_1");
var e = w.Elm["web:LINK", specificEntry].Find();
if (e == null) return;
if (e.IsOffscreen) {
    e.ScrollTo();
    500.ms();
}


#if !true
e.MouseClick(x: ^44); //44 if DPI 100%, else edit this
keys.send("D Enter*2");
#else
e.MouseMove();
var e2 = e.Parent.Elm["BUTTONMENU"].Find(3);
e2.Invoke();
var e3 = w.Elm["web:MENUITEM", "Delete chat"].Find(3);
e3.Invoke();
var e4 = w.Elm["web:DIALOG", "**t Delete chat?"]["BUTTON", "Delete"].Find(3);
e4.Invoke();
#endif

The #if #else shows 2 ways. Try both and choose which works better.
#3
Quote:e.MouseClick(x: ^44); //44 if DPI 100%, else edit this

Thanks for your help. My DPI is 100%, but using the value 44 doesn't work. Another method works fine


Forum Jump:


Users browsing this thread: 3 Guest(s)