Elevated Program Shortcut without UAC Prompt - Create

Page 41 of 51 FirstFirst ... 313940414243 ... LastLast

  1. Posts : 260
    Windows 7 Ultimate 64bit
       #400

    You've checked (taskmanager) that utorrent isn't still running?

    I've seen this message a lot, when I forget to set the "close utorrent" option (default action on close window is minimise to tray)
      My Computer


  2. Posts : 2
    Windows 8.1 Pro x64 with Media Center
       #401

    jonnyhotchkiss said:
    You've checked (taskmanager) that utorrent isn't still running?

    I've seen this message a lot, when I forget to set the "close utorrent" option (default action on close window is minimise to tray)
    uTorrent is running because I have started it before, when I added a new torrent a few hours back. But when I try to add another torrent, I get this error.
      My Computer


  3. Posts : 3
    Win 7 x64 and Win 8.1 update x64
       #402

    AutoHotkey Arguments


    How can I pass an argument into this....
    I use alot of AutoHotKey scripts, and have elevated my AutoHotKey.exe file, but when I drop a script onto the elevated shortcut, nothing happens. I need to be able to run all my scripts this way if possible. I'd rather not have to elevate each and every script I create and test.

    Any suggestions on passing arguments such as the script to run, through tasksched to my elevated AutoHotKey.exe?

    The scripts run if I drop them on the normal Autohotkey shortcut, although with the UAC interupting, I would like to be able to do this without the UAC interupting.

    Thanks for any assistance you can provide.
      My Computer


  4. Posts : 72,050
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #403

    Hello jsmain, and welcome to Seven Forums.

    You might be able to use this method below instead for what you want using the built-in Administrator's rights to not get the UAC prompt.

    You could skip steps 9-16 if you like. Those steps were just designed to prevent a standard user from being able to change the target of the shortcut and run whatever they wanted with the built-in Administrator's rights.

    Elevated Program Shortcut - Create for Standard User

    Hope this helps, :)
    Shawn
      My Computer


  5. Posts : 3
    Win 7 x64 and Win 8.1 update x64
       #404

    Thanks Brink!

    I am uncertain however how that solution would be any better.

    This solution works, but needs to be able to accept arguments.

    My case is this....
    I use an xkeys controller for example, and assign my scripts to each key. Currently, each key launches a script that gets run as admin, and throws a UAC prompt to accept the action. That is unacceptable. If I use the process provided in this thread, I can elevate the scripts to run without the UAC which is acceptable, but I need to do this with maybe hundreds of scripts, of which again, is unacceptable.

    I have elevated Autohotkey.exe itself which is necessary to run the raw scripts, but then I need a way for it to accept the script as an argument, so any script run will be done so using the elevated Autohotkey.exe shortcut.

    Is that possible?
      My Computer


  6. Posts : 72,050
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #405

    I'm sure it may be possible, but I just don't know how either.
      My Computer


  7. Posts : 3
    Win 7 x64 and Win 8.1 update x64
       #406

    Bugger!

    Thanks anyway.

    Perhaps someone else?
    I'm looking into it as well, so if I do find an answer, I'll be sure to report back.
      My Computer


  8. Posts : 26
    win 7 Home Premium
       #407

    Use in a Context Menu


    Hi Brink ...

    First, thanks for the great tutorial.

    I just purchased a new PC with Win 7 Home Premium and found the UAC process a bit tedious for programs I run frequently, for example, Search Everything. I followed your tutorial and it's working fine.

    However, more often than not, I want to run it from a context menu. Way back in post #'s 10 and 11, I *think* Lebon14 also wanted to do this and you responded with a registry add like this:

    [HKEY_CLASSES_ROOT\*\shell\Every Search]
    [HKEY_CLASSES_ROOT\*\shell\Every Search\command]
    @=”\”C:\\Users\\Ed\\Desktop\\Every Search.lnk\” \”%1\”"

    but obviously with the program (Notepad++) he was concerned with.

    My question - if I stuck those three lines in a text editor such as Notepad and changed the file extension to .reg, is that sufficient to correctly update the registry?

    Thanks for your help
    EdP
      My Computer


  9. Posts : 72,050
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #408

    Hello Ed,

    I'm not sure how it will work or not with that program, but you could create the .reg file with this below. You just needed to add the top line for registry files in addition to changing the file extension to .reg. :)

    Code:
    Windows Registry Editor Version 5.00
     
    [HKEY_CLASSES_ROOT\*\shell\Every Search]
    [HKEY_CLASSES_ROOT\*\shell\Every Search\command]
    @=”\”C:\\Users\\Ed\\Desktop\\Every Search.lnk\” \”%1\”"
      My Computer


  10. Posts : 260
    Windows 7 Ultimate 64bit
       #409

    Hi, I just mounted the Software hive (TimSW) from a build with Everything installed on... In "HKEY_LOCAL_MACHINE\TimSW\Classes\Folder\shell\Search Everything..." (ie normally HKLM\Software\Classes\folder\shell\Everything) the command key has a string (no name) with

    "C:\Program Files\Everything\Everything.exe" -path "%1"

    This might work with portable also.. Personally, I'd go for the folder context over desktop context, where the -path parameter is used to refine the "search domain"...

    Hope this helps...

    One more thing: if you right click on your .lnk file and select open file location, you should get the location of the (everything.exe) target of your shortcut. It's good practice to reference this directly in the reg (what if your shortcut's deleted, or moved?) alt+d and ctrl+c will get you your address (from address bar,to clipboard :)
      My Computer


 
Page 41 of 51 FirstFirst ... 313940414243 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:22.
Find Us