|
kli6891
|
 |
« on: November 15, 2009, 10:14:00 PM » |
|
In start menu search, there is a handy ctrl+shift+enter to launch the selected program with admin. rights. Is there such a shortcut in FARR?
Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
mouser
|
 |
« Reply #1 on: November 15, 2009, 10:22:46 PM » |
|
I had no idea about that shortcut, but it's a great idea to add it to farr. i will make it so that if you hold ctrl+shift when you trigger a result it will launch it with admin privileges. adding to todo list.
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #2 on: November 16, 2009, 01:08:54 AM » |
|
tip: ShellExecute using the "RunAs" verb. Not properly documented and feels hacky, but that's the UAC API for you, I guess 
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
|
mouser
|
 |
« Reply #3 on: November 20, 2009, 10:55:48 AM » |
|
Done, implemented in v 2.80.01; hold ctrl+shift when triggering an item to run as admin; for alias results you can also indicate a result should be run as admin with /runasadmin option. ps. thanks for the tip f0dder. 
|
|
|
|
|
Logged
|
|
|
|
|
Stoic Joker
|
 |
« Reply #4 on: November 20, 2009, 01:32:50 PM » |
|
tip: ShellExecute using the "RunAs" verb. Not properly documented and feels hacky, but that's the UAC API for you, I guess  As I recall, RunAs (in Shell & ShellExecute) was an option back in Win2k, it just never caught on because everybody just ran as Admin back then.
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #5 on: November 20, 2009, 05:46:54 PM » |
|
tip: ShellExecute using the "RunAs" verb. Not properly documented and feels hacky, but that's the UAC API for you, I guess  As I recall, RunAs (in Shell & ShellExecute) was an option back in Win2k, it just never caught on because everybody just ran as Admin back then. It was? Thing is, the undocumented "RunAs" UAC thing in ShellExecute doesn't take any user credentials - so imho it's extremely misnamed.
|
|
|
|
|
Logged
|
 - carpe noctem
|
|
|
|
putnum
|
 |
« Reply #6 on: April 13, 2010, 09:45:39 AM » |
|
Hi is there a way to pass the username and password to the /runsasadmin switch automatically?
|
|
|
|
|
Logged
|
|
|
|
|
mouser
|
 |
« Reply #7 on: April 13, 2010, 04:26:17 PM » |
|
there is no way currently, but it's an interesting idea.
|
|
|
|
|
Logged
|
|
|
|
|
Stoic Joker
|
 |
« Reply #8 on: April 13, 2010, 07:45:31 PM » |
|
Well... While I was beating the web bushes for a bit more elegant solution to the SetSystemTime debacle (hehe) I ran across this tutorial series that looks to be right about what you're after (Replete with Code Samples): Asking the User for Credentials
|
|
|
|
|
Logged
|
|
|
|
|
anabus
|
 |
« Reply #9 on: May 14, 2010, 11:51:05 AM » |
|
Done, implemented in v 2.80.01; hold ctrl+shift when triggering an item to run as admin; for alias results you can also indicate a result should be run as admin with /runasadmin option. ps. thanks for the tip f0dder.  This seems to work when triggering an item using Ctrl+Shift+Enter, but it doesn't seem to work for Ctrl+Shift+Numpad #. Is this not how it's implemented (and I'm just doing it wrong), or is it supposed to work?
|
|
|
|
|
Logged
|
|
|
|
|
mouser
|
 |
« Reply #10 on: May 14, 2010, 04:35:56 PM » |
|
thanks for the report -- i'll check -- sounds like i just forgot to handle that case.
|
|
|
|
|
Logged
|
|
|
|
|