topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday October 31, 2024, 7:37 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Launch Everything from FARR as non-admin with UAC on but no prompt  (Read 6794 times)

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,169
    • View Profile
    • Donate to Member
I've long used the following alias to quickly transfer a search phrase in FARR to an Everything window.
Regular expression pattern box:
^(.*)\s\s$
Results box:
dolaunch C:\Program files\Everything\Everything.exe -search "$$1"

Very handy as you can first search with FARR and, if what you're looking for isn't found in a second or two, just tap space space.  It works when UAC is disabled in Win 7. But with UAC on you get into a dilemma:
If FARR runs as non-admin then UAC prompts you for admin privileges on every Everything launch.
If FARR runs as admin then there's no prompt but instead other problems. E.g. if FARR run as admin launches notepad++ then you can't drop a textfile from Explorer (non-admin) into the notepad++ window (admin).

Here is a workaround that lets you launch Everything with a search parameter from FARR as non-admin with UAC and still get no prompt from UAC. It requires Autohotkey and the Win 7 Task Scheduler.

1. make authotkey scripts
Save as ev.ahk
Run %A_ProgramFiles%\Everything\Everything.exe -search "%clipboard%"
Save as ev2.ahk
Run schtasks.exe /run /TN "ev",,hide
Right click each script and compile. You get ev.exe and ev2.exe .
Choose a folder to keep ev.exe and ev2.exe in. For example C:\test\

2. Create a Task
Task Scheduler > Create Task
Set Name: ev
Check this box: Run with highest privileges
Goto Actions tab > New > C:\test\ev.exe  
(Note: change path to where you put ev.exe and ev2.exe )
Click OK

3. make a new FARR alias
Alias text: whatever you want
Regular expression pattern:
^(.*)\s\s$
Results:
dolaunch copyclip $$1 ;;; C:\test\ev2.exe
(Note: change path to where you put ev.exe and ev2.exe )

Done!  :) When you now search FARR for "beatles" and add two spaces ("beatles  ") the Everything window will pop up and do a search for "beatles".

References:
- Various posts discuss related issues - search for UAC in the FARR subform
- http://www.techrepub...t-the-uac-prompt/730

daddydave

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 867
  • test
    • View Profile
    • Donate to Member
Thanks for sharing this. Very clever.  :Thmbsup:

ottenm

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 93
    • View Profile
    • Donate to Member
Any help getting Everything's results back into the FARR window?  Naively tweaking some working aliases, the following settings wait for me to finish typing, and then open Everything with (whatever I typed into FARR) placed into the search box:

regexp: ^everything (\S*)
results: everything | C:\Program files\Everything\Everything.exe -search "$$1"

From the original post to this thread in 2012 (Prince still alive, but not Michael Jackson) all I get at the end is Everything opened up with "$$1" in the search box. ;(
regexp: ^(.*)\s\s$
results: dolaunch C:\Program files\Everything\Everything.exe -search "$$1"

Any help greatly appreciated.  Long road so far, but close!

ottenm

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 93
    • View Profile
    • Donate to Member
Found it!  So sorry I missed it.

From this thread:
https://www.donationcoder.com/forum/index.php?topic=18724.msg438769#msg438769

I downloaded tinyev from here:
https://github.com/akx/farr_tinyev/releases

... and drug the FARR_TinyEv folder into FARR's plugin folder, had FARR reload the plugins, and typed "ev GOGO" and got Everything's results directly in FARR!  Super JAZZED!

Sorry for the spin!