How to search with multiple queries highlighted?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
reverberation
Posts: 314
Joined: 13 Dec 2015, 20:48

How to search with multiple queries highlighted?

07 Apr 2018, 23:47

My code currently allows me to use highlighted text and send straight as a query in Google Images. However, the limitation is that, for example, not being able to highlight multiple cells (with text) in excel, use the same hotkey, and have it launch multiple Chrome tabs and query Google Images. I'm totally clueless as to what can be changed. Will any guru be able to help please?

Code here:

Code: Select all

	; Ctrl Win Q to run Google Images 
$^#Q::
    Send, ^c
    Sleep 50
    parameter = C:\Program Files (x86)\Google\Chrome\Application\chrome.exe https://www.google.com.sg/search?q="%clipboard%"&hl=en&gbv=2&tbs=isz:lt,islt:vga&tbm=isch&source=lnt&sa=X&ei=9UXAT-HlDofxrQfcg_XiCQ&ved=0CCwQpwUoBA&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&biw=1366&bih=677&cad=h
    Run %parameter%
    Return
example of MULTIPLE highlighted cells within Excel:

Image
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: How to search with multiple queries highlighted?

08 Apr 2018, 04:15

use Excel COM to get the value of each cell and iterate over them
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: How to search with multiple queries highlighted?

08 Apr 2018, 05:13

The easiest way (for a noob) - parse that file as plain CSV content (Excel allows to save your file in that format as well). Btw, I'm not sure if all of those parameters are necessarry to create a valid search URL?!
reverberation
Posts: 314
Joined: 13 Dec 2015, 20:48

Re: How to search with multiple queries highlighted?

14 Apr 2018, 08:23

Hi guys..

please pardon me but i'm a complete noob at this stage. more help will be truly appreciated!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], GEOVAN, OrangeCat and 293 guests