example on AutoIt language (wodXMPP)
Hello!
Dear developer, please make an example in a scripting language AutoIt. Or even be an example of how to get the message.
Thank you.
http://www.autoitscript.com/site/
by Autoit_user, (5460 days ago)
Hello!
Dear developer, please make an example in a scripting language AutoIt. Or even be an example of how to get the message.
Thank you.
http://www.autoitscript.com/site/
by AutoIt_user, (5460 days ago) @ Autoit_user
or make an example of receiving a message at VBS (these languages are very similar)
by wodDamir
, (5460 days ago) @ AutoIt_user
Hi,
Unfortunately, we're no AutoIt developers so I'm not sure how much we can help with questions related to it.
However, in order to receive a message, you need to implement IncomingMessage event. Once you receive a message from someone, XMPPContact and XMPPMessage objects are provided there.
As for VBS sample, although an event could be implemented, there is nothing to keep the application / script *alive*. In other words, the component would connect and exit.
However, since VBS uses VB syntax, I would suggest checking the VB6 samples.
Hope this helps.
Regards,
Damba
by Autoit_user, (5459 days ago) @ wodDamir
Thank you for your reply. I'm just learning programming, and I do not know other languages. I find it hard to understand the example in VB.
About VBS: please show the theoretical example of how it should be on VBS.
When I have everything working, I can send you an example in Autoit, so you add it to their base example, if you want.
Please take a look at the description of the implementation of the COM in the language AutoIt: Online Documentation
Thank you.
by wodDamir
, (5459 days ago) @ Autoit_user
Hi,
Well, theoretically it should look something like this in VBS (our simple sample, just added IncomingMessage event, and additional comment):
[code]Option Explicit
Dim XMPP1
Set XMPP1 = WScript.CreateObject( WeOnlyDo.wodXMPPCom.1 , wod_ )
' please change these lines, from here
WScript.echo Please edit this file to setup Login and Password properties
XMPP1.Login = somename@wippien.com
XMPP1.Password = password
XMPP1.Blocking = True
'XMPP1.Register = True ' register new account
XMPP1.Connect
'XMPP1.Contacts.Add( someone@wippien.com ).Subscribe ' you can add someone to your contact list...
XMPP1.SendText someone@wippien.com , Hello there!
'Some kind of a message loop
'should be implemented here
'to keep wodXMPP working,
'since it would otherwise die
'at the end of script execution
Sub wod_Disconnected()
WScript.Echo Done and disconnected
End Sub
Sub wod_IncomingMessage(Contact, Message)
WScript.Echo Message From & Contact.JID & vbcrlf & Text: & Message.Text
End Sub[/code]
Hope this helps.
Regards,
Damba

Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.

We are having great success with your component ... email server that has over 750 000 mailboxes back ended by a SQL server...

May I say how nice it is to work with components so complete and self-explanatory that using them in my application is as instinctive as though I wrote them myself?

I can only hope I will have the pleasure to work with other products by "We Only Do" in the future.

This has been, by far, the best experience I have ever had dealing with a support entity in my long career in the technical arena

...with the SFTP interface you produced, everything was so simple to understand, we were able to start coding almost immediately!

Thank you very much for the rapid responses. I was a little nervous about dealing with a company that is on a different continent from me. You have proven my concerns to be unfounded.

You did a great job on wodSSH and wodSSHServer! I got a lot for very little money. Thanks!

...with the SFTP interface you produced, everything was so simple to understand, we were able to start coding almost immediately!

I've heard that you are amazing with your replies coming back so quickly - and now I've seen the speed in which you reply first hand.

