<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: GUI в цикле с кнопками]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17469&amp;type=atom" />
	<updated>2022-11-19T15:29:31Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17469</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155710#p155710" />
			<content type="html"><![CDATA[<p>С скриптом разобрался, помощь больше не требуется.</p>]]></content>
			<author>
				<name><![CDATA[will]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42886</uri>
			</author>
			<updated>2022-11-19T15:29:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155710#p155710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155706#p155706" />
			<content type="html"><![CDATA[<p><strong>will</strong>, ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.<br />Ваше пояснение ничего не говорит о том, как должен работать скрипт.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-11-17T14:12:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155706#p155706</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155704#p155704" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Изначально открывается меню, туда надо вписать 2 имени и кол-во вопросов. Затем включается уже скрипт с 1-го сообщения, и там должно быть ровно столько вопросов, сколько указанно изначально, например 5 или 10.</p>]]></content>
			<author>
				<name><![CDATA[will]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42886</uri>
			</author>
			<updated>2022-11-17T12:27:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155704#p155704</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155703#p155703" />
			<content type="html"><![CDATA[<p>Опишите подробнее порядок действий, я так и не понял, как должно работать.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-11-17T12:03:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155703#p155703</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155702#p155702" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Хорошо, а как сделать чтоб это происходило определенное кол-во раз?</p>]]></content>
			<author>
				<name><![CDATA[will]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42886</uri>
			</author>
			<updated>2022-11-17T11:05:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155702#p155702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155698#p155698" />
			<content type="html"><![CDATA[<p>Всё равно непонятно, что тогда мешает просто вызвать Random в каждом из обработчиков кнопок?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-11-17T04:53:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155698#p155698</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155697#p155697" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Как я понял, он хочет чтобы каждый раз вызывался рандомный вопрос из списка всех вопросов которые есть и уже исходя из этого давать ответ.<br />Чем-то схоже с капчей или рандомными подсказками в играх, при загрузке.</p>]]></content>
			<author>
				<name><![CDATA[Clannad5]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39853</uri>
			</author>
			<updated>2022-11-16T22:35:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155697#p155697</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155678#p155678" />
			<content type="html"><![CDATA[<p>Не совсем понятно, как этот рандом должен использоваться.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-11-16T14:03:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155678#p155678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: GUI в цикле с кнопками]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=155662#p155662" />
			<content type="html"><![CDATA[<p>Вечер добрый!<br />Пишу не большой АХК скрипт для себя, и мне надо чтоб там был такой не большой опросник, и мне надо чтоб после нажатия клавиш &quot;Ответ верный&quot; &quot;50/50&quot; &quot;Ответ не верный&quot; создавался новый рандом (сейчас он просто сделать цифрами для виду) ровно то количество раз которое будет указанно, смотрел Gosub но ничего не понял по нему, буду заранее благодарен за помощь.<br />p.s: Это вырезанный кусок из основного кода, но я думаю это не помешает особо...<br /></p><div class="codebox"><pre><code>SetWorkingDir %A_ScriptDir%
SetBatchLines -1

Random,var1,1,10

Gui Font, s9, Segoe UI

Gui Add, Text, x16 y8 w262 h55, %var1%
Gui Add, Button, x16 y64 w89 h32 gVer, Ответ верный
Gui Add, Button, x104 y64 w89 h32 gFf, 50/50
Gui Add, Button, x192 y64 w89 h32 gNeVer, Ответ неверный


Gui Show, w291 h106, EXh
return

Ver:
    GuiControlGet, Counter
    Counter := Counter + 1
    GuiControl,, Counter, %Counter%
reload
return

Ff:
    GuiControlGet, Counter
    Counter := Counter + 0.5
    GuiControl,, Counter, %Counter%
reload
return

NeVer:
    GuiControlGet, Counter
    Counter := Counter + 0
    GuiControl,, Counter, %Counter%
reload
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[will]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42886</uri>
			</author>
			<updated>2022-11-15T23:49:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=155662#p155662</id>
		</entry>
</feed>
