<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=10738&amp;type=atom" />
	<updated>2019-04-14T08:45:37Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=10738</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=133600#p133600" />
			<content type="html"><![CDATA[<p>Первое что попалось в поиске.</p><p>Editors with AutoHotkey Support:<br />SciTE4AutoHotkey (Smart auto-indent)</p><p><a href="https://www.autohotkey.com/boards/viewtopic.php?t=1778">AHK Auto Formatter?</a></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2019-04-14T08:45:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=133600#p133600</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=133595#p133595" />
			<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>2019-04-13T21:11:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=133595#p133595</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96229#p96229" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Язык программирования Кибор имеет Си образный синтаксис.</p></blockquote></div><p>Кибор - это язык, у него есть IDE заточенное соответственно только под него, причём тут вообще AutoHotkey?</p><div class="quotebox"><blockquote><p>Интегри́рованная среда́ разрабо́тки, IDE (англ. Integrated development environment) — система программных средств, используемая программистами для разработки программного обеспечения (ПО).</p></blockquote></div><p>Вам собственно каких программных средств нехватает?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-08-04T16:20:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96229#p96229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96228#p96228" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>NektoN95 пишет:</cite><blockquote><p>Имхо, для написания скриптов для ОС и приложений Кибор не шибко-то превосходит AHK по удобству и широте возможностей.</p></blockquote></div><p>Не понял.<br />Кибор - это IDE, а AHK - язык программирования.<br />Т.е. Вы сравниваете тёплое с пушистым.</p>]]></content>
			<author>
				<name><![CDATA[Доктор ТуамОсес]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31413</uri>
			</author>
			<updated>2015-08-04T16:04:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96228#p96228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96208#p96208" />
			<content type="html"><![CDATA[<p>Посты по поводу контекстного меню в отдельную тему бы перенести, а то оффтоп. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-08-04T07:00:11Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96208#p96208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96205#p96205" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Вот чего нашёл: Кибор - среда, специально заточенная для удобного написания скриптов для автоматизации действий на компьютере.</p></blockquote></div><p>Имхо, для написания скриптов для ОС и приложений Кибор не шибко-то превосходит AHK по удобству и широте возможностей.</p><p>P. S. Хотя в области ботописания для онлайн игр он впереди планеты всей благодаря функции анти-антикликера и возможности поиска движущихся обьектов...</p>]]></content>
			<author>
				<name><![CDATA[NektoN95]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32518</uri>
			</author>
			<updated>2015-08-04T04:06:11Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96205#p96205</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96203#p96203" />
			<content type="html"><![CDATA[<p>Не, во-первых, сам подход не годится — если меню будет снизу экрана, кнопка будет за экраном (да и почему именно кнопка, а не новый пункт меню?), и зачем добавлять в <em>каждое</em> меню?; во-вторых ещё и написано криво, явно содрано с какого-то древнего поста времён ahk-basic. В таких штуках желательно разобраться перед применением.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-08-04T00:23:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96203#p96203</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96198#p96198" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, я сделал что бы в каждое контекстное меню добавлялось своя кнопка и что бы она работало вот пример:<br /></p><div class="codebox"><pre><code>#SingleInstance Force
#Persistent
SetBatchLines,-1
Global bt
HookProcAdr := RegisterCallback( &quot;HookProc&quot;, &quot;F&quot; ), hWinEventHook := SetWinEventHook( 0x1, 0x17, 0, HookProcAdr, 0, 0, 0 )
SetWinEventHook(eventMin, eventMax, hmodWinEventProc, lpfnWinEventProc, idProcess, idThread, dwFlags) 
{
    DllCall(&quot;CoInitialize&quot;, Uint, 0)
    return DllCall(&quot;SetWinEventHook&quot;, Uint,eventMin    , Uint,eventMax    , Uint,hmodWinEventProc
    , Uint,lpfnWinEventProc, Uint,idProcess, Uint,idThread, Uint,dwFlags)    
}
HookProc( hWinEventHook, Event, hWnd, idObject, idChild, dwEventThread, dwmsEventTime )
{
if (Event = 6)
    {
    Winwait ahk_class #32768
    WinGetPos,x,y,w,h,ahk_id %hWnd%
    WinMove ahk_id %hWnd%,,%x%,%y%,%w%,% h+30
    Gui, Add, button,% &quot;w&quot; w &quot; h30 x0 y&quot; h &quot; Left HWNDh_bt&quot;,тест
    DllCall(&quot;SetParent&quot;, &quot;uint&quot;, h_bt, &quot;uint&quot;, hWnd)
    }
}

Getbt_32768(){
MouseGetPos, , ,id ,ctrl
if (WinExist(&quot;ahk_class #32768&quot;) = id) and !(ctrl=&quot;&quot;) and (bt:=ctrl)
    return 1
}
return


#if Getbt_32768()
Lbutton::msgbox % bt</code></pre></div><p>Конечно это не совсем контекстная кнопка а простая).</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-08-03T20:29:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96198#p96198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=96194#p96194" />
			<content type="html"><![CDATA[<p>Вот чего нашёл: <a href="http://forum.ixbt.com/topic.cgi?id=26:42796">Кибор - среда, специально заточенная для удобного написания скриптов для автоматизации действий на компьютере.</a></p>]]></content>
			<author>
				<name><![CDATA[Доктор ТуамОсес]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31413</uri>
			</author>
			<updated>2015-08-03T17:43:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=96194#p96194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=95104#p95104" />
			<content type="html"><![CDATA[<p>Всё проще оказалось. Меню &quot;умирает&quot;, когда скрипт завершает работу. Но определить его пункт, по которому кликнули, оказалось, можно и без Accessible:<br /></p><div class="codebox"><pre><code>hMyMenu := DllCall(&quot;CreateMenu&quot;)
DllCall(&quot;AppendMenu&quot;, Ptr, hMyMenu, UInt, MF_STRING := 0, UInt, &quot;&quot;, Str, &quot;Item 1&quot;)
DllCall(&quot;AppendMenu&quot;, Ptr, hMyMenu, UInt, MF_STRING := 0, UInt, &quot;&quot;, Str, &quot;Item 2&quot;)

if !hWnd := WinExist(&quot;ahk_class Notepad&quot;)  {
   Run, notepad.exe,,, PID
   WinWait, ahk_pid %PID%
   hWnd := WinExist(&quot;ahk_pid&quot; PID)
}
hMenu := DllCall(&quot;GetMenu&quot;, Ptr, hWnd, Ptr)
DllCall(&quot;AppendMenu&quot;, Ptr, hMenu, UInt, MF_POPUP := 0x10, Ptr, hMyMenu, Str, &quot;MyMenu&quot;)
DllCall(&quot;DrawMenuBar&quot;, Ptr, hWnd)
WinActivate
Return

~LButton::
   DllCall(&quot;GetCursorPos&quot;, Int64P, POINT)
   res := DllCall(&quot;MenuItemFromPoint&quot;, Ptr, hWnd, Ptr, hMyMenu, Int64, POINT)
   if (res &gt;= 0)
      MsgBox, % res + 1
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-07-08T13:57:55Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=95104#p95104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=95093#p95093" />
			<content type="html"><![CDATA[<p>Acc не видит пункты в этом искусственном меню.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;MyMenu</div><div class="fancy_spoiler"><p><span class="postimg"><img src="http://i.imgur.com/xiwaOum.jpg" alt="http://i.imgur.com/xiwaOum.jpg" /></span></p></div></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;любой другой</div><div class="fancy_spoiler"><p><span class="postimg"><img src="http://i.imgur.com/Za2W8Po.jpg" alt="http://i.imgur.com/Za2W8Po.jpg" /></span></p></div></div><p>Следственно и мой скрипт не сможет их определить.</p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-07-08T09:54:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=95093#p95093</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=95082#p95082" />
			<content type="html"><![CDATA[<p>Но лучше так:<br /></p><div class="codebox"><pre><code>hSubmenu := DllCall(&quot;CreateMenu&quot;)
DllCall(&quot;AppendMenu&quot;, Ptr, hSubmenu, UInt, MF_STRING := 0, UInt, &quot;&quot;, Str, &quot;Item 1&quot;)
DllCall(&quot;AppendMenu&quot;, Ptr, hSubmenu, UInt, MF_STRING := 0, UInt, &quot;&quot;, Str, &quot;Item 2&quot;)

if !hWnd := WinExist(&quot;ahk_class Notepad&quot;)  {
   Run, notepad.exe,,, PID
   WinWait, ahk_pid %PID%
   hWnd := WinExist(&quot;ahk_pid&quot; PID)
}
hMenu := DllCall(&quot;GetMenu&quot;, Ptr, hWnd, Ptr)
DllCall(&quot;AppendMenu&quot;, Ptr, hMenu, UInt, MF_POPUP := 0x10, Ptr, hSubmenu, Str, &quot;MyMenu&quot;)
DllCall(&quot;DrawMenuBar&quot;, Ptr, hWnd)
WinActivate</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-07-07T23:28:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=95082#p95082</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=95075#p95075" />
			<content type="html"><![CDATA[<p>Ну, всему сразу не научишься. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> <strong>yalanne</strong>, там у вас используется функция <em>GetSystemMenu</em>. По её названию можно понять, что речь идёт о системном меню — это то, которое появляется, если кликнуть правой кнопкой по заголовку окна. В принципе, добавлять можно и туда, но оно редко используется. Лучше добавлять в обычный менюбар. Вот пример, добавляем дополнительный пункт со своим подменю в менюбар блокнота:<br /></p><div class="codebox"><pre><code>Menu, Submenu, Add, Item 1, Example
Menu, Submenu, Add, Item 2, Example
hSubmenu := GethMenu(&quot;Submenu&quot;)

if !hWnd := WinExist(&quot;ahk_class Notepad&quot;)  {
   Run, notepad.exe,,, PID
   WinWait, ahk_pid %PID%
   hWnd := WinExist(&quot;ahk_pid&quot; PID)
}
hMenu := DllCall(&quot;GetMenu&quot;, Ptr, hWnd, Ptr)
DllCall(&quot;AppendMenu&quot;, Ptr, hMenu, UInt, MF_POPUP := 0x10, Ptr, hSubmenu, Str, &quot;MyMenu&quot;)
DllCall(&quot;DrawMenuBar&quot;, Ptr, hWnd)
WinActivate
ExitApp

Example:
   Return

GethMenu(MenuName)
{
   Gui, New, +hwndhGui
   Menu, _MyMenuBar, Add, File, :%MenuName%
   Gui, Menu, _MyMenuBar
   hMenu := DllCall(&quot;GetMenu&quot;, Ptr, hGui, Ptr)
   hMenu := DllCall(&quot;GetSubMenu&quot;, Ptr, hMenu, Int, 0)
   Gui, Destroy
   Menu, _MyMenuBar, Delete, File
   Menu, _MyMenuBar, Delete
   Return hMenu
}</code></pre></div><p>Меню не пропадает после завершения работы скрипта. Однако метки срабатывать не будут.<br />Можно также добавлять пункты в уже существующие подменю, попозже напишу, если не разберётесь.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-07-07T19:59:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=95075#p95075</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=95074#p95074" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Так ты просто всё распиши, а за ним всё самое сложное, в коллекцию добавить не каждый сможет.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-07-07T19:44:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=95074#p95074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Всё про инструменты для AutoHotKey (макрорекордеры, IDE и т.п.)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=95072#p95072" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Gui, Show, w444 h444, % &quot; &quot;
Gui, +HWNDhGui +ReSize 
OnMessage(0x112, &quot;WM_SYSCOMMAND&quot;) 
  
hSysMenu := DllCall(&quot;GetSystemMenu&quot;, &quot;UInt&quot;, hGui, &quot;UInt&quot;, 0)      
DllCall(&quot;AppendMenu&quot;, &quot;UInt&quot;, hSysMenu, &quot;UInt&quot;, 0x00000800)   ; MF_SEPARATOR   
DllCall(&quot;AppendMenu&quot;, &quot;UInt&quot;, hSysMenu, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0x1001, &quot;Str&quot;, &quot;Item 1&quot;)    
DllCall(&quot;AppendMenu&quot;, &quot;UInt&quot;, hSysMenu, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0x1002, &quot;Str&quot;, &quot;Item 2&quot;)  
DllCall(&quot;AppendMenu&quot;, &quot;UInt&quot;, hSysMenu, &quot;UInt&quot;, 0, &quot;UInt&quot;, 0x1003, &quot;Str&quot;, &quot;Item 3&quot;)     
DllCall(&quot;DrawMenuBar&quot;, &quot;UInt&quot;, hGui)  
 
WM_SYSCOMMAND(wParam, lParam)
{ 
    If wParam between 0x1001 and 0x1003
    {  
        ToolTip % wParam
    }
}
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-07-07T19:30:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=95072#p95072</id>
		</entry>
</feed>
