Welcome Guest.   Make a donation to an author on the site November 01, 2014, 07:34:46 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Launch Everything from FARR as non-admin with UAC on but no prompt  (Read 1486 times)
Nod5
Supporting Member
**
Posts: 738



View Profile Give some DonationCredits to this forum member
« on: July 22, 2012, 12:07:52 PM »

I've long used the following alias to quickly transfer a search phrase in FARR to an Everything window.
Regular expression pattern box:
Quote
^(.*)\s\s$
Results box:
Quote
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
Quote
Run %A_ProgramFiles%\Everything\Everything.exe -search "%clipboard%"
Save as ev2.ahk
Quote
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:
Quote
^(.*)\s\s$
Results:
Quote
dolaunch copyclip $$1 ;;; C:\test\ev2.exe
(Note: change path to where you put ev.exe and ev2.exe )

Done!  smiley 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.techrepublic.c...ithout-the-uac-prompt/730
Logged
daddydave
Supporting Member
**
Posts: 818



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #1 on: July 23, 2012, 06:20:08 AM »

Thanks for sharing this. Very clever.  Thmbsup
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.025s | Server load: 0.04 ]