使用管理员权限运行AutoHotkey的Script
来源:互联网 发布:f1ash动画制作软件 编辑:程序博客网 时间:2024/06/05 17:50
在Script的最前面加上这些语句:
Loop, %0% ; For each parameter:
{
param := %A_Index% ; Fetch the contents of the variable whose name is contained in A_Index.
params .= A_Space . param
}
ShellExecute := A_IsUnicode ? "shell32\ShellExecute":"shell32\ShellExecuteA"
if not A_IsAdmin
{
If A_IsCompiled
DllCall(ShellExecute, uint, 0, str, "RunAs", str, A_ScriptFullPath, str, params , str, A_WorkingDir, int, 1)
Else
DllCall(ShellExecute, uint, 0, str, "RunAs", str, A_AhkPath, str, """" . A_ScriptFullPath . """" . A_Space . params, str, A_WorkingDir, int, 1)
ExitApp
}
- 使用管理员权限运行AutoHotkey的Script
- AutoHotkey运行程序的命令
- AutoHotKey神器的使用
- windows7使用管理员权限“运行”cmd
- AutoHotKey判断所运行的系统
- win7下怎么使用管理员权限运行命令
- AutoHotKey的那些事儿:(七)、AutoHotkey程序在win8下不能运行的解决办法
- 管理员权限运行批处理的几种方法
- 编写的程序以管理员权限运行
- 使用Autohotkey结束flash文件的方法
- GoldenDict和AutoHotKey的安装和使用
- 编译完成的工程在WIN7或者VISTA下自动使用管理员权限运行
- 解决“要运行Visual Studio 2005 sp1,建议使用管理员权限”的问题
- 解决“要运行Visual Studio 2005 sp1,建议使用管理员权限”的问题
- 解决“要运行Visual Studio 2005 sp1,建议使用管理员权限”的问题
- 解决“要运行Visual Studio 2005 sp1,建议使用管理员权限”的问题
- USER权限账户如何使用那些需要管理员权限才能运行的软件
- script 的运行方式差异 (source, sh script, ./script)
- 将dll添加到assembly(全局程序集缓存)
- jstring 和 char* 转换
- 根据tablename取得对应的所有数据
- 统计ip的发送频率和该ip发送的有效消息(去除相似消息)的数目
- Android 实时获取麦克风输入音量的代码
- 使用管理员权限运行AutoHotkey的Script
- mysql 导入导出数据说明
- insertion sort
- 函数传参(指针)问题
- struts2文件下载 注意中文问题
- 2013-6-8日记
- JavaScript:作为方法的函数
- 很蛋碎,都不知道在干什么。。。快疯了。。。。
- mysql 创建用户 授予权限