Posts: 1,032
Threads: 246
Joined: Jul 2022
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
Posts: 12,075
Threads: 141
Joined: Dec 2002
03-05-2024, 11:33 AM
(This post was last modified: 03-05-2024, 11:37 AM by Gintaras.)
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.
Posts: 1,032
Threads: 246
Joined: Jul 2022
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