<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AU3: Коллекция скриптов и идей AutoIT.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9853&amp;type=atom" />
	<updated>2014-07-31T05:40:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9853</id>
		<entry>
			<title type="html"><![CDATA[Re: AU3: Коллекция скриптов и идей AutoIT.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85492#p85492" />
			<content type="html"><![CDATA[<p>Очень хорошие уроки по AutoIT на Английском. <br />- <a href="http://www.youtube.com/watch?v=82ifMPijghw&amp;list=PL1DCD109B801D0DE6&amp;index=1">http://www.youtube.com/watch?v=82ifMPij … mp;index=1</a></p>]]></content>
			<author>
				<name><![CDATA[Selja8]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32415</uri>
			</author>
			<updated>2014-07-31T05:40:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85492#p85492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AU3: Коллекция скриптов и идей AutoIT.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85491#p85491" />
			<content type="html"><![CDATA[<p>У самого пока что почти ничего не получается, но я стараюсь.<br />Очень легко далась автоматизация установки приложений. (Описание в HELP-е по AU3.).</p>]]></content>
			<author>
				<name><![CDATA[Selja8]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32415</uri>
			</author>
			<updated>2014-07-31T04:26:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85491#p85491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AU3: Коллекция скриптов и идей AutoIT.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85432#p85432" />
			<content type="html"><![CDATA[<p>Rundll32:<br /><a href="http://dx21.com/coding/libraries/rundll32/default.aspx">http://dx21.com/coding/libraries/rundll32/default.aspx</a></p>]]></content>
			<author>
				<name><![CDATA[Selja8]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32415</uri>
			</author>
			<updated>2014-07-30T10:07:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85432#p85432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AU3: Коллекция скриптов и идей AutoIT.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85431#p85431" />
			<content type="html"><![CDATA[<p>В помощь разработчикам:<br /><a href="https://yadi.sk/d/ed0zTkOXYSnen">https://yadi.sk/d/ed0zTkOXYSnen</a><br />WIN_API - Русский HELP.</p>]]></content>
			<author>
				<name><![CDATA[Selja8]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32415</uri>
			</author>
			<updated>2014-07-30T10:05:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85431#p85431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AU3: Коллекция скриптов и идей AutoIT.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85424#p85424" />
			<content type="html"><![CDATA[<p>В архиве имеется:<br />&nbsp; -Последняя версия Autoit3;<br />&nbsp; -Русскоязычный HELP;<br />&nbsp; -Редактор SciTE; Который оптимизирует написание ваших скриптов.<br />&nbsp; -Огромная UDF библиотека;<br />+BONUS: Музыкальный плеер с кучей возможностей, написанный на AU3.<br />***<a href="https://yadi.sk/d/U_zJUib_YS4UY">https://yadi.sk/d/U_zJUib_YS4UY</a>***</p>]]></content>
			<author>
				<name><![CDATA[Selja8]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32415</uri>
			</author>
			<updated>2014-07-30T08:03:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85424#p85424</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AU3: Коллекция скриптов и идей AutoIT.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=85421#p85421" />
			<content type="html"><![CDATA[<p>Вот первый скрипт - он же модуль.<br />Получаем процессы с путями. <br />Имеется возможность копирования в буфер пути выполняемого процесса.<br />Скрипт не мой.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#include &lt;Array.au3&gt; 
 
;============= Example with default usage ============= 
$aProcListEx = _ProcessListEx() 
 
If @error Then 
    MsgBox(48, &quot;_ProcessListEx - Error&quot;, StringFormat(&quot;There was an error to get ProcessList (@error = %i)&quot;, @error)) 
Else 
    _ArrayDisplay($aProcListEx, &quot;_ProcessListEx Demo (All Processes)&quot;) 
EndIf 
;============= Example with default usage ============= 
 
;============= Example with Resource Name usage ============= 
$aAutoItProcList = _ProcessListEx(&quot;CompiledScript&quot;, &quot;AutoIt&quot;, 0) 
 
If @error Then 
    MsgBox(48, &quot;_ProcessListEx - Error&quot;, StringFormat(&quot;There was an error to get ProcessList (@error = %i)&quot;, @error)) 
Else 
    _ArrayDisplay($aAutoItProcList, &quot;_ProcessListEx Demo (AutoIt Processes)&quot;) 
EndIf 
;============= Example with Resource Name usage ============= 
 
;===============================================================================
; 
; Function Name:           _ProcessListEx() 
; 
; Function Description:    Gets Process List with extended info, plus can retrieve only a processes with specific resources strings. 
; 
; Parameter(s):            $sResourceName [Optional] - Resource name of the process filename, i.e. &quot;CompiledScript&quot;. 
;                          $sInResString [Optional] - String to check in the resource name. 
;                          $iWholeWord [Optional] - Defines if the $sInResString will be compared as whole string (default is 1). 
; 
; Requirement(s):          None. 
; 
; Return Value(s):         On Success -  Return 2-dimentional array, where: 
;                                                                   $aRet_List[0][0] = Total processes (array elements). 
;                                                                   $aRet_List[N][0] = Process Name. 
;                                                                   $aRet_List[N][1] = PID (Process ID). 
;                                                                   $aRet_List[N][2] = Process File Path. 
;                          On Failure -  Return &#039;&#039; (empty string) and set @error to: 
;                                                                   1 - Unable to Open Kernel32.dll. 
;                                                                   2 - Unable to Open Psapi.dll. 
;                                                                   3 - No Processes Found. 
; 
; Author(s):               G.Sandler (a.k.a MrCreatoR) - CreatoR&#039;s Lab (http://creator-lab.ucoz.ru) 
; 
;===================================================================== 
Func _ProcessListEx($sResourceName=&quot;&quot;, $sInResString=&quot;&quot;, $iWholeWord=1) 
    Local $aProcList = ProcessList() 
    Local $hKernel32_Dll = DllOpen(&#039;Kernel32.dll&#039;), $hPsapi_Dll = DllOpen(&#039;Psapi.dll&#039;) 
    Local $aOpenProc, $aProcPath, $sFileVersion, $aRet_List[1][1] 
 
    If $hKernel32_Dll = -1 Then Return SetError(1, 0, &#039;&#039;) 
 
    If $hPsapi_Dll = -1 Then $hPsapi_Dll = DllOpen(@SystemDir &amp; &#039;\Psapi.dll&#039;) 
    If $hPsapi_Dll = -1 Then $hPsapi_Dll = DllOpen(@WindowsDir &amp; &#039;\Psapi.dll&#039;) 
    If $hPsapi_Dll = -1 Then Return SetError(2, 0, &#039;&#039;) 
 
    Local $vStruct      = DllStructCreate(&#039;int[1024]&#039;) 
    Local $pStructPtr   = DllStructGetPtr($vStruct) 
    Local $iStructSize  = DllStructGetSize($vStruct) 
 
    For $i = 1 To UBound($aProcList)-1 
        $aOpenProc = DllCall($hKernel32_Dll, &#039;hwnd&#039;, &#039;OpenProcess&#039;, _ 
            &#039;int&#039;, BitOR(0x0400, 0x0010), &#039;int&#039;, 0, &#039;int&#039;, $aProcList[$i][1]) 
 
        If Not IsArray($aOpenProc) Or Not $aOpenProc[0] Then ContinueLoop 
 
        DllCall($hPsapi_Dll, &#039;int&#039;, &#039;EnumProcessModules&#039;, _ 
            &#039;hwnd&#039;, $aOpenProc[0], _ 
            &#039;ptr&#039;, $pStructPtr, _ 
            &#039;int&#039;, $iStructSize, _ 
            &#039;int*&#039;, 0) 
 
        $aProcPath = DllCall($hPsapi_Dll, &#039;int&#039;, &#039;GetModuleFileNameEx&#039;, _ 
            &#039;hwnd&#039;, $aOpenProc[0], _ 
            &#039;int&#039;, DllStructGetData($vStruct, 1), _ 
            &#039;str&#039;, &#039;&#039;, _ 
            &#039;int&#039;, 2048) 
 
        DllCall($hKernel32_Dll, &#039;int&#039;, &#039;CloseHandle&#039;, &#039;int&#039;, $aOpenProc[0]) 
 
        If Not IsArray($aProcPath) Or StringLen($aProcPath[3]) = 0 Then ContinueLoop 
 
        $sFileVersion = FileGetVersion($aProcPath[3], $sResourceName) 
 
        If $sResourceName = &quot;&quot; Or $sFileVersion = $sInResString Or _ 
            ($iWholeWord = 0 And StringInStr($sFileVersion, $sInResString)) Then 
 
            $aRet_List[0][0] += 1 
            ReDim $aRet_List[$aRet_List[0][0]+1][3] 
            $aRet_List[$aRet_List[0][0]][0] = $aProcList[$i][0]     ;Process Name 
            $aRet_List[$aRet_List[0][0]][1] = $aProcList[$i][1]     ;PID (Process ID) 
            $aRet_List[$aRet_List[0][0]][2] = $aProcPath[3]         ;Process File Path 
        EndIf 
    Next 
 
    DllClose($hKernel32_Dll) 
    DllClose($hPsapi_Dll) 
 
    If $aRet_List[0][0] &lt; 1 Then Return SetError(3, 0, &#039;&#039;) 
    Return $aRet_List 
EndFunc</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[Selja8]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32415</uri>
			</author>
			<updated>2014-07-30T07:34:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=85421#p85421</id>
		</entry>
</feed>
