<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Vbs для невозможности свернуть окно]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8720&amp;type=atom" />
	<updated>2013-10-02T15:58:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8720</id>
		<entry>
			<title type="html"><![CDATA[Re: Vbs для невозможности свернуть окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75689#p75689" />
			<content type="html"><![CDATA[<p>Никакой странности: либо Вы определяете не то приложение по исполняемому файлу, либо искомое окно - дочернее, а не главное для приложения.</p><p>В любом случае, без конкретики будет беспредметный разговор.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-10-02T15:58:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75689#p75689</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Vbs для невозможности свернуть окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75687#p75687" />
			<content type="html"><![CDATA[<p>Спасибо, только странность какая то запускаю скрипт, окно не разворачивается, а в трее моргает лаунчер.</p>]]></content>
			<author>
				<name><![CDATA[CHAMPION]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30863</uri>
			</author>
			<updated>2013-10-02T13:48:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75687#p75687</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Vbs для невозможности свернуть окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75685#p75685" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Пример скрипта:</p></blockquote></div><div class="codebox"><pre><code> Set SH = CreateObject(&quot;WScript.Shell&quot;)
 Set locator = CreateObject(&quot;WbemScripting.SWbemLocator&quot;)
 Set service = locator.ConnectServer()
Do
 Set props = service.ExecQuery(&quot;select * from Win32_Process where name = &#039;notepad.exe&#039;&quot;)
 For Each objProcess in props
 SH.AppActivate objProcess.ProcessId
 Next
 WScript.Sleep 5000
Loop
 SH.SendKeys &quot;{Enter}&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-10-02T12:32:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75685#p75685</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Vbs для невозможности свернуть окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75683#p75683" />
			<content type="html"><![CDATA[<p>Напишите пожайлуста готовый скрипт, а то у меня ошибки какие то вылазиют. Заранее спасибо.</p>]]></content>
			<author>
				<name><![CDATA[CHAMPION]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30863</uri>
			</author>
			<updated>2013-10-02T10:29:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75683#p75683</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Vbs для невозможности свернуть окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75678#p75678" />
			<content type="html"><![CDATA[<p>Вы полагаете, что «все пользователи» будут терпеть это? Сильно сомневаюсь.</p><p>Оборачивайте от «Set props =» и до «Next» включительно в цикл Do…Loop и добавьте перед «Next» паузу. Ровно так же, как это сделано в предыдущем скрипте.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-10-01T21:08:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75678#p75678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Vbs для невозможности свернуть окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75677#p75677" />
			<content type="html"><![CDATA[<p>Мне нужно для игры чтоб, не могли сворачивать и общаться по микрофону. Это придётся значит всем пользователям регить эту дллку, а это не есть гуд.<br />Попробуем пойти другим путём Вот у меня есть vbs скрипт который при запуске разварачавает свёрнутое окно, вот нужно сделать чтоб его 1 раз запустить и он автоматом разворачивал окно&nbsp; при попытке свернуть. Подскажите что нужно туда дописать или как это сделать?</p><p> Пример скрипта:<br /></p><div class="codebox"><pre><code> Set SH = CreateObject(&quot;WScript.Shell&quot;)
 Set locator = CreateObject(&quot;WbemScripting.SWbemLocator&quot;)
 Set service = locator.ConnectServer()
 Set props = service.ExecQuery(&quot;select * from Win32_Process where name = &#039;notepad.exe&#039;&quot;)
 For Each objProcess in props
 SH.AppActivate objProcess.ProcessId
 Next
 SH.SendKeys &quot;{Enter}&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[CHAMPION]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30863</uri>
			</author>
			<updated>2013-10-01T20:16:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75677#p75677</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Vbs для невозможности свернуть окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75674#p75674" />
			<content type="html"><![CDATA[<p>Берите библиотеку: <a href="http://www.script-coding.com/AutiItX.html">Обзор библиотеки AutoItX3.dll</a>, регистрируйте её, пользуйте:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>Option Explicit

Const strWindow = &quot;[REGEXPTITLE:^.* - Блокнот$; CLASS:Notepad]&quot;

Dim objAutoItX3


Set objAutoItX3 = WScript.CreateObject(&quot;AutoItX3.Control&quot;)

Do
    If objAutoItX3.WinGetState(strWindow) And 16 = 16 Then
        objAutoItX3.WinSetState strWindow, &quot;&quot;, objAutoItX3.SW_RESTORE
    End If
    
    WScript.Sleep 5000
Loop

WScript.Quit 0
</code></pre></div></div></div><p>P.S. Зачем это Вам?</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-10-01T19:03:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75674#p75674</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Vbs для невозможности свернуть окно]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75671#p75671" />
			<content type="html"><![CDATA[<p>Здравствуйте, подскажите vbs скрипт чтоб он не давал свернуть окно определённой программы. Заранее спасибо.</p>]]></content>
			<author>
				<name><![CDATA[CHAMPION]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30863</uri>
			</author>
			<updated>2013-10-01T17:46:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75671#p75671</id>
		</entry>
</feed>
