<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10392&amp;type=atom" />
	<updated>2018-09-11T10:56:14Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=10392</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=128633#p128633" />
			<content type="html"><![CDATA[<p>Здесь не выкладывают скомпилировпнные скрипты, если нужно, компилируйте самостоятельно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-09-11T10:56:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=128633#p128633</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=128632#p128632" />
			<content type="html"><![CDATA[<p>teadrinker<br />Извините я имел ввиду скомпилированный вариант скрипта готовый к работе.</p>]]></content>
			<author>
				<name><![CDATA[erius]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33591</uri>
			</author>
			<updated>2018-09-11T09:55:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=128632#p128632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=128631#p128631" />
			<content type="html"><![CDATA[<p>Оба скрипта из <a href="http://forum.script-coding.com/viewtopic.php?pid=109047#p109047">этого</a> поста рабочие, но работать будут только в тех окнах, где можно отследить каретку, то есть в стандартных виндосовских, например, в блокноте.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-09-10T22:35:59Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=128631#p128631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=128630#p128630" />
			<content type="html"><![CDATA[<p>Господа извините за нубство , дайте пожалуйста ссылку на рабочий скрипт.</p>]]></content>
			<author>
				<name><![CDATA[erius]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33591</uri>
			</author>
			<updated>2018-09-10T19:21:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=128630#p128630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126807#p126807" />
			<content type="html"><![CDATA[<p><strong>egor95</strong><br />На счёт Хрома — кажется, было бы решением не привязывать флаг к курсору, а полностью заменять курсор на курсор с флагом, в Хроме это работает.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-07-07T22:02:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126807#p126807</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126701#p126701" />
			<content type="html"><![CDATA[<p><strong>DD</strong><br />На счет хрома, monsoon уже об этом писал: <a href="http://forum.script-coding.com/viewtopic.php?pid=109084#p109084">http://forum.script-coding.com/viewtopi … 84#p109084</a>.<br />Я пользуюсь Firefox, там все работает.</p>]]></content>
			<author>
				<name><![CDATA[egor95]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39356</uri>
			</author>
			<updated>2018-07-05T16:06:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126701#p126701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126700#p126700" />
			<content type="html"><![CDATA[<p>Обе версии скрипта в Хроме флаг не отображают.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-07-05T16:00:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126700#p126700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126699#p126699" />
			<content type="html"><![CDATA[<p><strong>DD</strong><br />Перезалил. Пришлось разделить на два архива, обычные версии прикрепил к своему предыдущему посту, а версии для масштаба 150% к этому.<br />А на счет флагов, то тут, кому как больше нравиться, плюс при клике по флагу переключается язык.</p>]]></content>
			<author>
				<name><![CDATA[egor95]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39356</uri>
			</author>
			<updated>2018-07-05T15:51:15Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126699#p126699</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126696#p126696" />
			<content type="html"><![CDATA[<p>Господа, а не лучше менять цвета курсора, который активируется во время печати, соответственно — на синий и красный, в зависимости от раскладки? Я как-то это делал. Зачем эти флажки?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-07-05T15:38:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126696#p126696</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126695#p126695" />
			<content type="html"><![CDATA[<p><strong>egor95</strong><br />У меня сообщение, что архив имеет неизвестный формат.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-07-05T15:34:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126695#p126695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=126694#p126694" />
			<content type="html"><![CDATA[<p>Переписал скрипт:<br /></p><ul><li><p>добавил третью раскладку клавиатуры (особенно полезно для жителей Украины, Беларуси, Казахстана, ...), выкладываю версии Рус-Eng-Укр и Рус-Eng;</p></li><li><p>в версии Рус-Eng-Укр прописан обратный порядок переключения языка (Eng(1033) -&gt; Укр(1058) -&gt; Рус(1049)), для того чтобы происходил прямой порядок переключения (Eng(1033) -&gt; Рус(1049) -&gt; Укр(1058)), необходимо заменить &quot;PostMessage, 0x50, 2, 1,, A&quot; на &quot;PostMessage, 0x50, 2,,, A&quot;;</p></li><li><p>сделал квадратные флаги и закрепил по середине над кареткой, таким образом флаг не будет мешать вводу и редактированию текста;</p></li><li><p>для режима Caps Lock сделал небольшую зеленую рамку и привязал Caps Lock к клику ПКМ по флагу;</p></li><li><p>если скрипт будет использоваться на планшете или ноутбуке с небольшим экраном и масштабом 150%, то выкладываю версии Рус-Eng и Рус-Eng-Укр для масштаба 150%;</p></li><li><p>также отключил отображение в трее, по ненадобности.</p></li></ul><p>В случае, если необходим не украинский, а другой язык третьей раскладкой, необходимо просто заменить флаг (Ua.png) и &quot;Ukrainian&quot; в &quot;If (InputLayout()=&quot;Ukrainian&quot;)&quot;.<br />Флаги такого же вида, как были использованы в скрипте, можно найти по ссылке: <a href="http://www.freeflagicons.com/buy/square_metal_framed_icon/">http://www.freeflagicons.com/buy/square … amed_icon/</a>. Также их необходимо уменьшить до размера 16*16 для обычного скрипта, и до размера 24*24 для скрипта 150%.</p>]]></content>
			<author>
				<name><![CDATA[egor95]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=39356</uri>
			</author>
			<updated>2018-07-05T15:10:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=126694#p126694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=116300#p116300" />
			<content type="html"><![CDATA[<p><strong>Ядрён</strong><br />Для работы вашего скрипта требуются права администратора, т.к. запись в реестр идет в раздел HKLM. Для скриптов имхо лучший выбор - ini-файл.<br />Не отображается раскладка для консольных программ. В теме есть функция для этого.<br />В один из запусков флажок перемещался рывками, а потом вообще пропал. Догадался посмотреть в реестре, оказалось, что у xdirectory было значение -30, хотя за пределы экрана флажок ни разу не перемещался.</p><p>А вообще это попытка улучшить скрипт с 1-й страницы? Согласен с <strong>Flasher</strong>, что интереснее варианты с привязкой индикатора к текстовому курсору (каретке). Есть ряд таких программ и скрипт. Общий недостаток - они не отображают индикатор, если из приложения нельзя получить координаты каретки, хотя в этом случае по идее нужно просто определять координаты контрола выше по иерархии и выводить относительно его координат.</p>]]></content>
			<author>
				<name><![CDATA[monsoon]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=6758</uri>
			</author>
			<updated>2017-06-01T08:36:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=116300#p116300</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=116222#p116222" />
			<content type="html"><![CDATA[<p>Доброго времени суток. Вот дописал скрипт из примеров выше , получилось замечательно . Индикатор флаг передвигается в любой участок экрана , при выходе сохраняет позицию индикатора, флаг значок в трее . Всё бы было замечательно но в играх блокируются кнопки &quot;Lbutton&quot; и &quot;Rbutton&quot; , и не пойму почему в окнах в программах работают а в играх нет . Подскажите пожалуйста почему так происходит ?<br /></p><div class="codebox"><pre><code>#NoEnv
#Singleinstance, force
SetWorkingDir, %A_ScriptDir%/res
SetBatchLines,-1
CoordMode,Mouse,Screen
CoordMode,tooltip,Screen
CoordMode,Caret,Screen
SetKeyDelay,0
SetWinDelay,20
OnExit, Exit

RegRead, xxxx, HKEY_LOCAL_MACHINE, SOFTWARE\Scriptss, xdirectory
RegRead, yyyy, HKEY_LOCAL_MACHINE, SOFTWARE\Scriptss, ydirectory

if (xxxx=&quot;&quot;)
{
  xxxx=555
  RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Scriptss, xdirectory, %xxxx%
}
if (yyyy=&quot;&quot;)
{
  yyyy=111
  RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Scriptss, ydirectory, %yyyy%
}

Gui, +hwndhGui +AlwaysOnTop -Caption +ToolWindow +LastFound 
Gui, Add, Picture, x0 y0 w20 h16  vStatic1, Ru1.png  
 Gui, Add, Picture, x0 y0 w20 h16 vStatic2, En1.png   
Gui, Show, x%xxxx% y%yyyy% h16 w20 NA, lang053



hGui:=WinExist()


loop
{
   MouseGetPos,,,mwin
   oldlang:=lang
   lang:=InputLayout()
   if (oldlang!=lang)
   If (lang = &quot;Russian&quot;)
   {
    Menu, Tray, Icon, Ru.ico, 1, 1
GuiControl, hide, static2
    GuiControl, Show, static1 

   }
   Else If (lang = &quot;English&quot;)
   {
    Menu, Tray, Icon, En.ico, 1, 1
GuiControl, hide, static1
      GuiControl, Show, static2

   }
   Gui, +hwndhGui +AlwaysOnTop -Caption +ToolWindow +LastFound
   sleep, 50
}



#if (mwin=hGui)

*~$lbutton::
 
MoveWin(hGui)


return



#if

MoveWin(hwnd,key=&quot;lbutton&quot;)
{
  MouseGetPos,oldmmx,oldmmy
  while GetKeyState(key,&quot;P&quot;)

  {
    sleep,10
    MouseGetPos,mmx,mmy
    WinGetPos,wx,wy,ww,wh,ahk_id %hwnd%
    wx:=wx+mmx-oldmmx
    wy:=wy+mmy-oldmmy
    WinMove,ahk_id %hwnd%,,%wx%,%wy%
    oldmmx:=mmx
    oldmmy:=mmy

  }


  return

}

InputLayout()
{
    WinGetClass, Class, % &quot;ahk_id&quot; hID := WinExist(&quot;A&quot;)
    if !id := DllCall(&quot;GetWindow&quot;, Ptr, hid, UInt, GW_OWNER := 4, Ptr)
      id:=hID
    ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Int&quot;, id, &quot;Int&quot;, 0)
    HKL := DllCall(&quot;GetKeyboardLayout&quot;, &quot;uint&quot;, ThreadID, &quot;UShort&quot;)
    VarSetCapacity(sKbd, 260, 0)
    DllCall(&quot;GetLocaleInfo&quot;, &quot;uint&quot;, HKL
                           , &quot;uint&quot;, 0x1001
                           , &quot;str&quot;,  sKbd
                           , &quot;uint&quot;, 260)
    Return sKbd
}


Exit:
 DllCall(&quot;SystemParametersInfo&quot;, UInt, &quot;0x57&quot;, UInt, 0, UInt, 0, UInt, 0) 
IfWinExist, lang053
{
    WinGetPos, xxxx, yyyy 
   
}

RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Scriptss, xdirectory, %xxxx%
     sleep, 60
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Scriptss, ydirectory, %yyyy%
         sleep, 60 

  Exitapp</code></pre></div><p>Папка с флагами прилагается ниже.</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-05-29T19:33:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=116222#p116222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115332#p115332" />
			<content type="html"><![CDATA[<p><strong>Ядрён</strong><br />Гораздо лучше иметь индикатор у текстового курсора как в Curlyt, чем у мышиного указателя, ибо нет понимания что происходит при вводе текста, а не при движении мыши, тем более когда указатель скрыт.</p><p>Нужно отметить, что этот код отдельно от прилагаемых файлов не работает, хотя тот же ini можно было бы создавать автоматически, как это принято. Также код блокирует Ctrl. Удивительно, что такое нельзя было сразу заметить.<br />Вообще код на публичный не претендует. Мало кому понравится, когда их привычный указатель вдруг превратиться в багряную мигалку, которая после выхода из скрипта может отображаться вплоть до восстановления (через <em>control main.cpl,,1</em>).</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2017-04-26T04:30:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115332#p115332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Маленький индикатор раскладки в любом участке экрана]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=115314#p115314" />
			<content type="html"><![CDATA[<p>Всё разобрался . Забыл подставить &quot;x&quot; &quot;y&quot;.</p><div class="codebox"><pre><code>Gui, Show, %xPoss% %yPoss% h16 w20 NA,lang053</code></pre></div><p>Вот готовый код.<br /></p><div class="codebox"><pre><code> 
#NoEnv
#Persistent
#Singleinstance, force
SetWorkingDir, %A_ScriptDir%/res
SetBatchLines,-1
CoordMode,Mouse,Screen
CoordMode,tooltip,Screen
CoordMode,Caret,Screen
SetKeyDelay, -1, -1
SetWinDelay,20
 OCR_IBEAM := 32513, OCR_NORMAL := 32512, OCR_APPSTARTING := 32650,OCR_HAND := 32649,OCR_WAIT := 32514
SetTimer, LocaleWatch, 100

   IniRead, xxxx, Position.ini, xdirectory, xxxx
   IniRead, yyyy, Position.ini, ydirectory, yyyy

Gui, +AlwaysOnTop -Caption +ToolWindow +LastFound 
Gui, Add, Picture, x0 y0 w20 h16  vStatic1, Ru1.png  
 Gui, Add, Picture, x0 y0 w20 h16 vStatic2, En1.png   
Gui, Show, x%xxxx% y%yyyy% h16 w20 NA,lang053

 Menu, Tray, NoStandard
Menu, Tray, Add, Выход, sub3

hGui:=WinExist()

loop
{

   MouseGetPos,,,mwin
   oldlang:=lang
   lang:=InputLayout()
   if (oldlang!=lang)
   If (lang = &quot;Russian&quot;)
   {
    Menu, Tray, Icon, Ru.ico, 1, 1
GuiControl, hide, static2
    GuiControl, Show, static1 

   }
   Else If (lang = &quot;English&quot;)
   {
    Menu, Tray, Icon, En.ico, 1, 1
GuiControl, hide, static1
      GuiControl, Show, static2

   }
   Gui, +AlwaysOnTop -Caption +ToolWindow +LastFound
   sleep, 50
}

#if (mwin=hGui)
lbutton::
MoveWin(hGui)
return
#if

MoveWin(hwnd,key=&quot;lbutton&quot;)
{
  MouseGetPos,oldmmx,oldmmy
  while GetKeyState(key,&quot;P&quot;)
  {
    sleep,10
    MouseGetPos,mmx,mmy
    WinGetPos,wx,wy,ww,wh,ahk_id %hwnd%
    wx:=wx+mmx-oldmmx
    wy:=wy+mmy-oldmmy
    WinMove,ahk_id %hwnd%,,%wx%,%wy%
    oldmmx:=mmx
    oldmmy:=mmy
  }
  return
}

InputLayout()
{
    WinGetClass, Class, % &quot;ahk_id&quot; hID := WinExist(&quot;A&quot;)
    if !id := DllCall(&quot;GetWindow&quot;, Ptr, hid, UInt, GW_OWNER := 4, Ptr)
      id:=hID
    ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Int&quot;, id, &quot;Int&quot;, 0)
    HKL := DllCall(&quot;GetKeyboardLayout&quot;, &quot;uint&quot;, ThreadID, &quot;UShort&quot;)
    VarSetCapacity(sKbd, 260, 0)
    DllCall(&quot;GetLocaleInfo&quot;, &quot;uint&quot;, HKL
                           , &quot;uint&quot;, 0x1001
                           , &quot;str&quot;,  sKbd
                           , &quot;uint&quot;, 260)
    Return sKbd
}


$sc1D::
If DllCall(&quot;GetKeyboardLayout&quot;, &quot;Int&quot;, DllCall(&quot;GetWindowThreadProcessId&quot;, &quot;Int&quot;, WinExist(&quot;A&quot;), &quot;Int&quot;, &quot;0&quot;))=0x4190419
{
ControlGetFocus, CtrlFocus, % &quot;ahk_id&quot; WinExist(&quot;A&quot;)
PostMessage, 0x50, 0, 0x4090409, %CtrlFocus% ;английский
}
else
{
ControlGetFocus, CtrlFocus, % &quot;ahk_id&quot; WinExist(&quot;A&quot;)
PostMessage, 0x50, 0, 0x4190419, %CtrlFocus% ;русский
}
return


LocaleWatch:

   MouseGetPos,,, WinID
   ThreadID := DllCall(&quot;GetWindowThreadProcessId&quot;, UInt, WinID, UInt, 0)
   InputLocaleID := DllCall(&quot;GetKeyboardLayout&quot;, UInt, ThreadID)
  if (InputLocaleID = Prev_InputLocaleID)  
Return
 

   bool := (InputLocaleID = 0x4090409)
   hArrow	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, (bool ? &quot;EN&quot; : &quot;RU&quot;) . &quot;_ARROW.ani&quot;)
   hIbeam	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, (bool ? &quot;EN&quot; : &quot;RU&quot;) . &quot;_IBEAM.ani&quot;)
   hAPPSTARTING	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, (bool ? &quot;EN&quot; : &quot;RU&quot;) . &quot;_APPSTARTING.ani&quot;)
   hWAIT	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, (bool ? &quot;EN&quot; : &quot;RU&quot;) . &quot;_WAIT.ani&quot;)
   hHAND	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, (bool ? &quot;EN&quot; : &quot;RU&quot;) . &quot;_HAND.ani&quot;)

   DllCall(&quot;SetSystemCursor&quot;, UInt, hArrow, Int,	OCR_NORMAL)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hIbeam, Int,	OCR_IBEAM)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hAPPSTARTING, Int,	OCR_APPSTARTING)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hWAIT, Int,		OCR_WAIT)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hHAND, Int,		OCR_HAND)

   Prev_InputLocaleID := InputLocaleID
   Return

   hArrow	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, &quot;GR_ARROW.ani&quot;)
   hIbeam	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, &quot;GR_IBEAM.ani&quot;)
   hAPPSTARTING	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, &quot;GR_APPSTARTING.ani&quot;)
   hWAIT	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, &quot;GR_WAIT.ani&quot;)
   hHAND	:= DllCall(&quot;LoadCursorFromFile&quot;, Str, &quot;GR_HAND.ani&quot;)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hArrow, Int,	OCR_NORMAL)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hIbeam, Int,	OCR_IBEAM)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hAPPSTARTING, Int,	OCR_APPSTARTING)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hWAIT, Int,		OCR_WAIT)
   DllCall(&quot;SetSystemCursor&quot;, UInt, hHAND, Int,		OCR_HAND)
	Prev_InputLocaleID := 1


sub3:
DllCall(&quot;SystemParametersInfo&quot;, UInt, &quot;0x57&quot;, UInt, 0, UInt, 0, UInt, 0) 
IfWinExist, lang053
{
    WinGetPos, xxxx, yyyy ; Использует окно, найденное выше.
   
}
IniWrite, %xxxx%, Position.ini, xdirectory, xxxx
IniWrite, %yyyy%, Position.ini, ydirectory, yyyy
sleep, 60
  Exitapp</code></pre></div><p>С флагами готовый скрипт здесь.</p>]]></content>
			<author>
				<name><![CDATA[Ядрён]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30092</uri>
			</author>
			<updated>2017-04-25T19:41:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=115314#p115314</id>
		</entry>
</feed>
