<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: привязка ахк к времени операционной системы]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=16466</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16466&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: привязка ахк к времени операционной системы».]]></description>
		<lastBuildDate>Thu, 01 Jul 2021 20:08:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: привязка ахк к времени операционной системы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=148745#p148745</link>
			<description><![CDATA[<p>Пользуйтесь поиском.&nbsp; <a href="https://forum.script-coding.com/viewtopic.php?id=16380">AHK: Привязка скрипта ко времени OC Windows</a></p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Thu, 01 Jul 2021 20:08:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=148745#p148745</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: привязка ахк к времени операционной системы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=148744#p148744</link>
			<description><![CDATA[<p>Попробуйте адаптировать такой код:<br /></p><div class="codebox"><pre><code>RunAtTime(&quot;MyFunc&quot;, &quot;21:36&quot;)
Return

MyFunc() {
   MsgBox, % A_ThisFunc
}

RunAtTime(userFunc, hourMin, runNow := false) {
/*
userFunc is function name or func object
hourMin in 09:15 format
runNow if true, userFunc will be called immediately
*/
   #Persistent
   if !RegExMatch(hourMin, &quot;(\d\d):(\d\d)&quot;, time)
      throw &quot;hourMin variable is in wrong format&quot;
   if runNow
      %userFunc%()
   now := A_Now
   time := SubStr(now, 1, 8) . time1 . time2 . &quot;00&quot;
   if (now &gt;= time)
      time += 1, Days
   time -= now, Seconds
   timer := Func(A_ThisFunc).Bind(userFunc, hourMin, true)
   SetTimer, % timer, % &quot;-&quot; . time*1000
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 01 Jul 2021 18:36:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=148744#p148744</guid>
		</item>
		<item>
			<title><![CDATA[AHK: привязка ахк к времени операционной системы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=148721#p148721</link>
			<description><![CDATA[<p>Помогите написать скрипт, чтобы был привязан к времени на компьютере:<br />в 59 минут каждого часа прописывалось&nbsp; Sendinput, {F6}/sleep{enter} и потом в 3 минуты так же каждого часа снова прописывалось Sendinput, {F6}/sleep{enter}. <br />Буду очень благодарен за помощь.</p>]]></description>
			<author><![CDATA[null@example.com (hiddan43)]]></author>
			<pubDate>Thu, 01 Jul 2021 11:01:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=148721#p148721</guid>
		</item>
	</channel>
</rss>
