Scripting ways to interact when selected files?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Skettalee
Posts: 75
Joined: 06 May 2019 20:27

Scripting ways to interact when selected files?

Post by Skettalee »

Like when you open Task Manager and in the details you can right click a process running and click Search Online to quickly get to somewhere credible about what that file is, as well as seen on other programs mostsly Microsoft ones, SysInternals. Is there a way we could maybe right a script or button or some function that lets use possibly put it a website, search engine or something like maybe even a way to quickly with possibly one click have it load a browser and maybe go to chat gpt and ask the question "Tell me everything you know about _____HIS FILE_____ and what it is necessary for" or whatever someone else might want to add to a prompt to quickly search even if its just to get the selected files name and search that name to get a list of things to help you find out more? Maybe there is something in the OpenAi APi where we could accomplish something that way. Just wondering if that is possible and how I would accomplish it? If not, is it a feature possibly to come in a future version? Have a happy new year everyone!

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: Scripting ways to interact when selected files?

Post by highend »

Open a simple google search?

Code: Select all

    $url = "https://www.google.com/search?q=" . <curname>;
    open "$url";
AI: If you know an AI that you can feed with a simple url do the same above, if not, you'd need to write a wrapper (in a different language than xys!) that is able to communicate with an AI via an api-key...
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Skettalee
Posts: 75
Joined: 06 May 2019 20:27

Re: Scripting ways to interact when selected files?

Post by Skettalee »

thank you so much for the reply. So I made this on a button after I go your reply :
$url = "https://chat.openai.com/?prompt=Tell+me ... can+about+" . <curname>;
open "$url";

I will continue to work at making a better version probably through api key so I can make something that doesn't even take you out of being inside XYPlorer to get the information about a selected file, like a popup or something. but this is a great start for sure!

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: Scripting ways to interact when selected files?

Post by highend »

With my wrapper (made for ChatGPT) it can look like this (I've chosen to ask a question from XY instead of sending the current file to it)...
Animation.gif
Animation.gif (202.97 KiB) Viewed 238 times
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Skettalee
Posts: 75
Joined: 06 May 2019 20:27

Re: Scripting ways to interact when selected files?

Post by Skettalee »

Oh cool, how did you make that? or where could i get your wrapper? Not sure what a wrapper is though

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: Scripting ways to interact when selected files?

Post by highend »

Link and script removed, write it yourself if you need it
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Skettalee
Posts: 75
Joined: 06 May 2019 20:27

Re: Scripting ways to interact when selected files?

Post by Skettalee »

Why did you add a link to a file that gets flagged by anti virus? and says its ChatGPT, but chat gpt is a website. That confuses me

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: Scripting ways to interact when selected files?

Post by highend »

And you think that I care about 4/72 scanning engines that falsely detect the .exe as a virus?
You are confused about how I name a program? Rename it to "This wrapper tool will contact the ChatGPT api and delivers back a result.exe"
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Skettalee
Posts: 75
Joined: 06 May 2019 20:27

Re: Scripting ways to interact when selected files?

Post by Skettalee »

ok, yeah i wasn't able to actually get cause winrar gave me an error but redownloaded. I didn't know because you just said proof of concept and i didn't know if you meant the script as a whole or the exe file, that something you made? If you dont mind me asking more, what language you wrote it in? I used to code when i was a kid/teen to my early 20's in GWBasic, then QBasic, and Visual Basic and later HTML, css and some php but now that i've been getting into stable diffusion I am interested in probably doing some coding again just to learn some new stuff and try to make some things to use, do you suggest a certain language for someone to learn maybe to do something similar like your exe, i really actually havent ran it yet so i dont really know what it does but just an idea from you animated gif.

Post Reply