<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: AHK & QR]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14090&amp;type=atom" />
	<updated>2018-08-18T10:56:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14090</id>
		<entry>
			<title type="html"><![CDATA[AHK: AHK & QR]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=128104#p128104" />
			<content type="html"><![CDATA[<p>Добрый день! При помощи сканера штрих-кодов запускаю определенные батники (explorer.exe отключен), в течении дня всё работает отлично, ПК не выключается, но на следующий день при первом же сканировании любого qr кода, забитого в скрипт, ahk.exe завершает работу, запускаю скрипт или перелогиниваюсь (код висит в автозагрузке) - то на протяжении рабочего дня проблем не наблюдается. Есть какие нибудь мысли? </p><br /><div class="codebox"><pre><code>#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent ; Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered)

SendMessage, 0x50,, 0x4090409,, A                           
                                         

Barcode1:= &quot;C:\Users\........\1.bat&quot;
Barcode2:= C:\Users\........\2.bat&quot;
Barcode3:= C:\Users\........\3.bat&quot;
............            
Barcode25:= &quot;C:\Windows\System32\taskmgr.exe&quot;                 



::Bat1::                           
   IfWinExist, ahk_exe AcroRd32.exe    
   MsgBox, Уже запущено!, 3
   else                               
   Run, % Barcode1,,hide
return

::Bat2::                           
   IfWinExist, ahk_exe AcroRd32.exe    
   MsgBox, Уже запущено!, 3
   else                               
   Run, % Barcode2,,hide
return

::Bat3::                           
   IfWinExist, ahk_exe AcroRd32.exe    
   MsgBox, Уже запущено!, 3
   else                               
   Run, % Barcode3,,hide
return


::taskmgr:: 
   Run, % Barcode25
return

</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2018-08-18T10:56:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=128104#p128104</id>
		</entry>
</feed>
