Hi Guys. I'll start by saying I know only what I have read in help, (AutoHotkey help), concerning scripting. I found a script I thought would work with AutoHotkey. It does not work as expected. I'm on Windows 10 Pro and Version 1.1.33.10 of AutoHotkey.
I was hoping the script would place highlighted text, I assume from my clipboard, into a Google search engine, then return the results from Google onscreen, (when I press the windows key plus the letter "s" as noted in the first line of the script). I had some screen shots. I do not see a place to attach them here. I'll try and explain what the script ACTUALLY does.
When pressing the windows+s keys, IF my highlighted text is on a page that is open in a web browser, or say notepad, the windows+s key will open a Google search page using my default Chrome browser. I wanted it to simply return the search results of the highlighted text. In this example, it only opens a google search page but no results. The intended use for the win+s key is NOT to be used in the above stated manor. I was just testing the script.
Here is where I need the rubber to meet the road. I use a windows based file management software called "KJ File Manager". When I double click an entry in the data base, I need to be able to highlight any editable field, press the win+s keys, and have the result returned in Google, onscreen. What is happening here is when pressing the win+s keys on any said highlighted field, all I get is some windows cortina apps etc screen.
Here is the script:
Code: Select all
#s::
MyClip := ClipboardAll
clipboard = ; empty the clipboard
Send, ^c
ClipWait
Run http://www.google.com/#hl=en&q=%clipboard%
Clipboard := MyClip
I am trying something very new to me here. I am OBVIUSLY NOT a programmer. Please be kind. Any helpful solution to my desired outcome would be appreciated. If one has a script that would work, as I have described, please feel free to share it with me and perhaps others that may need this functionality.
Thank you all, in advance, for your time and consideration. I look forward to your response(s).
Kind Regards,
crown37087