Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration: Always Run as Admin? #99

Closed
lintalist opened this issue Jun 2, 2018 · 3 comments
Closed

Configuration: Always Run as Admin? #99

lintalist opened this issue Jun 2, 2018 · 3 comments
Milestone

Comments

@lintalist
Copy link
Owner

lintalist commented Jun 2, 2018

Using https://autohotkey.com/docs/Variables.htm#IsAdmin and https://autohotkey.com/docs/commands/Run.htm#RunAs it would be possible to let the user always run lintalist as administrator.

  • If you start Lintalist using the shortcut (LNK) file you can set it manually:
    "Properties ➡️ Shortcut tab ➡️ Advanced ➡️ Run as administrator"

HT: https://twitter.com/lintalist/status/1002809961334886400

@JamoCA
Copy link

JamoCA commented Jun 6, 2018

I use Total Commander and usually start/restart Lintalist by clicking on the AHK file. When I do this, it's important for Total Commander to be running "as administrator" or I need to right-click and select "Run as administrator". If I don't do this and then use a program that has elevated privileges, Lintalist doesn't work at all.

AutoHotKey documentation states:

However, note that running the script as admin causes all programs launched by the script to also run as admin.

... are there any scenarios that I should be worried about? (I usually run AutoHotKey as Admin, but I've also written all of the shortcuts that I use... the same w/Lintalist snippets.)

@lintalist
Copy link
Owner Author

I don't think there is much to worry about as such. Of course Lintalist can run a script which in turn can launch a program or other script so that would also be run as Admin.

The only keystrokes Lintalist sends at the moment are:

So there isn't much "interaction" with the target program at the moment.

I'm thinking about adding a "sending keys" plugin though - see here #54 and #55

"Always Run as Admin" could also be a command line option so you can create two batch files and launch Lintalist accordingly.

@lintalist
Copy link
Owner Author

Next release will have an option in the Settings and also a command line option to start Lintalist as administrator - the "username^" will be added to GUI and tray tip+menu to indicate it started as such.

@lintalist lintalist added this to the v1.9.7 milestone Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants