Jump to content

Skype UDF v1.2 (Sep 15, 2013)


FireFox
 Share

Recommended Posts

The thing is i need to be able to send a message to multiple chats that i have in a list on skype
Not sure how im able to pull that off ive seen your code here  below

But thats directed to one certain group...

#include "Skype.au3" Global $aChat = _Skype_ChatGetActive(),
$oChat For $iChat = 0 To UBound($aChat) -1  $oChat = $aChat[$iChat]
 
If _Skype_ChatGetName($oChat) = "#abc.def/$febc24a082b613eb"
Then ExitLoop ;we've found the chat name
Next _Skype_ChatSendMessage($oChat, "test") ;send test to the chat
 

Link to comment
Share on other sites

Please use autoit code tags to post your code, this is awful...

You can put the chatnames in an array, remove the exitloop, and add a for.

Something like this I guess :

#include "Skype.au3"
 
Local $aMyChat[2] = ["#abc.def/$febc24a082b613eb", "#abc.def/$..."]
 
Local $aChat = _Skype_ChatGetActive(), $oChat = 0, $sChatName = ""
 
For $iChat = 0 To UBound($aChat) - 1
    $oChat = $aChat[$iChat]
    $sChatName = _Skype_ChatGetName($oChat)
 
    For $iMyChat = 0 To UBound($aMyChat) - 1
        If $sChatName <> $aMyChat[$iMyChat] Then ContinueLoop
 
        _Skype_ChatSendMessage($oChat, "test")
    Next
Next

Br, FireFox.

Link to comment
Share on other sites

 

Yeah im sure you can still  enable API but im talking about future after 2013

As the Desktop Api Skype has been given us over past years will deprecate so i have feeling this UDF and many other programs 

that depend on the Skype desktop api will not be working anymore thats what i worry about 

and looking in a way to still make use of automation on the Skype  URI just not sure how at the moment

If anyone knows how feel free to say so , thanks...

Link to comment
Share on other sites

For some reason _Skype_UserSendMessage($SkypeUser, $Subject) and _Skype_ProfileSetMoodText($Text) are having trouble being submitted since about one week.

I noticed that my status would hardly get updated. And messages were delayed by hours.

When I change the status by hand or type the message into the skype client the message gets delivered instantly.

This worked perfectly fine before. I don't know if I updated Skype or something.

Can you make any sense of this?

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

Recently, after I updated skype, I got a message popped up saying that autoit.exe will not work with skype api from next year, and gave a hyperlink:

https://support.skype.com/en/faq/FA12349/skype-says-my-application-will-stop-working-with-skype-in-december-2013-why-is-that

I've got two questions for the autoit community:

1) Will the skype functions still work if we install an older skype version and don't update skype?

http://www.oldversion.com/windows/skype/

[probably not, but I'm just asking/hoping...]

2) will we have another autoit option/solution to automate skype?

Any suggestion much appreciated.

Edited by autog
Link to comment
Share on other sites

I've got two questions for the autoit community:

1) Will the skype functions still work if we install an older skype version and don't update skype?

Theoretically yes.

2) will we have another autoit option/solution to automate skype?

Don't know.
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

I've tried #AutoIt3Wrapper_UseX64=n on my Windows 7 64bit but still it doesn't seem to work...

I have two computers sending automated messages to a skype group conversation.

1) Automated python script sending messages to a group conversation from my account

2) Automated python script sending messages to a group conversation from another account

I'm trying to make it so if Account1 sends or receives a message to/in the group conversation it uses microsoft sam to say "Update", I am also trying to find a way if a message is sent to a group conversation with the text "NA PLAY" it would use microsoft sam to "POP NA"

Link to comment
Share on other sites

  • 1 month later...

Thank you FireFox for this very usefull UDF

I am testing it with WIN 8 skype 6.13.32.104 - works perfectly

Only one thing I cant do - is add a friend

 

I am trying this code, as it was in previous examples,

_Skype_UserAdd("echo123")

Func _Skype_UserAdd($sUserHandle, $sPendingMessage = "Hi !") ;by FireFox
If _Skype_UserGetBuddyStatus($sUserHandle) <> $cBudFriend Then
__Skype_SendCommand("SET USER " & $sUserHandle & " BUDDYSTATUS " & $cBudPendingAuthorization & " " & $sPendingMessage, "", False)
EndIf
EndFunc ;==>_Skype_UserAdd

But I get an error Incorrect number of parameters in function call.:
__Skype_SendCommand("SET USER " & $sUserHandle & " BUDDYSTATUS " & $cBudPendingAuthorization & " " & $sPendingMessage, "", False)
^ ERROR

What I am doing wrong?

Thanx in advance!!!!





			
		
Link to comment
Share on other sites

Hi,

Something like this should work :

#include "Skype.au3"

_Skype_OnEventUserAuthRequestReceived("OnEventUserAuthRequestReceived")
 
...
 
Func OnEventUserAuthRequestReceived($oUser)
    Local $sUHandle = $oUser.Handle
    ConsoleWrite("User handle: " & $sUHandle & @Lf)
    _Skype_UserSetAuthorized($oUser, True)
EndFunc
Br, FireFox. Edited by FireFox
Link to comment
Share on other sites

Hi,

Something like this should work :

#include "Skype.au3"

_Skype_OnEventUserAuthRequestReceived("OnEventUserAuthRequestReceived")
 
...
 
Func OnEventUserAuthRequestReceived($oUser)
    Local $sUHandle = $oUser.Handle
    ConsoleWrite("User handle: " & $sUHandle & @Lf)
    _Skype_UserSetAuthorized($oUser, True)
EndFunc
Br, FireFox.

 

that did a whole lot of nothing, guess its time to give up on broken weird APIs

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...