<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Нужно получить код клавиши и написать его вместо sc20]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13701&amp;type=atom" />
	<updated>2018-05-12T07:59:08Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13701</id>
		<entry>
			<title type="html"><![CDATA[Re: Нужно получить код клавиши и написать его вместо sc20]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=125314#p125314" />
			<content type="html"><![CDATA[<p>Фу как не красиво!(<br />Посмотри правила создания тем на форуме, а потом - справка тебе в руки...</p>]]></content>
			<author>
				<name><![CDATA[shahlik002]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=37352</uri>
			</author>
			<updated>2018-05-12T07:59:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=125314#p125314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Нужно получить код клавиши и написать его вместо sc20]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=125311#p125311" />
			<content type="html"><![CDATA[<p>как сделать чтобы из хоткея G8 (файл целиком ниже) вставилось нормально клавиша вместо sc20 вот здесь: If (!GetKeyState(&quot;sc20&quot;, &quot;P&quot;)) </p><p>IniRead, c1		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		&nbsp; &nbsp;, c1<br />IniRead, c2		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		&nbsp; &nbsp;, c2<br />IniRead, c3		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		&nbsp; &nbsp;, c3<br />IniRead, c4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , c4<br />IniRead, c5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , c5<br />IniRead, c6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , c6<br />IniRead, c7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , c7<br />IniRead, G1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , G1<br />IniRead, G2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , G2<br />IniRead, G3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , G3<br />IniRead, G4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , G4<br />IniRead, G5&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , G5<br />IniRead, G6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , G6<br />IniRead, G7&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , G7<br />IniRead, G8&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , G8<br />IniRead, Vl_suspend&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; &nbsp; , Vl_suspend<br />Gui, Add, Picture, x2 y-1 w730 h430 , %a_temp%/1234.png<br />Gui, Font, S12<br />Gui, Add, Hotkey,&nbsp; &nbsp;x13&nbsp; y76&nbsp; w40 h30&nbsp; &nbsp; vG1,&nbsp; %G1%<br />Gui, Add, CheckBox, x62&nbsp; y82&nbsp; w13 h13&nbsp; &nbsp; vc1&nbsp; &nbsp;%с1% ges,<br />Gui, Add, Hotkey,&nbsp; &nbsp;x112 y76&nbsp; w40 h30&nbsp; &nbsp; vG2,&nbsp; %G2%<br />Gui, Add, CheckBox, x162 y82&nbsp; w13 h13&nbsp; &nbsp; vc2&nbsp; &nbsp;%с2% ges,<br />Gui, Add, Hotkey,&nbsp; &nbsp;x13&nbsp; y190 w40 h30&nbsp; &nbsp; vG3,&nbsp; %G3%<br />Gui, Add, CheckBox, x62&nbsp; y199 w13 h13&nbsp; &nbsp; vc3&nbsp; &nbsp;%с3% ges,<br />Gui, Add, Hotkey,&nbsp; &nbsp;x112 y190 w40 h30&nbsp; &nbsp; vG4,&nbsp; %G4%<br />Gui, Add, CheckBox, x162 y199 w13 h13&nbsp; &nbsp; vc4&nbsp; &nbsp;%с4% ges,<br />Gui, Add, Hotkey,&nbsp; &nbsp;x13&nbsp; y304 w40 h30&nbsp; &nbsp; vG5,&nbsp; %G5%<br />Gui, Add, CheckBox, x62&nbsp; y312 w13 h13&nbsp; &nbsp; vc5&nbsp; &nbsp;%с5% ges,<br />Gui, Add, Hotkey,&nbsp; &nbsp;x113 y304 w40 h30&nbsp; &nbsp; vG6,&nbsp; %G6%<br />Gui, Add, CheckBox, x162 y312 w13 h13&nbsp; &nbsp; vc6&nbsp; &nbsp;%с6% ges,<br />Gui, Add, Hotkey,&nbsp; &nbsp;x97&nbsp; y386 w40 h30&nbsp; &nbsp; vG7,&nbsp; %G7%<br />Gui, Add, CheckBox, x108 y362 w13 h13&nbsp; &nbsp; vc7&nbsp; &nbsp;%с7% ges,<br />Gui, Add, Hotkey,&nbsp; &nbsp;x314 y137 w38 h23&nbsp; &nbsp; vVl_suspend, %Vl_suspend%<br />Gui, Add, Hotkey,&nbsp; &nbsp;x262 y365 w40 h30&nbsp; &nbsp; vG8,&nbsp; %G8%<br />Gui, Font, S15<br />Gui, Add, Button, x242 y239 w200 h70 gOk, Принять<br />Gui, Font, S9<br />Gui, Add, Button, x142 y389 w40 h20 gESpace, Space<br />Gui, Show, w736 h431, Legion Commander 1.0<br />GoSub, es<br />GoSub, Ok<br />return<br />GuiClose:<br />ExitApp<br />return<br />Ok:<br />Hotkey, $%G1%&nbsp; , , off, UseErrorLevel<br />Hotkey, $%G2%&nbsp; , , off, UseErrorLevel<br />Hotkey, $%G3%&nbsp; , , off, UseErrorLevel<br />Hotkey, $%G4%&nbsp; , , off, UseErrorLevel<br />Hotkey, $%G5%&nbsp; , , off, UseErrorLevel<br />Hotkey, $%G6%&nbsp; , , off, UseErrorLevel<br />Hotkey, $%G7%&nbsp; , , off, UseErrorLevel<br />Hotkey, $%G8%&nbsp; , , off, UseErrorLevel<br />Hotkey, $%Vl_suspend%&nbsp; , , off, UseErrorLevel<br />Gui, Submit, NoHide<br />b := [G1, G2, G3, G4, G5, G6, G7, G8, Vl_suspend]<br />Loop % b.MaxIndex()<br />{<br />t := A_Index<br />a := &quot;&quot;<br />modi := &quot;&quot;<br />a := % b[t]<br />Loop<br />{<br />first := &quot;&quot;<br />StringLeft first, a, 1<br />if (first = &quot;+&quot; or first =&quot;^&quot; or first =&quot;!&quot;)<br />{<br />modi := modi . first<br />StringTrimLeft a, a, 1<br />}<br />else<br />break<br />}<br />a := Format(&quot;sc{:x}&quot;, GetKeySC(a))<br />b[t] := modi . a<br />}<br />G1&nbsp; &nbsp;:= b[1]<br />G2&nbsp; &nbsp;:= b[2]<br />G3&nbsp; &nbsp;:= b[3]<br />G4&nbsp; &nbsp;:= b[4]<br />G5&nbsp; &nbsp;:= b[5]<br />G6&nbsp; &nbsp;:= b[6]<br />G7&nbsp; &nbsp;:= b[7]<br />G8&nbsp; &nbsp;:= b[8]<br />Vl_suspend&nbsp; &nbsp;:= b[9]<br />IniWrite, %c1%	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		 , c1<br />IniWrite, %c2%	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		 , c2<br />IniWrite, %c3%	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		 , c3<br />IniWrite, %c4%	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		 , c4<br />IniWrite, %c5%	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		 , c5<br />IniWrite, %c6%	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		 , c6<br />IniWrite, %c7%	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go		 , c7<br />IniWrite, %G1%&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , G1<br />IniWrite, %G2%&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , G2<br />IniWrite, %G3%&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , G3<br />IniWrite, %G4%&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , G4<br />IniWrite, %G5%&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , G5<br />IniWrite, %G6%&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , G6<br />IniWrite, %G7%&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , G7<br />IniWrite, %G8%&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , G8<br />IniWrite, %Vl_suspend%&nbsp; &nbsp;, Legion Commander.ini, Go&nbsp; &nbsp; &nbsp; , Vl_suspend<br />Hotkey, $%G1%&nbsp; &nbsp; , G1&nbsp; &nbsp; , on, UseErrorLevel<br />Hotkey, $%G2%&nbsp; &nbsp; , G2&nbsp; &nbsp; , on, UseErrorLevel<br />Hotkey, $%G3%&nbsp; &nbsp; , G3&nbsp; &nbsp; , on, UseErrorLevel<br />Hotkey, $%G4%&nbsp; &nbsp; , G4&nbsp; &nbsp; , on, UseErrorLevel<br />Hotkey, $%G5%&nbsp; &nbsp; , G5&nbsp; &nbsp; , on, UseErrorLevel<br />Hotkey, $%G6%&nbsp; &nbsp; , G6&nbsp; &nbsp; , on, UseErrorLevel<br />Hotkey, $%G7%&nbsp; &nbsp; , G7&nbsp; &nbsp; , on, UseErrorLevel<br />Hotkey, $%G8%&nbsp; &nbsp; , G8&nbsp; &nbsp; , on, UseErrorLevel<br />Hotkey, $%Vl_suspend%,&nbsp; , on, UseErrorLevel<br />return<br />Sus:<br />Suspend<br />return</p><br /><p>G8:<br />If (c1 = 1)<br />	{<br />	Send, {%G1%}<br />	}<br />time := A_TickCount <br />Loop <br />{ <br />	if (A_TickCount - time &lt; 200)<br />	{<br />		If (c4 = 1)<br />			{<br />			Send, {%G4%}<br />			}<br />		If (c6 = 1)<br />			{<br />			Send, {%G6%}<br />			}<br />		If (c5 = 1)<br />			{<br />			Send, {%G5%}<br />			}<br />	}<br />	else <br />	{<br />		If (c7 = 1)<br />			{<br />			Send, {%G7%}<br />			}<br />		If (c3 = 1)<br />			{<br />			Send, {%G3%}<br />			}			<br />		If (c2 = 1)<br />			{<br />			Send, +{%G2%}<br />			}<br />	}<br />Sleep, 1 <br />If (!GetKeyState(&quot;sc20&quot;, &quot;P&quot;)) <br />Break <br />} <br />Return</p><br /><p>es:<br />GuiControlGet, c1<br />GuiControlGet, c2<br />GuiControlGet, c3<br />GuiControlGet, c4<br />GuiControlGet, c5<br />GuiControlGet, c6<br />GuiControlGet, c7<br />If (c1 = 0)<br />{<br />GuiControl, disable, G1<br />}<br />If (c2 = 0)<br />{<br />GuiControl, disable, G2<br />}<br />If (c3 = 0)<br />{<br />GuiControl, disable, G3<br />}<br />If (c4 = 0)<br />{<br />GuiControl, disable, G4<br />}<br />If (c5 = 0)<br />{<br />GuiControl, disable, G5<br />}<br />If (c6 = 0)<br />{<br />GuiControl, disable, G6<br />}<br />If (c7 = 0)<br />{<br />GuiControl, disable, G7<br />}<br />If (c1 = 1)<br />{<br />GuiControl, enable, G1<br />}<br />If (c2 = 1)<br />{<br />GuiControl, enable, G2<br />}<br />If (c3 = 1)<br />{<br />GuiControl, enable, G3<br />}<br />If (c4 = 1)<br />{<br />GuiControl, enable, G4<br />}<br />If (c5 = 1)<br />{<br />GuiControl, enable, G5<br />}<br />If (c6 = 1)<br />{<br />GuiControl, enable, G6<br />}<br />If (c7 = 1)<br />{<br />GuiControl, enable, G7<br />}<br />return<br />ESpace:<br />GuiControl, , G7, sc39<br />return</p><br /><p>!sc19::<br />Suspend<br />Return</p><p>+sc1C:: <br />Suspend <br />Send, +{sc1C}<br />Return</p><p>sc1C:: <br />Suspend <br />Send, {sc1C}<br />Return</p>]]></content>
			<author>
				<name><![CDATA[artur.petrash.98]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39038</uri>
			</author>
			<updated>2018-05-11T21:59:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=125311#p125311</id>
		</entry>
</feed>
