<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBS: триггеринг по контенту на веб страничке]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=5570</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5570&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBS: триггеринг по контенту на веб страничке».]]></description>
		<lastBuildDate>Fri, 11 Mar 2011 16:06:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=46071#p46071</link>
			<description><![CDATA[<p>У меня особо задумок никаких нет. Просто существуют такие методы - электронная почта, мессенджеры, чтение определенного файла по определенному адресу (http, ftp). Они ни чем не лучше или хуже Ваших, просто они есть. Лишь констатация факта.</p>]]></description>
			<author><![CDATA[null@example.com (Rumata)]]></author>
			<pubDate>Fri, 11 Mar 2011 16:06:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=46071#p46071</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=46068#p46068</link>
			<description><![CDATA[<p>Твиттер скорее для примера. Скайп выбран как финальный вариант.<br />Есть возможность подцепить разные скрипты, в случае принятия сообщений от разных пользователей, то есть получается более продвинутый триггеринг, чем просто по любому событию.<br />Возможно даже читать боди сообщения, и в зависимости от него совершать некое действие.<br />А вы у вас какие задумки?</p>]]></description>
			<author><![CDATA[null@example.com (cbh)]]></author>
			<pubDate>Fri, 11 Mar 2011 12:54:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=46068#p46068</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45944#p45944</link>
			<description><![CDATA[<p>Триггеринг. Удаленный запуск приложений по возникновении каких либо событий извне. Правильно я понимаю? Хотя со скайпом понятно. Почему выбраны именно твиттер и скайп?</p>]]></description>
			<author><![CDATA[null@example.com (Rumata)]]></author>
			<pubDate>Wed, 09 Mar 2011 17:14:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45944#p45944</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45931#p45931</link>
			<description><![CDATA[<p>Не жалко, но я сделал со скайпом, только подректировал под себя. <br />Если все таки понадобится делать с твитером обязательно подниму тему.</p>]]></description>
			<author><![CDATA[null@example.com (cbh)]]></author>
			<pubDate>Wed, 09 Mar 2011 14:08:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45931#p45931</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45930#p45930</link>
			<description><![CDATA[<div class="quotebox"><cite>cbh пишет:</cite><blockquote><p>Сделал сам. Что-то часто начал открывать странные темы, которые и сам же закрываю)))</p></blockquote></div><p>Знакомая ситуация. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Жаль, что не смог пригодится. А вот скриптик со скайпом поизучаю. Очень заинтересовало. Спасибо.<br />Да. И если не жалко - покажите, что с твиттером получилось. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Очень интересно.</p>]]></description>
			<author><![CDATA[null@example.com (Xameleon)]]></author>
			<pubDate>Wed, 09 Mar 2011 13:52:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45930#p45930</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45928#p45928</link>
			<description><![CDATA[<p>Сделал сам. Что-то часто начал открывать странные темы, которые и сам же закрываю)))</p>]]></description>
			<author><![CDATA[null@example.com (cbh)]]></author>
			<pubDate>Wed, 09 Mar 2011 13:01:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45928#p45928</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45926#p45926</link>
			<description><![CDATA[<p>Нет не то.<br />Имеется в виду триггеринг, когда на определенное сообщение совершается определенное действие.<br />Можно кстати и через скайп.<br />Вот скрипт<br /></p><div class="codebox"><pre><code>&#039;// Create a Skype4COM object:
Set oSkype = WScript.CreateObject(&quot;Skype4COM.Skype&quot;, &quot;Skype_&quot;)

&#039;// Start the Skype client:
If Not oSkype.Client.IsRunning Then oSkype.Client.Start() End If

&#039;// Declare the following Skype constants:
cAttachmentStatus_Available = oSkype.Convert.TextToAttachmentStatus(&quot;AVAILABLE&quot;)
cMessageStatus_Sending = oSkype.Convert.TextToChatMessageStatus(&quot;SENDING&quot;)
cMessageStatus_Received = oSkype.Convert.TextToChatMessageStatus(&quot;RECEIVED&quot;)
cMessageType_Said = oSkype.Convert.TextToChatMessageType(&quot;SAID&quot;)
cMessageType_Left = oSkype.Convert.TextToChatMessageType(&quot;LEFT&quot;)

&#039;// The SendMessage command will fail if the user is offline. To avoid failure, check user status and change to online if necessary:
If cUserStatus_Offline = oSkype.CurrentUserStatus Then oSkype.ChangeUserStatus(cUserStatus_Online) End If  

&#039;// Sleep 
Do While True 
  WScript.Sleep(60000)
Loop

&#039;// The AttachmentStatus event handler monitors attachment status and attempts to connect to the Skype API:
Public Sub Skype_AttachmentStatus(ByVal aStatus)
  WScript.Echo  &quot;&gt;Attachment status &quot; &amp; oSkype.Convert.AttachmentStatusToText(aStatus)
  If aStatus = cAttachmentStatus_Available Then oSkype.Attach() End If
End Sub

&#039;// The MessageStatus event handler monitors message status, decodes received messages and, for those of type &quot;Said&quot;, sends an autoresponse quoting the original message:
Public Sub Skype_MessageStatus(ByRef aMsg, ByVal aStatus)
  WScript.Echo &quot;&gt;Message &quot; &amp; aMsg.Id &amp; &quot; status &quot; &amp; oSkype.Convert.ChatMessageStatusToText(aStatus)
  If aStatus = cMessageStatus_Received Then 
    DecodeMsg aMsg       
    If aMsg.Type = cMessageType_Said Then 
     &#039;oSkype.SendMessage aMsg.FromHandle, &quot;This is autoresponse.&quot;
      aMsg.Chat.SendMessage &quot;You said [&quot; &amp; aMsg.Body &amp; &quot;]&quot;
    End If
  End If    
End Sub

&#039;// The DecodeMsg event handler decodes messages in a chat and converts leave reasons to text for messages of type &quot;Left&quot;:
Public Sub DecodeMsg(ByRef oMsg)       
  sText = oMsg.FromHandle &amp; &quot; &quot; &amp; oSkype.Convert.ChatMessageTypeToText(oMsg.Type) &amp; &quot;:&quot;
  If len(oMsg.Body) Then 
    sText = sText &amp; &quot; &quot; &amp; oMsg.Body
  End If
  Dim oUser
  For Each oUser In oMsg.Users
    sText = sText &amp; &quot; &quot; &amp; oUser.Handle
  Next
  If oMsg.Type = cMessageType_Left Then 
    sText = sText &amp; &quot; &quot; &amp; oSkype.Convert.ChatLeaveReasonToText(oMsg.LeaveReason)
  End If
  WScript.Echo &quot;&gt;&quot; &amp; sText  
End Sub</code></pre></div><p>Хотелось бы его переделать, чтобы во впервых сообщения слушались только от определенных пользователей.<br />И если сообщение скажем start, то выполнить то-то и то-то</p>]]></description>
			<author><![CDATA[null@example.com (cbh)]]></author>
			<pubDate>Wed, 09 Mar 2011 12:38:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45926#p45926</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45925#p45925</link>
			<description><![CDATA[<p>Ммм. Ну в самом грубом варианте, можно сделать так. </p><p>Скрипт постоянно висит в памяти и ждёт открытия в Internet Explorer странички с сайта google.</p><div class="codebox"><pre><code>Dim ShellWindows, ShellWindow
Set ShellWindows = CreateObject(&quot;Shell.Application&quot;).Windows
Do
    For Each ShellWindow in ShellWindows
        if Instr(1,ShellWindow.LocationURL,&quot;google&quot;,1) &gt; 0 Then
            MsgBox ShellWindow.document.body.innerHtml
            Exit Do
        End if
    Next
    WScript.Sleep 100
Loop</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Xameleon)]]></author>
			<pubDate>Wed, 09 Mar 2011 12:31:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45925#p45925</guid>
		</item>
		<item>
			<title><![CDATA[VBS: триггеринг по контенту на веб страничке]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=45923#p45923</link>
			<description><![CDATA[<p>Возникла бредовая идея.<br />Допустим на некой машине запущен ИЕ и в нем отображается твиттер. Идет постоянно автообновление тегов, вообщем контента на текущей странице. Как только появляется тег @start сразу запускается VBS скрипт, установленный на этой же машине.<br />Это возможно? Можно анализировать не контент а статус пользователя, как то так.</p>]]></description>
			<author><![CDATA[null@example.com (cbh)]]></author>
			<pubDate>Wed, 09 Mar 2011 11:40:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=45923#p45923</guid>
		</item>
	</channel>
</rss>
