<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: CLR-как заставить работать скрипт?]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=12948&amp;type=atom" />
	<updated>2017-08-26T12:26:52Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12948</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118814#p118814" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong>, спасибо все заработало: драйвер MicroTimer.dll&nbsp; был заблокирован - нужно было в его свойствах разрешить его использование <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />.</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-26T12:26:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118814#p118814</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118812#p118812" />
			<content type="html"><![CDATA[<p>Win7 64bit, ahk 1.1.26.01 Unicode 32-bit - не работает.<br />Но заработает, если в MicroTimer.dll Properties выбрать unblock.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-08-26T12:05:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118812#p118812</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118810#p118810" />
			<content type="html"><![CDATA[<p>Проверил, работает. AutoHotkey 1.1.25.1 Unicode 32-bit, Windows XP.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-08-26T11:54:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118810#p118810</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118808#p118808" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong>, вы правильно поняли, второе- хочу заставить работать непонятный скрипт. Ведь у автора он работает, я-то почему не могу его применить?</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-26T11:43:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118808#p118808</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118806#p118806" />
			<content type="html"><![CDATA[<p>Вам нужен скрипт для перемещения курсора нажатием клавиш? Или заставить работать какой-то незнакомый скрипт, взятый с англоязычного форума?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-08-26T10:21:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118806#p118806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118805#p118805" />
			<content type="html"><![CDATA[<p>Микротаймер:</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-26T09:18:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118805#p118805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118804#p118804" />
			<content type="html"><![CDATA[<p>При запуске с помощью ANSI выпадает такая ошибка<br /></p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-26T09:06:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118804#p118804</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118802#p118802" />
			<content type="html"><![CDATA[<p>Еще одна моя цель таймер получить меньше 1000 микросекунд.</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-26T08:50:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118802#p118802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118801#p118801" />
			<content type="html"><![CDATA[<p><strong>belyankin12</strong>, к сожалению не работает.</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-26T08:47:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118801#p118801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118798#p118798" />
			<content type="html"><![CDATA[<p>Можно и эту версию, просто переустановите АХК, используя кодировку ANSI. В корне исполняемого файла ahk есть скрипт-переустановщик. Но для начала, попробуй запустить скрипт через контекстное меню &quot;Открыть с помощью&quot; и выберите в списке программ AHK ANSI 32 bit, а если его нету, то укажите к нему путь, он лежит в папке Autohotkey. Если заработает - то нужно переустанавливать AHK на ANSI, если нет, то в этом смысла нет тогда.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-26T08:02:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118798#p118798</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118796#p118796" />
			<content type="html"><![CDATA[<p><strong>belyankin12</strong>, другую версию AHK устанавливать или что-то еще делать?</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-26T06:29:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118796#p118796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118795#p118795" />
			<content type="html"><![CDATA[<p>АХК должен быть запущен на АНСИ, если юникод то пробуйте.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-26T05:34:29Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118795#p118795</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118791#p118791" />
			<content type="html"><![CDATA[<p>Так спросите у того, кто создал эту библиотеку.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-08-25T23:03:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118791#p118791</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118789#p118789" />
			<content type="html"><![CDATA[<p><strong>svoboden</strong>, я не сомневаюсь что ваш код работает, я то просил помочь разобраться почему мой код не реагирует. Или нужна другая версия AHK или нужна какая-то процедура - здесь вся ценность в работе с библиотекой&nbsp; -хочется продвинуться. Пример как мне кажется простой и удачный.</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-25T22:24:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118789#p118789</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: CLR-как заставить работать скрипт?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118787#p118787" />
			<content type="html"><![CDATA[<p>Все работает:<br /></p><div class="codebox"><pre><code>; NOTE: While a script like this is running, the entire operating system and all applications are
; affected by timeBeginPeriod below.

SetBatchLines -1  ; Ensures maximum effectiveness of this method.
ntchs:=2
SleepDuration = 1  ; This can sometimes be finely adjusted (e.g. 2 is different than 3) depending on the value below.
TimePeriod = 3 ; Try 7 or 3.  See comment below.
; On a PC whose sleep duration normally rounds up to 15.6 ms, try TimePeriod=7 to allow
; somewhat shorter sleeps, and try TimePeriod=3 or less to allow the shortest possible sleeps.

;~ DllCall(&quot;Winmm\timeBeginPeriod&quot;, uint, TimePeriod)  ; Affects all applications, not just this script&#039;s DllCall(&quot;Sleep&quot;...), but does not affect SetTimer.

~Right::
	DllCall(&quot;user32.dll\mouse_event&quot;, &quot;UInt&quot;, 0x0001, &quot;UInt&quot;, 1*ntchs, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0, &quot;UPtr&quot;, 0)
    DllCall(&quot;Sleep&quot;, UInt, SleepDuration)  ; Must use DllCall instead of the Sleep command.
DllCall(&quot;Winmm\timeEndPeriod&quot;, UInt, TimePeriod)  ; Should be called to restore system to normal.
return
~Left::
loop
{
	DllCall(&quot;user32.dll\mouse_event&quot;, &quot;UInt&quot;, 0x0001, &quot;UInt&quot;, -1*ntchs, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0, &quot;UPtr&quot;, 0)
    DllCall(&quot;Sleep&quot;, UInt, SleepDuration)  ; Must use DllCall instead of the Sleep command.
	if !GetKeyState(&quot;Left&quot;, &quot;P&quot;)
	break
}
DllCall(&quot;Winmm\timeEndPeriod&quot;, UInt, TimePeriod)  ; Should be called to restore system to normal.
return
~Down::
loop
{
	DllCall(&quot;user32.dll\mouse_event&quot;, &quot;UInt&quot;, 0x0001, &quot;UInt&quot;, 0, &quot;UInt&quot;, 1*ntchs, &quot;UInt&quot;, 0, &quot;UPtr&quot;, 0)
    DllCall(&quot;Sleep&quot;, UInt, SleepDuration)  ; Must use DllCall instead of the Sleep command.
	if !GetKeyState(&quot;Down&quot;, &quot;P&quot;)
	break
}
DllCall(&quot;Winmm\timeEndPeriod&quot;, UInt, TimePeriod)  ; Should be called to restore system to normal.
return
~Up::
loop
{
	DllCall(&quot;user32.dll\mouse_event&quot;, &quot;UInt&quot;, 0x0001, &quot;UInt&quot;, 0, &quot;UInt&quot;, -1*ntchs, &quot;UInt&quot;, 0, &quot;UPtr&quot;, 0)
    DllCall(&quot;Sleep&quot;, UInt, SleepDuration)  ; Must use DllCall instead of the Sleep command.
	if !GetKeyState(&quot;Up&quot;, &quot;P&quot;)
	break
}
DllCall(&quot;Winmm\timeEndPeriod&quot;, UInt, TimePeriod)  ; Should be called to restore system to normal.
return


^Esc::
DllCall(&quot;Winmm\timeEndPeriod&quot;, UInt, TimePeriod)  ; Should be called to restore system to normal.
ExitApp
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-08-25T22:06:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118787#p118787</id>
		</entry>
</feed>
