<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK/AU3:Счётчик]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15825&amp;type=atom" />
	<updated>2020-11-14T08:03:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15825</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143454#p143454" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>AlexPidor</strong>, предложения должны начинаться с заглавной буквы и заканчиваться знаками препинания. Избегайте избыточного цитирования! Не цитируйте пост, на который отвечаете, целиком. Исправьте свои сообщения:</span><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=143434#p143434">http://forum.script-coding.com/viewtopi … 34#p143434</a><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=143438#p143438">http://forum.script-coding.com/viewtopi … 38#p143438</a><br /><a href="http://forum.script-coding.com/viewtopic.php?pid=143447#p143447">http://forum.script-coding.com/viewtopi … 47#p143447</a></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-11-14T08:03:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143454#p143454</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143453#p143453" />
			<content type="html"><![CDATA[<p>Вот так можно сделать. Два действия чередуются.</p><div class="codebox"><pre><code>TAB::
Mousegetpos, x, y
Sleep, 100
SW := !SW
If SW
{
	ToolTip, Первое действие.
	Click, 844, 260
	Click, Right 845, 320
}

Else
{
	ToolTip, Второе действие.
	Click, 55, 66
	Click, Right 33, 44
}

MouseMove, % x, % y
Sleep, 500
ToolTip
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-11-14T06:58:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143453#p143453</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143452#p143452" />
			<content type="html"><![CDATA[<p>У меня этот код работает.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-11-14T06:27:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143452#p143452</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143451#p143451" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>__Михаил__ пишет:</cite><blockquote><p>MouseMove не функция, а команда. Переменные принимает выражением.</p><div class="codebox"><pre><code>MouseMove, % x, % y</code></pre></div></blockquote></div><p>Ну и?<br />Тогда почему при вставке этого в код, <br /></p><div class="codebox"><pre><code>counter := 0
TAB:: 
{
Mousegetpos, x, y
	counter++
	if  (counter=1) ;первое нажатие
	{ 
		tooltip, 1
		sleep 1000
		tooltip
MouseMove, % x, % y
	}
	else if (counter=2) ;второе нажатие
	{ 
		tooltip, 2
		sleep 1000
		tooltip
		counter := 0
MouseMove, % x, % y
	}
}
return</code></pre></div><p>он перестаёт работать? У них приоритет выполнения или что?</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-14T06:04:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143451#p143451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143448#p143448" />
			<content type="html"><![CDATA[<p>MouseMove не функция, а команда. Переменные принимает выражением.</p><div class="codebox"><pre><code>MouseMove, % x, % y</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2020-11-13T21:37:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143448#p143448</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143447#p143447" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>qqlexa пишет:</cite><blockquote><p>else if</p></blockquote></div><p>а вон как</p><p>А теперь, надо чтобы он в изначальные координаты возвращал курсор, а то забирает и всё идёт наперекосяк, даже с 0 паузой он очень заметно перемещает мышь<br />Что как если я пишу<br /></p><div class="codebox"><pre><code>Mousegetpos, x, y
MouseMove, x, y</code></pre></div><p>То он по тем координатам тыкает, а назад не возвращает</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-13T19:48:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143447#p143447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143443#p143443" />
			<content type="html"><![CDATA[<p>Что у вас не работает?<br /></p><div class="codebox"><pre><code>
counter := 0
TAB:: 
{
	counter++
	if  (counter=1) ;первое нажатие
	{ 
		tooltip, 1
		sleep 1000
		tooltip
	}
	else if (counter=2) ;второе нажатие
	{ 
		tooltip, 2
		sleep 1000
		tooltip
		counter := 0
	}
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2020-11-13T14:52:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143443#p143443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143439#p143439" />
			<content type="html"><![CDATA[<p>Почему-то не работает:<br /></p><div class="codebox"><pre><code>counter := 0
TAB:: 
{
 Mousegetpos, x, y
 counter++
 sleep 1
  if  (counter=1) ;первое нажатие
  { 
    Click 844, 260,
     Click right 845, 320,
    MouseMove, x, y
  }
  if (counter=2) ;второе нажатие
  { 
   Click 845, 320,
    Click right 844, 260,
   MouseMove, x, y
  counter := 0
  }
}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-12T11:04:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143439#p143439</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143438#p143438" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>qqlexa пишет:</cite><blockquote><p>Вам нужно сравнивать, а вы используете присваивание.<br /></p><div class="codebox"><pre><code>
counter := 1 ;// Оператор присваивания
if (counter=1){ ;// Условный оператор
	msgbox, Point
}
if (counter=2){ ;// Условный оператор
	msgbox, Point
}
</code></pre></div></blockquote></div><div class="codebox"><pre><code>
counter := 1 ;// Оператор присваивания
if (counter&gt;1){ ;// Условный оператор
	msgbox, Point
}
if (counter&gt;2){ ;// Условный оператор
	msgbox, Point
}
</code></pre></div><p>?</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-12T10:45:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143438#p143438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143437#p143437" />
			<content type="html"><![CDATA[<p>Вам нужно сравнивать, а вы используете присваивание.<br /></p><div class="codebox"><pre><code>
counter := 1 ;// Оператор присваивания
if (counter=1){ ;// Условный оператор
	msgbox, Point
}
if (counter=2){ ;// Условный оператор
	msgbox, Point
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qqlexa]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39096</uri>
			</author>
			<updated>2020-11-12T10:19:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143437#p143437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK/AU3:Счётчик]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143434#p143434" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
Какой-то счётчик первое или второе нажатие
counter := 0
TAB::
sleep 1
counter++
if counter := 1 {  ;первое нажатие
SendInput {Click} 33, 44,
SendInput {Click right} 55, 66, 
}
if  counter := 2 { ;второе нажатие
SendInput {Click}  55, 66, 
SendInput {Click right} 33, 44,
}
-И возврат курсора на то место, где он был
counter := 0
return</code></pre></div><p>Нужна попеременная смена нажатий, т.е. если это было первое нажатие одни действия, а если второе то другие и так по новой</p>]]></content>
			<author>
				<name><![CDATA[AlexPidor]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41190</uri>
			</author>
			<updated>2020-11-12T08:15:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143434#p143434</id>
		</entry>
</feed>
