MoneyEngineer Posted September 19, 2013 Share Posted September 19, 2013 Hey FireFox i got some questions regarding this Skype UDF if you could contact me on Skype @ Moneyengineer , That would be great Take care & hope to talk to you soon! Link to comment Share on other sites More sharing options...
FireFox Posted September 19, 2013 Author Share Posted September 19, 2013 MoneyEngineer, Hi, Welcome to the autoit forum Please ask your questions here so it can be useful to anyone Br, FireFox. Link to comment Share on other sites More sharing options...
MoneyEngineer Posted September 19, 2013 Share Posted September 19, 2013 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 More sharing options...
FireFox Posted September 19, 2013 Author Share Posted September 19, 2013 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 More sharing options...
MoneyEngineer Posted September 20, 2013 Share Posted September 20, 2013 hmm so after running the script i get errors here is link to a screenshot : http://puu.sh/4vUHu.png something wrong with this line ,? Local $aChat = _Skype_ChatGetActive(), $oChat = 0, $sChatName = "" Im new to to AutoIt so not sure whats going on, something have to be set in $sChatName="" ?? Link to comment Share on other sites More sharing options...
MoneyEngineer Posted September 20, 2013 Share Posted September 20, 2013 ive also done some research and ive found this : http://www.neowin.net/news/skype-to-retire-desktop-api-support-by-end-of-2013 if the skype desktop api would stop working wont these skype AutoIT scripts stop running all together ? in exchange they want to focus on the Skype uri : http://dev.skype.com/skype-uri Link to comment Share on other sites More sharing options...
Inververs Posted September 23, 2013 Share Posted September 23, 2013 (edited) If not working examples, you need check enable API in registry! HKEY_LOCAL_MACHINE SOFTWARE Policies Phone DisableApi = 0 and HKEY_CURRENT_USERSoftwarePoliciesPhone DisableApi = 0 and restart skype. Edited September 23, 2013 by Inververs Link to comment Share on other sites More sharing options...
MoneyEngineer Posted September 30, 2013 Share Posted September 30, 2013 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 More sharing options...
bootybay Posted October 3, 2013 Share Posted October 3, 2013 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 More sharing options...
autog Posted October 12, 2013 Share Posted October 12, 2013 (edited) 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 October 12, 2013 by autog Link to comment Share on other sites More sharing options...
FireFox Posted October 13, 2013 Author Share Posted October 13, 2013 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 More sharing options...
yehia Posted November 7, 2013 Share Posted November 7, 2013 This perfect, thanks a lot firefox for such a great addition to autoit I have a question Took a look at the functions but i didnt find any function to stream an audio file in a call is there any way in autoit to do that? Thanks again Yehia My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine Link to comment Share on other sites More sharing options...
Hyflex Posted December 22, 2013 Share Posted December 22, 2013 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 account2) Automated python script sending messages to a group conversation from another accountI'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 More sharing options...
topten Posted January 29, 2014 Share Posted January 29, 2014 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 More sharing options...
hiho Posted January 29, 2014 Share Posted January 29, 2014 Func __Skype_SendCommand has only 2 params and you're sending a third. Remove it and it'll work fine. Link to comment Share on other sites More sharing options...
topten Posted January 30, 2014 Share Posted January 30, 2014 Yes! You are right! Thanx a lot, works as a charm! _Skype_UserAdd("and") Func _Skype_UserAdd($sUserHandle, $sPendingMessage = "Hi !") ;by FireFox If _Skype_UserGetBuddyStatus($sUserHandle) <> $cBudFriend Then __Skype_SendCommand("SET USER " & $sUserHandle & " BUDDYSTATUS " & $cBudPendingAuthorization ) EndIf EndFunc ;==>_Skype_UserAdd Link to comment Share on other sites More sharing options...
lionfaggot Posted February 3, 2014 Share Posted February 3, 2014 (edited) i need to know how you autoaccept contacts with this UDF, i found the event to set a function for when a request is received but i do not know how to get the username from the received request Edited February 3, 2014 by lionfaggot Link to comment Share on other sites More sharing options...
FireFox Posted February 4, 2014 Author Share Posted February 4, 2014 (edited) 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) EndFuncBr, FireFox. Edited February 4, 2014 by FireFox Link to comment Share on other sites More sharing options...
lionfaggot Posted February 9, 2014 Share Posted February 9, 2014 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 More sharing options...
FireFox Posted February 9, 2014 Author Share Posted February 9, 2014 Well, I didn't test it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now