<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; АНК: Массивы]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7092&amp;type=atom" />
	<updated>2014-02-05T19:16:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7092</id>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79791#p79791" />
			<content type="html"><![CDATA[<p>Спасибо!<br />Буду изучать.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-02-05T19:16:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79791#p79791</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79788#p79788" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Drives := [&quot;C&quot;, &quot;D&quot;, &quot;E&quot;]
DriveGet, List, List

Unconnected := &quot;&quot;
for k, v in Drives
   if !InStr(List, v)
      Unconnected .= v
   
MsgBox, % Unconnected</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-02-05T18:50:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79788#p79788</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79783#p79783" />
			<content type="html"><![CDATA[<p>Так мне не нужен список.<br />Мне нужен один и только в том случае если он сломался.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-02-05T14:39:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79783#p79783</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79782#p79782" />
			<content type="html"><![CDATA[<p>DriveGet как раз выдает список дисков.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-02-05T14:15:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79782#p79782</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79781#p79781" />
			<content type="html"><![CDATA[<p>Непонятно, чем мне эта команда может помочь.<br />При запуске системы скрипт проверяет наличие определенных дисков и если один из них не загрузился выдает сообщение, какой именно не загрузился.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-02-05T13:57:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79781#p79781</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79776#p79776" />
			<content type="html"><![CDATA[<p><a href="http://ahkscript.org/docs/commands/DriveGet.htm">DriveGet</a></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-02-05T12:26:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79776#p79776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79775#p79775" />
			<content type="html"><![CDATA[<p>Проверяет на наличие дисков.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-02-05T12:02:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79775#p79775</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79773#p79773" />
			<content type="html"><![CDATA[<p>А задача-то какая? Что приведенный код делает, непонятно.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-02-05T11:55:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79773#p79773</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79770#p79770" />
			<content type="html"><![CDATA[<p>Помогите, пожалуйста, перевести в массивы, а то я не понимаю принцип работы с ними.<br /></p><div class="codebox"><pre><code>If !FileExist(&quot;С:\&quot;)
   disk := &quot;С&quot;
If !FileExist(&quot;D:\&quot;)
   disk := &quot;D&quot;
If !FileExist(&quot;E:\&quot;)
   disk := &quot;E&quot;
If disk !=
   msgbox, disk %disk% error!
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-02-05T01:51:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79770#p79770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59596#p59596" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Indomito пишет:</cite><blockquote><p>По сути то AHK это же не С++...</p></blockquote></div><p>AHK - это скриптовый язык, а C++ - язык программирования.</p>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-04-20T18:33:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59596#p59596</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59591#p59591" />
			<content type="html"><![CDATA[<p>Да, не то.<br />По сути то AHK это же не С++... я про то что много от AHK хочу <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-20T18:12:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59591#p59591</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59590#p59590" />
			<content type="html"><![CDATA[<p>Думаю, что нет. Если только так, но это уже не то...:</p><div class="codebox"><pre><code>rv:=fnHotKeyOnOff(,, &quot;sasa1&quot;, &quot;sasa2&quot;)
Array:=[&quot;tata1&quot;, &quot;tata2&quot;, &quot;tata3&quot;]
Array2:={1:&quot;black&quot;      ,  2:&quot;notmergepen&quot;
      ,  3:&quot;masknotpen&quot; ,  4:&quot;notcopypen&quot;
      ,  5:&quot;maskpennot&quot; ,  6:&quot;not&quot;
      ,  7:&quot;xorpen&quot;     ,  8:&quot;notmaskpen&quot;
      ,  9:&quot;maskpen&quot;    , 10:&quot;notxorpen&quot;
      , 12:&quot;mergenotpen&quot;, 13:&quot;copypen&quot;
      , 14:&quot;mergepennot&quot;, 15:&quot;mergepen&quot;
      , 16:&quot;white&quot;}

MsgBox, 262144
      , % &quot; &quot;SubStr(rv.=&quot;`n&quot;fnHotKeyOnOff(Array2
                                        , False
                                        , Array*)
                                        , 151)
      , % rv &quot;`n&quot;Array2

fnHotKeyOnOff(ByRef Result=&quot;&quot;, fSw=True, vIsArr*)
{
   Loop, % vIsArr.GetCapacity()
      ReturnValue.=&quot;index: &quot;A_Index &quot;, fSw: &quot;fSw
                 . &quot;`nvalue: &quot;vIsArr[A_Index]&quot;`n&quot;
   For Key, Value In Result
      Result.=Key &quot;, &quot;Value &quot;`n&quot;
   Return, ReturnValue
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-04-20T18:08:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59590#p59590</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59579#p59579" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Grey пишет:</cite><blockquote><p>P.S.: Я бы избавился бы ещё от лишних переменных, и не нужных Return&#039;ов:</p></blockquote></div><p>я просто тестировал &quot;<strong>*</strong>&quot; дальше всё будет иначе.</p><p>Да, вопрос... ещё. А больше одного объекта-массива передать нельзя?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-20T05:23:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59579#p59579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59578#p59578" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Indomito пишет:</cite><blockquote><p>Всё правильно написано?</p></blockquote></div><p>Да <em>ровно</em> всё. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><p>P.S.: Я бы избавился ещё от лишних переменных, и не нужных Return&#039;ов:</p><div class="codebox"><pre><code>fnHotKeyOnOff(, &quot;sasa1&quot;
              , &quot;sasa2&quot;
              , &quot;sasa3&quot;
              , &quot;sasa4&quot;
              , &quot;sasa5&quot;)
vTmpArr:=[&quot;tata1&quot;, &quot;tata2&quot;, &quot;tata3&quot;]
fnHotKeyOnOff(False, vTmpArr*)

fnHotKeyOnOff(fSw=True, vIsArr*)
{
   Loop, % vIsArr.GetCapacity()
      MsgBox, 262144
            , % &quot;index: &quot;A_Index &quot;, fSw: &quot;fSw
            , % vIsArr[A_Index],1
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2012-04-20T05:21:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59578#p59578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: АНК: Массивы]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=59574#p59574" />
			<content type="html"><![CDATA[<p>Вопрос <em>&quot;с моей стороны&quot;</em>.</p><p>Значения по умолчанию и передача массива в виде аргумента функции.<br /></p><div class="codebox"><pre><code>fnHotKeyOnOff(,&quot;sasa1&quot;,&quot;sasa2&quot;)
;или
vTmpArr := [&quot;tata1&quot;,&quot;tata2&quot;,&quot;tata3&quot;]
fnHotKeyOnOff(false,vTmpArr*)
return
;---------------------------------------
fnHotKeyOnOff(fSw = true, vIsArr*)
{
  msgbox %fSw%
  vLoop := vIsArr.MaxIndex()
  i := 1
  loop %vLoop%
  {
  a := vIsArr[i]
  msgbox %a%
  i++
  }
return
}</code></pre></div><p>Всё правильно написано? <br />Я знаю что передать сначала должны быть простые аргументы, а уж потом <span class="bbu">variadic functions parameters</span>(*).</p><p>P.S. Да, всё работает, но мало ли...</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2012-04-20T03:35:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=59574#p59574</id>
		</entry>
</feed>
