Jump to content
Sign in to follow this  
FireFox

Skype UDF v1.2 (Sep 15, 2013)

Recommended Posts

MoneyEngineer,

Hi, Welcome to the autoit forum :)

Please ask your questions here so it can be useful to anyone ;)

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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
 

Share this post


Link to post
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.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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 by Inververs

Share this post


Link to post
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...

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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"

Share this post


Link to post
Share on other sites

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!!!!





			
		

Share this post


Link to post
Share on other sites

Func __Skype_SendCommand has only 2 params and you're sending a third. Remove it and it'll work fine.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 by lionfaggot

Share this post


Link to post
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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Well, I didn't test it.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MrCreatoR
      This UDF allows to create formatted label using pseudo element RichLabel (RichEdit actually). Formating is set by using special modificator similar to <font> tag in Html.
      Notes: This UDF is a transformation-continuation of related UDF


      Example:
      Download:
      GUIRichLabel_1.2.zip
      Small syntax related fix: GUIRichLabel_1.1.zip
      GUIRichLabel_1.1.zip
       
      History version:
    • By argumentum
      I can TCP/IP in AutoIt, hence, make a HTTP deamon. Now, how can I HTTPS to use SSL !??
      Well, Apache has this "mod_proxy.so" module that can let me have SSL and what not is in Apache.
      All that is needed is to tell Apache what I wanna do by editing httpd.conf .
      # Implements a proxy/gateway for Apache. # 1. Open /Applications/XAMPP/etc/httpd.conf # 2. Enable the following Modules by removing the # at the front of the line. # - LoadModule rewrite_module modules/mod_rewrite.so # - LoadModule proxy_module modules/mod_proxy.so # - LoadModule proxy_http_module modules/mod_proxy_http.so # # 3. Copy and Paste below to the bottom of httpd.conf # <IfModule mod_proxy.c> ProxyRequests On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyVia Off ProxyPreserveHost Off ProxyPass /home/ http://127.0.0.1:84/home/ ProxyPassReverse /home/ http://127.0.0.1:84/home/ SetEnv proxy-nokeepalive 1 # ..since we are not using "keep-alive", we are using "close" </IfModule> ...et voila  
      I'm using XAMPP ( https://www.apachefriends.org/download.html )
      and this is my solution to avoid coding in PHP, as I feel more comfortable coding in AutoIt.
      A "muli-thread or concurrency" can be done by forking the socket ( https://www.autoitscript.com/forum/topic/199177-fork-udf-ish/ )
      but responses are under 20 ms., so I feel fine with a single thread.
      I modified an example ( attached below ), so can try out the concept.
      PS: I am not an Apache guru. I just discovered this and it opens a world of possibilities. In my case, I'm thinking of an API to query SQLite 
      PS2: I'm not gonna make Poll but do click like if you do  
       
      201673-json-http-post-serverlistener.au3
    • By PeterVerbeek
      This topic give you access to an AutoIt functions library I maintain which is called PAL, Peter's AutoIt Library. The latest version 1.20 contains 197 functions divided into these topics:
      window, desktop and monitor mouse and GUI GUI controls including graphical buttons (jpg, png) logics and mathematics include constants string, xml string and file string dialogues and progress bars data lists: lists, stacks, shift registers and key maps (a.ka. dictionaries) miscellaneous: logging/debugging, process and system info Change log and files section  on the PAL website (SourceForge).
      A lot of these functions were created in the development of Peace, Peter's Equalizer APO Configuration Extension, which is a user interface for the system-wide audio driver called Equalizer APO.
    • By MichaelSDeVries
      Has anyone successfully developed  integration with the E*TRADE API in AutoIt?


       
      If so, then would you be willing and able to share some of your AutoIt code to do so with me? and/or help me successfully develop an AutoIt interface with the E*TRADE API?

       
      Please also Reply at: http://blog.thevcf.com/forums/topic/etrade-api/#post-4032

       
      Thank You and Have a Great Day!
      - Michael S. DeVries
    • By Colduction
      Hello again, i have a code that changes username to favorite, my problem is how to use ObjEvent() function to catch errors, i've red Help File and Forum's Topics but i can't understand too much😐

      Here is a code (I've copied this codes from a user of AutoIt Forum):
       
      $sOldUser = "Administrator" $sNewUser = "Admin" $oUser = ObjGet("WinNT://" & @ComputerName & "/" & $sOldUser & ",user") $oComputer = ObjGet("WinNT://" & @ComputerName) $oNewUser = $oComputer.MoveHere($oUser.ADsPath, $sNewUser) Thanks for your care, I'm new to AutoIt and days should be passed with my coding and practicing to don't bother you :)❤
×
×
  • Create New...