<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11314&amp;type=atom" />
	<updated>2016-02-11T15:34:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11314</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка на почту мешает обновлять текстовый документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101019#p101019" />
			<content type="html"><![CDATA[<p>Решил проблему. Просто добавил после отправки на почту вот это<br /></p><div class="codebox"><pre><code>pmsg :=  &quot;&quot;</code></pre></div><p>Короче освободил объект</p>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2016-02-11T15:34:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101019#p101019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Отправка на почту мешает обновлять текстовый документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101015#p101015" />
			<content type="html"><![CDATA[<p>Добавил в код что бы перед отправкой на почту скопировать созданный текстовый документ в другое место и только что скопированный документ отправлять. <br />В итоге в оригинале текстового документа текст добавляется, а в копии(которую отправляю) нет.<br />После отправки документа на почту попытался вручную скопировать и&nbsp; не получилось, выбило ошибку что папка уже используется...</p><div class="codebox"><pre><code>#Persistent
WaitUrl := &quot;http://www.mts.ua/ua/online-services/send-sms&quot;
WaitUrl2 := &quot;http://www.mts.ua/ua/online-services/send-sms/&quot;

SetTimer, waitsendsms, 500
SetTimer, whenmatch, off
return

waitsendsms:
	sURL := GetActiveBrowserURL()
	If (sURL != &quot;&quot;)

	if (WaitUrl = sURL or WaitUrl2 = sURL)
      {
          FileAppend, 1111`n, log.txt
          SetTimer, whenmatch, 500
          SetTimer, waitsendsms, off
      }
  else
      {

      }
return


whenmatch:
	sURL2 := GetActiveBrowserURL()
	If (sURL2 != &quot;&quot;)

	if (WaitUrl = sURL2 or WaitUrl2 = sURL2)
      {

      }
   else
      {
          FileCopy, D:\к\Недоделаные\firefox\log.txt, D:\Games\, 1


          sFrom     := &quot;...@gmail.com&quot;
          sTo       := &quot;...@gmail.com&quot;
          sSubject  := &quot;пытаюсь прикрепить&quot;
          sBody     := &quot;Привет. Вышло или нет?&quot;
          sAttach   := &quot;Тут путь к скопированому текстовому документу&quot;

          sServer   := &quot;smtp.gmail.com&quot; ; specify your SMTP server
          nPort     := 465 ; 25
          bTLS      := True ; False
          nSend     := 2   ; cdoSendUsingPort
          nAuth     := 1   ; cdoBasic
          sUsername := &quot;...@gmail.com&quot;
          sPassword := &quot;...&quot;
          pmsg :=   ComObjCreate(&quot;CDO.Message&quot;)
          pcfg :=   pmsg.Configuration
          pfld :=   pcfg.Fields

          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) := nSend
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&quot;) := 60
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserver&quot;) := sServer
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserverport&quot;) := nPort
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpusessl&quot;) := bTLS
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&quot;) := nAuth
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusername&quot;) := sUsername
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendpassword&quot;) := sPassword
          pfld.Update()

          pmsg.From := sFrom
          pmsg.To := sTo
          pmsg.Subject := sSubject
          pmsg.TextBody := sBody
          Loop, Parse, sAttach, |, %A_Space%%A_Tab%
            pmsg.AddAttachment(A_LoopField)
          pmsg.Send()



          SetTimer, waitsendsms, 500
          SetTimer, whenmatch, off
   }
return






 
GetActiveBrowserURL() {
	WinGetClass, sClass, A
	If sClass In Chrome_WidgetWin_1,Chrome_WidgetWin_0,Maxthon3Cls_MainFrm
		Return GetBrowserURL_ACC(sClass)
	Else
		Return GetBrowserURL_DDE(sClass) ; empty string if DDE not supported (or not a browser)
}
 
; &quot;GetBrowserURL_DDE&quot; adapted from DDE code by Sean, (AHK_L version by maraskan_user)
; Found at http://autohotkey.com/board/topic/17633-/?p=434518
 
GetBrowserURL_DDE(sClass) {
	WinGet, sServer, ProcessName, % &quot;ahk_class &quot; sClass
	StringTrimRight, sServer, sServer, 4
	iCodePage := A_IsUnicode ? 0x04B0 : 0x03EC ; 0x04B0 = CP_WINUNICODE, 0x03EC = CP_WINANSI
	DllCall(&quot;DdeInitialize&quot;, &quot;UPtrP&quot;, idInst, &quot;Uint&quot;, 0, &quot;Uint&quot;, 0, &quot;Uint&quot;, 0)
	hServer := DllCall(&quot;DdeCreateStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;Str&quot;, sServer, &quot;int&quot;, iCodePage)
	hTopic := DllCall(&quot;DdeCreateStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;Str&quot;, &quot;WWW_GetWindowInfo&quot;, &quot;int&quot;, iCodePage)
	hItem := DllCall(&quot;DdeCreateStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;Str&quot;, &quot;0xFFFFFFFF&quot;, &quot;int&quot;, iCodePage)
	hConv := DllCall(&quot;DdeConnect&quot;, &quot;UPtr&quot;, idInst, &quot;UPtr&quot;, hServer, &quot;UPtr&quot;, hTopic, &quot;Uint&quot;, 0)
	hData := DllCall(&quot;DdeClientTransaction&quot;, &quot;Uint&quot;, 0, &quot;Uint&quot;, 0, &quot;UPtr&quot;, hConv, &quot;UPtr&quot;, hItem, &quot;UInt&quot;, 1, &quot;Uint&quot;, 0x20B0, 

&quot;Uint&quot;, 10000, &quot;UPtrP&quot;, nResult) ; 0x20B0 = XTYP_REQUEST, 10000 = 10s timeout
	sData := DllCall(&quot;DdeAccessData&quot;, &quot;Uint&quot;, hData, &quot;Uint&quot;, 0, &quot;Str&quot;)
	DllCall(&quot;DdeFreeStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;UPtr&quot;, hServer)
	DllCall(&quot;DdeFreeStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;UPtr&quot;, hTopic)
	DllCall(&quot;DdeFreeStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;UPtr&quot;, hItem)
	DllCall(&quot;DdeUnaccessData&quot;, &quot;UPtr&quot;, hData)
	DllCall(&quot;DdeFreeDataHandle&quot;, &quot;UPtr&quot;, hData)
	DllCall(&quot;DdeDisconnect&quot;, &quot;UPtr&quot;, hConv)
	DllCall(&quot;DdeUninitialize&quot;, &quot;UPtr&quot;, idInst)
	csvWindowInfo := StrGet(&amp;sData, &quot;CP0&quot;)
	StringSplit, sWindowInfo, csvWindowInfo, `&quot; ; &quot; ; this comment is here just to fix a syntax highlighting bug
	Return sWindowInfo2
}
 
GetBrowserURL_ACC(sClass) {
	global nWindow, accAddressBar
	If (nWindow != WinExist(&quot;ahk_class &quot; sClass)) ; reuses accAddressBar if it&#039;s the same window
	{
		nWindow := WinExist(&quot;ahk_class &quot; sClass)
		accAddressBar := GetAddressBar(Acc_ObjectFromWindow(nWindow))
	}
	Try sURL := accAddressBar.accValue(0)
	If (sURL == &quot;&quot;) {
		WinGet, nWindows, List, % &quot;ahk_class &quot; sClass ; In case of a nested browser window as in CoolNovo
		If (nWindows &gt; 1) {
			accAddressBar := GetAddressBar(Acc_ObjectFromWindow(nWindows2))
			Try sURL := accAddressBar.accValue(0)
		}
	}
	If ((sURL != &quot;&quot;) and (SubStr(sURL, 1, 4) != &quot;http&quot;)) ; Chromium-based browsers omit &quot;http://&quot;
		sURL := &quot;http://&quot; sURL
	Return sURL
}
 
; &quot;GetAddressBar&quot; based in code by uname
; Found at http://autohotkey.com/board/topic/103178-/?p=637687
 
GetAddressBar(accObj) {
	Try If ((accObj.accName(0) != &quot;&quot;) and IsURL(accObj.accValue(0)))
		Return accObj
	Try If ((accObj.accName(0) != &quot;&quot;) and IsURL(&quot;http://&quot; accObj.accValue(0))) ; Chromium omits &quot;http://&quot;
		Return accObj
	For nChild, accChild in Acc_Children(accObj)
		If IsObject(accAddressBar := GetAddressBar(accChild))
			Return accAddressBar
}
 
IsURL(sURL) {
	Return RegExMatch(sURL, &quot;^(?&lt;Protocol&gt;https?|ftp)://(?&lt;Domain&gt;(?:[\w-]+\.)+\w\w+)(?::(?&lt;Port&gt;\d+))?/?(?&lt;Path&gt;(?:[^:/?# 

]*/?)+)(?:\?(?&lt;Query&gt;[^#]+)?)?(?:\#(?&lt;Hash&gt;.+)?)?$&quot;)
}
 
; The code below is part of the Acc.ahk Standard Library by Sean (updated by jethrow)
; Found at http://autohotkey.com/board/topic/77303-/?p=491516
 
Acc_Init()
{
	static h
	If Not h
		h:=DllCall(&quot;LoadLibrary&quot;,&quot;Str&quot;,&quot;oleacc&quot;,&quot;Ptr&quot;)
}
Acc_ObjectFromWindow(hWnd, idObject = 0)
{
	Acc_Init()
	If DllCall(&quot;oleacc\AccessibleObjectFromWindow&quot;, &quot;Ptr&quot;, hWnd, &quot;UInt&quot;, idObject&amp;=0xFFFFFFFF, &quot;Ptr&quot;, -VarSetCapacity

(IID,16)+NumPut(idObject==0xFFFFFFF0?0x46000000000000C0:0x719B3800AA000C81,NumPut(idObject==0xFFFFFFF0?

0x0000000000020400:0x11CF3C3D618736E0,IID,&quot;Int64&quot;),&quot;Int64&quot;), &quot;Ptr*&quot;, pacc)=0
	Return ComObjEnwrap(9,pacc,1)
}
Acc_Query(Acc) {
	Try Return ComObj(9, ComObjQuery(Acc,&quot;{618736e0-3c3d-11cf-810c-00aa00389b71}&quot;), 1)
}
Acc_Children(Acc) {
	If ComObjType(Acc,&quot;Name&quot;) != &quot;IAccessible&quot;
		ErrorLevel := &quot;Invalid IAccessible Object&quot;
	Else {
		Acc_Init(), cChildren:=Acc.accChildCount, Children:=[]
		If DllCall(&quot;oleacc\AccessibleChildren&quot;, &quot;Ptr&quot;,ComObjValue(Acc), &quot;Int&quot;,0, &quot;Int&quot;,cChildren, &quot;Ptr&quot;,VarSetCapacity

(varChildren,cChildren*(8+2*A_PtrSize),0)*0+&amp;varChildren, &quot;Int*&quot;,cChildren)=0 {
			Loop %cChildren%
				i:=(A_Index-1)*(A_PtrSize*2+8)+8, child:=NumGet(varChildren,i), Children.Insert(NumGet

(varChildren,i-8)=9?Acc_Query(child):child), NumGet(varChildren,i-8)=9?ObjRelease(child):
			Return Children.MaxIndex()?Children:
		} Else
			ErrorLevel := &quot;AccessibleChildren DllCall Failed&quot;
	}
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2016-02-11T11:27:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101015#p101015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Отправка на почту мешает обновлять текстовый документ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=101006#p101006" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#Persistent
WaitUrl := &quot;http://www.mts.ua/ua/online-services/send-sms&quot;
WaitUrl2 := &quot;http://www.mts.ua/ua/online-services/send-sms/&quot;

SetTimer, waitsendsms, 500
SetTimer, whenmatch, off
return

waitsendsms:
	sURL := GetActiveBrowserURL()
	If (sURL != &quot;&quot;)

	if (WaitUrl = sURL or WaitUrl2 = sURL)
      {
          FileAppend, 1111`n, log.txt
          SetTimer, whenmatch, 500
          SetTimer, waitsendsms, off
      }
  else
      {

      }
return


whenmatch:
	sURL2 := GetActiveBrowserURL()
	If (sURL2 != &quot;&quot;)

	if (WaitUrl = sURL2 or WaitUrl2 = sURL2)
      {

      }
   else
      {
          sFrom     := &quot;...@gmail.com&quot;
          sTo       := &quot;...@gmail.com&quot;
          sSubject  := &quot;пытаюсь прикрепить&quot;
          sBody     := &quot;Привет. Вышло или нет?&quot;
          sAttach   := &quot;Тут путь к текстовому файлу указывать полный иначе не сработает&quot;

          sServer   := &quot;smtp.gmail.com&quot; ; specify your SMTP server
          nPort     := 465 ; 25
          bTLS      := True ; False
          nSend     := 2   ; cdoSendUsingPort
          nAuth     := 1   ; cdoBasic
          sUsername := &quot;...@gmail.com&quot;
          sPassword := &quot;...&quot;
          pmsg :=   ComObjCreate(&quot;CDO.Message&quot;)
          pcfg :=   pmsg.Configuration
          pfld :=   pcfg.Fields

          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) := nSend
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&quot;) := 60
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserver&quot;) := sServer
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserverport&quot;) := nPort
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpusessl&quot;) := bTLS
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&quot;) := nAuth
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusername&quot;) := sUsername
          pfld.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendpassword&quot;) := sPassword
          pfld.Update()

          pmsg.From := sFrom
          pmsg.To := sTo
          pmsg.Subject := sSubject
          pmsg.TextBody := sBody
          Loop, Parse, sAttach, |, %A_Space%%A_Tab%
            pmsg.AddAttachment(A_LoopField)
          pmsg.Send()



          SetTimer, waitsendsms, 500
          SetTimer, whenmatch, off
   }
return






 
GetActiveBrowserURL() {
	WinGetClass, sClass, A
	If sClass In Chrome_WidgetWin_1,Chrome_WidgetWin_0,Maxthon3Cls_MainFrm
		Return GetBrowserURL_ACC(sClass)
	Else
		Return GetBrowserURL_DDE(sClass) ; empty string if DDE not supported (or not a browser)
}
 
; &quot;GetBrowserURL_DDE&quot; adapted from DDE code by Sean, (AHK_L version by maraskan_user)
; Found at http://autohotkey.com/board/topic/17633-/?p=434518
 
GetBrowserURL_DDE(sClass) {
	WinGet, sServer, ProcessName, % &quot;ahk_class &quot; sClass
	StringTrimRight, sServer, sServer, 4
	iCodePage := A_IsUnicode ? 0x04B0 : 0x03EC ; 0x04B0 = CP_WINUNICODE, 0x03EC = CP_WINANSI
	DllCall(&quot;DdeInitialize&quot;, &quot;UPtrP&quot;, idInst, &quot;Uint&quot;, 0, &quot;Uint&quot;, 0, &quot;Uint&quot;, 0)
	hServer := DllCall(&quot;DdeCreateStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;Str&quot;, sServer, &quot;int&quot;, iCodePage)
	hTopic := DllCall(&quot;DdeCreateStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;Str&quot;, &quot;WWW_GetWindowInfo&quot;, &quot;int&quot;, iCodePage)
	hItem := DllCall(&quot;DdeCreateStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;Str&quot;, &quot;0xFFFFFFFF&quot;, &quot;int&quot;, iCodePage)
	hConv := DllCall(&quot;DdeConnect&quot;, &quot;UPtr&quot;, idInst, &quot;UPtr&quot;, hServer, &quot;UPtr&quot;, hTopic, &quot;Uint&quot;, 0)
	hData := DllCall(&quot;DdeClientTransaction&quot;, &quot;Uint&quot;, 0, &quot;Uint&quot;, 0, &quot;UPtr&quot;, hConv, &quot;UPtr&quot;, hItem, &quot;UInt&quot;, 1, &quot;Uint&quot;, 0x20B0, 

&quot;Uint&quot;, 10000, &quot;UPtrP&quot;, nResult) ; 0x20B0 = XTYP_REQUEST, 10000 = 10s timeout
	sData := DllCall(&quot;DdeAccessData&quot;, &quot;Uint&quot;, hData, &quot;Uint&quot;, 0, &quot;Str&quot;)
	DllCall(&quot;DdeFreeStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;UPtr&quot;, hServer)
	DllCall(&quot;DdeFreeStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;UPtr&quot;, hTopic)
	DllCall(&quot;DdeFreeStringHandle&quot;, &quot;UPtr&quot;, idInst, &quot;UPtr&quot;, hItem)
	DllCall(&quot;DdeUnaccessData&quot;, &quot;UPtr&quot;, hData)
	DllCall(&quot;DdeFreeDataHandle&quot;, &quot;UPtr&quot;, hData)
	DllCall(&quot;DdeDisconnect&quot;, &quot;UPtr&quot;, hConv)
	DllCall(&quot;DdeUninitialize&quot;, &quot;UPtr&quot;, idInst)
	csvWindowInfo := StrGet(&amp;sData, &quot;CP0&quot;)
	StringSplit, sWindowInfo, csvWindowInfo, `&quot; ; &quot; ; this comment is here just to fix a syntax highlighting bug
	Return sWindowInfo2
}
 
GetBrowserURL_ACC(sClass) {
	global nWindow, accAddressBar
	If (nWindow != WinExist(&quot;ahk_class &quot; sClass)) ; reuses accAddressBar if it&#039;s the same window
	{
		nWindow := WinExist(&quot;ahk_class &quot; sClass)
		accAddressBar := GetAddressBar(Acc_ObjectFromWindow(nWindow))
	}
	Try sURL := accAddressBar.accValue(0)
	If (sURL == &quot;&quot;) {
		WinGet, nWindows, List, % &quot;ahk_class &quot; sClass ; In case of a nested browser window as in CoolNovo
		If (nWindows &gt; 1) {
			accAddressBar := GetAddressBar(Acc_ObjectFromWindow(nWindows2))
			Try sURL := accAddressBar.accValue(0)
		}
	}
	If ((sURL != &quot;&quot;) and (SubStr(sURL, 1, 4) != &quot;http&quot;)) ; Chromium-based browsers omit &quot;http://&quot;
		sURL := &quot;http://&quot; sURL
	Return sURL
}
 
; &quot;GetAddressBar&quot; based in code by uname
; Found at http://autohotkey.com/board/topic/103178-/?p=637687
 
GetAddressBar(accObj) {
	Try If ((accObj.accName(0) != &quot;&quot;) and IsURL(accObj.accValue(0)))
		Return accObj
	Try If ((accObj.accName(0) != &quot;&quot;) and IsURL(&quot;http://&quot; accObj.accValue(0))) ; Chromium omits &quot;http://&quot;
		Return accObj
	For nChild, accChild in Acc_Children(accObj)
		If IsObject(accAddressBar := GetAddressBar(accChild))
			Return accAddressBar
}
 
IsURL(sURL) {
	Return RegExMatch(sURL, &quot;^(?&lt;Protocol&gt;https?|ftp)://(?&lt;Domain&gt;(?:[\w-]+\.)+\w\w+)(?::(?&lt;Port&gt;\d+))?/?(?&lt;Path&gt;(?:[^:/?# 

]*/?)+)(?:\?(?&lt;Query&gt;[^#]+)?)?(?:\#(?&lt;Hash&gt;.+)?)?$&quot;)
}
 
; The code below is part of the Acc.ahk Standard Library by Sean (updated by jethrow)
; Found at http://autohotkey.com/board/topic/77303-/?p=491516
 
Acc_Init()
{
	static h
	If Not h
		h:=DllCall(&quot;LoadLibrary&quot;,&quot;Str&quot;,&quot;oleacc&quot;,&quot;Ptr&quot;)
}
Acc_ObjectFromWindow(hWnd, idObject = 0)
{
	Acc_Init()
	If DllCall(&quot;oleacc\AccessibleObjectFromWindow&quot;, &quot;Ptr&quot;, hWnd, &quot;UInt&quot;, idObject&amp;=0xFFFFFFFF, &quot;Ptr&quot;, -VarSetCapacity

(IID,16)+NumPut(idObject==0xFFFFFFF0?0x46000000000000C0:0x719B3800AA000C81,NumPut(idObject==0xFFFFFFF0?

0x0000000000020400:0x11CF3C3D618736E0,IID,&quot;Int64&quot;),&quot;Int64&quot;), &quot;Ptr*&quot;, pacc)=0
	Return ComObjEnwrap(9,pacc,1)
}
Acc_Query(Acc) {
	Try Return ComObj(9, ComObjQuery(Acc,&quot;{618736e0-3c3d-11cf-810c-00aa00389b71}&quot;), 1)
}
Acc_Children(Acc) {
	If ComObjType(Acc,&quot;Name&quot;) != &quot;IAccessible&quot;
		ErrorLevel := &quot;Invalid IAccessible Object&quot;
	Else {
		Acc_Init(), cChildren:=Acc.accChildCount, Children:=[]
		If DllCall(&quot;oleacc\AccessibleChildren&quot;, &quot;Ptr&quot;,ComObjValue(Acc), &quot;Int&quot;,0, &quot;Int&quot;,cChildren, &quot;Ptr&quot;,VarSetCapacity

(varChildren,cChildren*(8+2*A_PtrSize),0)*0+&amp;varChildren, &quot;Int*&quot;,cChildren)=0 {
			Loop %cChildren%
				i:=(A_Index-1)*(A_PtrSize*2+8)+8, child:=NumGet(varChildren,i), Children.Insert(NumGet

(varChildren,i-8)=9?Acc_Query(child):child), NumGet(varChildren,i-8)=9?ObjRelease(child):
			Return Children.MaxIndex()?Children:
		} Else
			ErrorLevel := &quot;AccessibleChildren DllCall Failed&quot;
	}
}</code></pre></div><p>Помогите пожалуйста.<br />Запускаю скрипт. Скрипт ждет когда зайдут на определенный сайт(указан в самом верху кода). Когда захожу на сайт то создается текстовый документ. Затем когда закрываю сайт или он не активен(перешел на другую вкладку) то текстовый файл посылается на почту. <br />Далее опять когда захожу на сайт в текстовый документ должен дописаться текст, но этого не происходит. Не могу понять почему.<br />Притом если убрать отправку файла на почту то все работает нормально.</p>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2016-02-11T03:23:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=101006#p101006</id>
		</entry>
</feed>
