Is it possible to search by images using s+?

PHOTO EMBED

Mon Dec 05 2022 00:51:51 GMT+0000 (Coordinated Universal Time)

Saved by @savabeh191

var wndHandle = sp.ForegroundWindow().HWnd;
var desktopHandle = sp.DesktopWindowListView().HWnd;
var result = 1;
var selectedFiles;
var fullPath = "";
var isDesktop = false;
var success = false;
var actionName = "Upload to Imgur"

if(wndHandle.ToInt32() == desktopHandle.ToInt32() || sp.LastFocusControl().HWnd.ToInt32() == desktopHandle.ToInt32()) {
    //Desktop
    selectedFiles = sp.GetSelectedFilesOnDesktop();
    isDesktop = true;
} else {
    //Not Desktop
    selectedFiles = sp.GetSelectedFilesInExplorer(wndHandle);
}

if(selectedFiles.Length != 0) {
    fullPath = selectedFiles[0];

    if(isDesktop) {
        fullPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + "\\" + fullPath;
    }

    result = sp.RunProgram('D:\\Program Files\\ShareX\\ShareX.exe', 
                               `"${fullPath}" -task "${actionName}"`,
                               'open', 'hidden', false, true, true);


    if(result == 0) { 
        success = true;
        sp.ShowBalloonTip("OK", "", "info", 1000);
    } 
} 

if(!success) {
    sp.ShowBalloonTip("Upload to Imgur", "Failed", "error", 1000);
}
sp.Sleep(2000);
//Wait for 1s or 2s then get the URL from the clipboard
//and use google image search engine to search the URL
content_copyCOPY

https://forum.strokesplus.net/posts/t8456-Is-it-possible-to-search-by-images-using-s