search for text clipboard win explorer

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
eduo
Posts: 3
Joined: 19 Feb 2021, 15:01

search for text clipboard win explorer

19 Feb 2021, 15:08

Hi,

I use this command which works great:
$F8::Run, explore B:\
So Win explorer opens with location b: drive.
Now I have a text "flower" copied to the clipboard and wish to search b drive for that text with file explorer.

Suppose text is "flower" this text is copied to the clipboard before hiiting F8.
I wish to press F8 and then file explorer should open, search needs to be pasted from clipboard and I shouls see the results of that search immediately.
Is that possible? Anyone knows how to do that please?
So hit F8 and see the results of "flower" in drive B:...

Thank you...
User avatar
Smile_
Posts: 858
Joined: 03 May 2020, 00:51

Re: search for text clipboard win explorer

19 Feb 2021, 15:28

Code: Select all

$F8::
    Run, explore B:\
    Sleep, 500
    Send, ^f
    Send, ^v
Return
eduo
Posts: 3
Joined: 19 Feb 2021, 15:01

Re: search for text clipboard win explorer

21 Feb 2021, 09:38

Hello,

Thank you for helping me with this question.
I have copied the text, when I paste it in a text file it works.
When I press F8 it starts file explorer and it goes to the search box.
However it shows "" in it?
I already adjusted the waiting time to 1500 that is a bit better before it would not go to the search box...

Any idea why it will not inserrt the text in the searchbox?

Greetings
User avatar
Smile_
Posts: 858
Joined: 03 May 2020, 00:51

Re: search for text clipboard win explorer

21 Feb 2021, 12:44

Code: Select all

$F8::
    Run, explore B:\
    Sleep, 500
    Send, ^f
    Sleep, 500
    Send, ^v
Return
Try this
eduo
Posts: 3
Joined: 19 Feb 2021, 15:01

Re: search for text clipboard win explorer

23 Feb 2021, 09:25

Well it works as in start Win explorer, then go to search box, then insert the text so thats great.
It doesn't start searching though...
How to activate the start search?
The Lich Omoi
Posts: 6
Joined: 01 Dec 2021, 09:06

Re: search for text clipboard win explorer

01 Dec 2021, 09:26

send the enter key ( send, {enter} )

Sorry for the Necromancy but I am trying to put together a script that does the following and this was close to what I was looking for.

"Take the highlighted text, and copy & delete it, then search my C drive for it"

Code: Select all

^!{BS}::
{
Send, ^c
Sleep 250
Send, {BackSpace}
Run, explore C:\
Sleep, 500
Send, ^f
Sleep, 500
Send, %Clipboard%
send, {enter}
Return
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 161 guests