<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Process is admin]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13925&amp;type=atom" />
	<updated>2018-07-12T16:20:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13925</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127015#p127015" />
			<content type="html"><![CDATA[<p>Ну кто его знает, что за чудеса, может политика UAC изменена, но за что купил... RunAsAdmin() при включенном UAC запрос у меня не выводит.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T16:20:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127015#p127015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127014#p127014" />
			<content type="html"><![CDATA[<p>На Семёрке не пробовал. Но думаю, что было бы так же. Чудес не свете не бывает.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-07-12T16:17:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127014#p127014</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127013#p127013" />
			<content type="html"><![CDATA[<p>Значит на 7 с UAC это неестественно?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T16:00:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127013#p127013</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127012#p127012" />
			<content type="html"><![CDATA[<p>Так же. Если UAC включен, то естественно, что он отреагировал.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-07-12T15:27:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127012#p127012</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127011#p127011" />
			<content type="html"><![CDATA[<p>А вы как входили?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T15:20:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127011#p127011</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127010#p127010" />
			<content type="html"><![CDATA[<p>Нет, если как админ, но UAC включен.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T15:16:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127010#p127010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127009#p127009" />
			<content type="html"><![CDATA[<p>У меня. &quot;Не от админа&quot; — это если вы вошли в систему не как админ?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-07-12T15:10:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127009#p127009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127008#p127008" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>тут ведь тоже запрос от UAC во весь экран вылазит</p></blockquote></div><p>Где? <br />Если я запускаю скрипт не от админа, то RunAsAdmin() перезапускает его с правами админа без запроса.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T14:59:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127008#p127008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127007#p127007" />
			<content type="html"><![CDATA[<p>Тут я не компенгаген. Может, и есть. Но, кстати, тут ведь тоже запрос от UAC во весь экран вылазит. Чтобы без него, это надо через планировщик задач запускать. Но потому там и без запроса, что программно туда не влезть (по кр. мере так я читал).</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-07-12T14:43:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127007#p127007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127006#p127006" />
			<content type="html"><![CDATA[<p>Это перезапускает скрипт с правами админа. По вашему это должно работать при любых условиях, или есть какие то ещё настройки безопасности, которые могут не дать запустить скрипт с правами админа.<br /></p><div class="codebox"><pre><code>
RunAsAdmin() {
	Global 0
	IfEqual, A_IsAdmin, 1, Return 0
	Loop, %0%
		params .= A_Space . %A_Index%
	DllCall(&quot;shell32\ShellExecute&quot; (A_IsUnicode ? &quot;&quot;:&quot;A&quot;),uint,0,str,&quot;RunAs&quot;,str,(A_IsCompiled ? A_ScriptFullPath
	: A_AhkPath),str,(A_IsCompiled ? &quot;&quot;: &quot;&quot;&quot;&quot; . A_ScriptFullPath . &quot;&quot;&quot;&quot; . A_Space) params,str,A_WorkingDir,int,1)
	ExitApp
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T13:57:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127006#p127006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127005#p127005" />
			<content type="html"><![CDATA[<p>Можно ещё в манифесте указать, но это для экзешника.<br /></p><div class="codebox"><pre><code>
&lt;requestedExecutionLevel level=&quot;asInvoker&quot; uiAccess=&quot;false&quot;&gt;&lt;/requestedExecutionLevel&gt;
</code></pre></div><div class="quotebox"><blockquote><p>asInvoker: The application will run with the same permissions as the process that started it. The application can be elevated to a higher permission level by selecting Run as Administrator. </p><p>highestAvailable: The application will run with the highest permission level that it can. If the user who starts the application is a member of the Administrators group, this option is the same as requireAdministrator. If the highest available permission level is higher than the level of the opening process, the system will prompt for credentials. </p><p>requireAdministrator: The application will run with administrator permissions. The user who starts the application must be a member of the Administrators group. If the opening process is not running with administrative permissions, the system will prompt for credentials.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-07-12T13:56:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127005#p127005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127004#p127004" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p> а без него этой фишки нет?</p></blockquote></div><p>Дело в UAC, с отключенным, всегда с правами администратора, с включенным надо или в меню выбирать, или в свойства - совместимость - установить админа для ехе.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T13:44:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127004#p127004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127003#p127003" />
			<content type="html"><![CDATA[<p><span class="postimg"><img src="https://i104.fastpic.ru/big/2018/0712/72/28c8df3dc99a7bf8dd2fcc9b425f6372.png" alt="https://i104.fastpic.ru/big/2018/0712/72/28c8df3dc99a7bf8dd2fcc9b425f6372.png" /></span><br />Только тогда у меня скрипт запустится с правами администратора, хотя учётная запись у меня и админская. Это же с Семёрки ещё так было (если не с Висты, но ею я не пользовался). Может, у вас UAC отключен, а без него этой фишки нет?</p><div class="quotebox"><blockquote><p>Так и должно работать?</p></blockquote></div><p>Точно не знаю, не исследовал этот вопрос.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2018-07-12T13:14:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127003#p127003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127002#p127002" />
			<content type="html"><![CDATA[<p>А как?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T13:11:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127002#p127002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Process is admin]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127000#p127000" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Я имею в виду не учётку, а права администратора.</p></blockquote></div><p>Так если зашёл под админской учёткой, у меня же всё запускаемое должно быть с правами админа, или я что то путаю?<br /></p><div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>Т.е. пункт в контестном меню файла .ahk</p></blockquote></div><p>Это не понял про что.<br /></p><div class="quotebox"><cite>YMP пишет:</cite><blockquote><p>он показывает Admin только если сам тоже запущен с правами админа.</p></blockquote></div><p>Так и должно работать?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2018-07-12T12:43:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127000#p127000</id>
		</entry>
</feed>
