<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18253&amp;type=atom" />
	<updated>2024-08-17T23:29:14Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18253</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161412#p161412" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong><br />Извини, всё верно, а мне &quot;-&quot; за невнимательность.<br /></p><div class="codebox"><pre><code>F1::
varX := 5 ;10
vary := 5 ;10
varXW := A_ScreenWidth - varX
varYH := A_ScreenHeight - varY
VarSetCapacity(RECT,16,0)
NumPut(varX,&amp;RECT+0,&quot;uint&quot;) ;x
NumPut(varY,&amp;RECT+4,&quot;uint&quot;) ;y
NumPut(varXW,&amp;RECT+8,&quot;uint&quot;) ;w
NumPut(varYH,&amp;RECT+12,&quot;uint&quot;) ;h
DllCall(&quot;ClipCursor&quot;,&quot;PTR&quot;,&amp;RECT)
return</code></pre></div><p>P.S. Писал на на одном компе, а проверял на другом.</p><p>Вопрос решён.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2024-08-17T23:29:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161412#p161412</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161378#p161378" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong>&nbsp; </p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Твой код</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#Requires AutoHotkey v1		;Явное указание версии  AutoHotkey
#SingleInstance  Ignore     ;Запрет повторного запуска скрипта

ShCursor := 1 

Run, &quot;C:\Games\Escort Dreams\Escort Dreams.html&quot;,&quot;C:\Games\Escort Dreams&quot;,UseErrorLevel, OutputVarPID
if (ErrorLevel = &quot;ERROR&quot;) {
		ExitApp
	}
else 
	{
	  Sleep, 1000 ; 1 секунда.
	  send {F11}
	}
	
Esc::
DllCall(&quot;ClipCursor&quot;,&quot;PTR&quot;,0)
ExitApp

F2::
DllCall(&quot;ClipCursor&quot;,&quot;PTR&quot;,0)
return

F1::
VarSetCapacity(RECT,16,0)
NumPut(10,&amp;RECT+0,&quot;uint&quot;) ;x
NumPut(10,&amp;RECT+4,&quot;uint&quot;) ;y
NumPut(1280,&amp;RECT+8,&quot;uint&quot;) ;w
NumPut(1024,&amp;RECT+12,&quot;uint&quot;) ;h
DllCall(&quot;ClipCursor&quot;,&quot;PTR&quot;,&amp;RECT)
return</code></pre></div></div></div><p>Может&nbsp; надо добавить <strong>CoordMode, TargetType [, RelativeTo]</strong>?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2024-08-11T18:36:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161378#p161378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161375#p161375" />
			<content type="html"><![CDATA[<p>Не пойму о чем ты говоришь. Покажи код.<br />Если говоришь о моем коде, то это только пример использования, тебе нужно подставить свои координаты x, y, w, h (получить их путем вычислений от размеров целевого окна или подставить вручную, как тебе удобно).</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2024-08-10T18:48:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161375#p161375</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161371#p161371" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong> <br />Экран разделен на два вертикальных фрейма, те мышка двигается только во одном фрейме(сейчас).<br />Как исправить это?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2024-08-09T21:48:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161371#p161371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161367#p161367" />
			<content type="html"><![CDATA[<p>Извиняюсь ибо <strong>typedef из С/С++</strong>, я знаю что это определение структуры... и &quot;на автомате&quot; решил что оно реализовано в АНК.</p><p>P.S. Около 1.5 года или более, ни чего не писал на АНК.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2024-08-09T18:09:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161367#p161367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161363#p161363" />
			<content type="html"><![CDATA[<p>В фаерфоксе у меня никаких попап окон не появляется.<br />А во всех хромиумах попап окна являются отдельными окнами - просто прячьте их и всё.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2024-08-07T14:47:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161363#p161363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161362#p161362" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Indomito пишет:</cite><blockquote><p>Я комментарии убрал — не работает.</p></blockquote></div><p>А оно и не должно работать, это определение структуры, которая используется в ahk скрипте.</p>]]></content>
			<author>
				<name><![CDATA[Вася_01]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42652</uri>
			</author>
			<updated>2024-08-07T12:02:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161362#p161362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161361#p161361" />
			<content type="html"><![CDATA[<p>Код рабочий, проверил. Но активация других окон его отключит. <br />Мне больше нравится перекрыть своим окном с прозрачностью 1, и вырезом в середине. Если вырез будет грузить, то окна по краям.<br />Ещё плюс можно на второй монитор лазить.<br />Ну и следить что окно фуллскрин конечно.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2024-08-07T09:39:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161361#p161361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161358#p161358" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong> Ты уверен в правильности написания?<br /></p><div class="codebox"><pre><code>;typedef struct tagRECT {
;  LONG left;
;  LONG top;
;  LONG right;
;  LONG bottom;
;} RECT, *PRECT, *NPRECT, *LPRECT;</code></pre></div><p>Я комментарии убрал — не работает.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2024-08-05T21:23:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161358#p161358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161353#p161353" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=5329">AHK: удерживание курсора мыши в определенном окне</a><br /></p><div class="codebox"><pre><code>
F1::
VarSetCapacity(RECT,16,0)
NumPut(10,&amp;RECT+0,&quot;uint&quot;) ;x
NumPut(10,&amp;RECT+4,&quot;uint&quot;) ;y
NumPut(1000,&amp;RECT+8,&quot;uint&quot;) ;w
NumPut(300,&amp;RECT+12,&quot;uint&quot;) ;h
DllCall(&quot;ClipCursor&quot;,&quot;PTR&quot;,&amp;RECT)
return

F2::
DllCall(&quot;ClipCursor&quot;,&quot;PTR&quot;,0)
return

Esc::
DllCall(&quot;ClipCursor&quot;,&quot;PTR&quot;,0)
ExitApp

;typedef struct tagRECT {
;  LONG left;
;  LONG top;
;  LONG right;
;  LONG bottom;
;} RECT, *PRECT, *NPRECT, *LPRECT;
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2024-08-01T13:34:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161353#p161353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161351#p161351" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>...Если нужно, то можно отправлять клик в той области где курсор в само окно браузера. Это последний код который, без скрытия курсора.</p></blockquote></div><p> А если так.<br />1. По таймеру считывать положение курсора.<br />2. Если курсор превышает значение, то сделать его перемещениё.<br />Я попытался, но не выходит.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Код</div><div class="fancy_spoiler"><div class="codebox"><pre><code>;CoordMode, ToolTip, Screen
CoordMode, Mouse, Screen
CoordMode, ToolTip
;+F11::
F2::
  SetTimer, t_on, on
  ;DllCall(&quot;ShowCursor&quot;, UInt, 0)
return
T_On:
	MouseGetPos, X, Y
	if (y &lt;= 60)
		MouseMove, X, 61
		;DllCall(&quot;ShowCursor&quot;, UInt, 0)
	;else 
		;DllCall(&quot;ShowCursor&quot;, UInt, 1)
	;ControlClick, X%x% Y%y%, ahk_pid %P%,, L, 1
	;ToolTip, X%x% Y%y%
Return 

F3::
ExitApp</code></pre></div></div></div><p> Подскажи где я ошибся, плиз.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2024-07-31T20:09:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161351#p161351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161320#p161320" />
			<content type="html"><![CDATA[<p>Я рассчитывал закрыть окно браузера своим Gui, чтобы можно было прервать перехват курсора мыши для браузера. Основная идея в этом. Если нужно, то можно отправлять клик в той области где курсор в само окно браузера. Это последний <a href="https://forum.script-coding.com/viewtopic.php?pid=161279#p161279">код</a> который, без скрытия курсора.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2024-07-20T19:16:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161320#p161320</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161315#p161315" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>Если своё Gui перекрывает браузер не должно же?</p></blockquote></div><p> Мне не нужно перекрытие - исходная задача не изменилась.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2024-07-20T18:48:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161315#p161315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161314#p161314" />
			<content type="html"><![CDATA[<p>Если своё Gui перекрывает браузер не должно же?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2024-07-20T18:44:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161314#p161314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: F11 - fullscreen, как заблокировать выезжающие панели.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=161308#p161308" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong></p><p>1. Прозрачный курсор все равно будет срабатывать или будет?<br />2. Ограничение области через пару MouseGetPos и MouseMove или надо извращаться.</p><p>Извиняю за тупые опросы, я давно не писал ничего на AutoHotkey.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2024-07-20T18:24:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=161308#p161308</id>
		</entry>
</feed>
