<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Ahk+Gui]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=16138</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16138&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Ahk+Gui».]]></description>
		<lastBuildDate>Thu, 04 Mar 2021 02:54:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Ahk+Gui]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=146606#p146606</link>
			<description><![CDATA[<p><strong>qqlexa</strong> Спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (Sakura)]]></author>
			<pubDate>Thu, 04 Mar 2021 02:54:06 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=146606#p146606</guid>
		</item>
		<item>
			<title><![CDATA[Re: Ahk+Gui]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=146594#p146594</link>
			<description><![CDATA[<p>Я бы добавил проверку при выполнении скрипта по метке key1, если чекбокс неактивен тогда удалим хоткей:<br /></p><div class="codebox"><pre><code>key1:
if (CheckValue){
	SendInput, {i} 
}
else{
	Hotkey, %A_ThisHotKey%, key1, Off
}</code></pre></div><p>Ну и для удобности хорошо бы добавить переход на <strong>Pzz1</strong> при смене хоткея, и для считывания состояния чекбокса добавить переменную его состояния:<br /></p><div class="codebox"><pre><code>
Gui, Add, CheckBox, x12 y19 w110 h20 vCheckValue gPzz1, Включить
Gui, Add, Hotkey, x12 y49 w110 h20 vMyHotKey gPzz1, 
</code></pre></div><p>В обработке <strong>Pzz1</strong> будет хорошо так же проверять состояние чекбокса. С поправками без сильных изменений код выглядит примерно так:<br /></p><div class="codebox"><pre><code>Gui, Add, CheckBox, x12 y19 w110 h20 vCheckValue gPzz1, Включить
Gui, Add, Hotkey, x12 y49 w110 h20 vMyHotKey gPzz1, 
Gui, Add, Text, x132 y49 w100 h20, Одеть
Gui, Font, S8 CDefault, Verdana
; Generated using SmartGUI Creator for SciTE
Gui, Show, w254 h278, Untitled GUI
return

GuiClose:
ExitApp

Pzz1:
Gui, Submit, NoHide  
if (CheckValue){
	Hotkey, %MyHotKey%, key1, On, useerrorlevel  
}
return

key1:
if (CheckValue){
	SendInput, {i} 
}
else{
	Hotkey, %A_ThisHotKey%, key1, Off
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (qqlexa)]]></author>
			<pubDate>Wed, 03 Mar 2021 10:42:59 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=146594#p146594</guid>
		</item>
		<item>
			<title><![CDATA[Ahk+Gui]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=146583#p146583</link>
			<description><![CDATA[<p>Всем здравствуйте. Написал не сложный скрипт, при запуске скрипта открывается меню где можно указать горячую клавишу и поставить галку на активацию клавиши.<br />Суть проблемы- Когда выбираю клавишу и ставлю галку в CheckBox оно работает но когда снимаю галку или ставлю другую клавишу ничего не меняется.<br />В Общем что-то напортачил с кодом.<br />Справки читал но не получилось.</p><div class="codebox"><pre><code>Gui, Add, CheckBox, x12 y19 w110 h20 gPzz1, Включить
Gui, Add, Hotkey, x12 y49 w110 h20 vMyHotKey1, 
Gui, Add, Text, x132 y49 w100 h20, Одеть
Gui, Font, S8 CDefault, Verdana
; Generated using SmartGUI Creator for SciTE
Gui, Show, w254 h278, Untitled GUI
return
GuiClose:
ExitApp

Pzz1:
Gui, Submit, NoHide  
Hotkey, %MyHotKey1%, key1, On, useerrorlevel  
return

key1:
SendInput, {i} </code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Sakura)]]></author>
			<pubDate>Tue, 02 Mar 2021 16:08:10 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=146583#p146583</guid>
		</item>
	</channel>
</rss>
