<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Скрипт для блокировки экрана]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15271&amp;type=atom" />
	<updated>2020-03-31T16:21:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15271</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт для блокировки экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138739#p138739" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong></p><p>Так можно было???</p>]]></content>
			<author>
				<name><![CDATA[Murka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39392</uri>
			</author>
			<updated>2020-03-31T16:21:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138739#p138739</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Скрипт для блокировки экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138738#p138738" />
			<content type="html"><![CDATA[<p>Когда я отхожу, нажимаю Win+L. Чем не устраивает такой вариант?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-03-31T16:20:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138738#p138738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Скрипт для блокировки экрана]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138737#p138737" />
			<content type="html"><![CDATA[<p>Написал данный скрипт от родителей и младшего брата. Они постоянно трогают мой компьютер когда я отхожу.<br />У меня есть несколько идей как улучшить этот скрипт, но я не знаю как их реализовать.</p><p>1. Автоматическое включение, когда мышка перестает двигаться в течении нескольких минут.<br />2. Защита от горячих клавиш, диспетчера задач (Ctrl + Alt + Del).</p><p>Помогите пожалуйста улучшить данный код.</p><div class="codebox"><pre><code>
#SingleInstance, Force
;#NoTrayIcon

BlockInput,MouseMove
xpos := A_ScreenWidth / 2
ypos := A_ScreenHeight / 2
width := A_ScreenWidth
height := A_ScreenHeight
Gui, +AlwaysOnTop -Caption
Gui, Color, black
Gui, Show, x0 y0 w%width% h%height%
MouseMove, xpos, ypos, 0
SoundGetWaveVolume, Volume
SoundSetWaveVolume, 0
KeyWait, m, D
KeyWait, u, D
KeyWait, r, D
KeyWait, k, D
KeyWait, a, D
SoundSetWaveVolume, %Volume%
BlockInput,MouseMoveOff
ExitApp
return

LWin::
RWin::
LButton::
RButton::
MButton::
WheelDown::
WheelUp::
XButton1::
XButton2::
Esc::
F1::
F2::
F3::
F4::
F5::
F6::
F7::
F8::
F9::
a::
F10::
F11::
F12::
1::
2::
3::
u::
r::
4::
5::
6::
7::
8::
9::
0::
-::
=::
q::
w::
e::
t::
y::
i::
o::
p::
s::
d::
f::
m::
k::
g::
h::
j::
l::
z::
x::
c::
v::
b::
n::
Ctrl::
Shift::
Alt::
Del::
Left::
Right::
Down::
Up::
Tab::
CapsLock::
NumLock::
Numpad0::
Numpad1::
Numpad2::
Numpad3::
Numpad4::
Numpad5::
Numpad6::
Numpad7::
Numpad8::
Numpad9::
PGDN::
PGUP::
PrintScreen::
Home::
End::
Space::
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Murka]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39392</uri>
			</author>
			<updated>2020-03-31T16:13:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138737#p138737</id>
		</entry>
</feed>
