Jump to content

Get a letter from Skype Chat Window?


Recommended Posts

Hi everyone,
 
I'm giving my friends control of an RC Car in kind of a janky way.  Basically they send me a "w, a, s, d" to control the movement of the car while talking in Skype (version 7.1.0.105), and I can successfully send the character through HyperTerminal to my Microcontroller.
 
I'm using Windows Vista (x64 bit). Here is the code I've tried out modified from >this forum post, just to see if I can even send text:

#include "Skype.au3"
#AutoIt3Wrapper_UseX64=n
 
 
While 1
   Global $aChat = _Skype_ChatGetAll()
 
   For $iChat = 0 To UBound($aChat) -1
       $oChat = $aChat[$iChat]
       If _Skype_ChatGetName($oChat) = "" Then ExitLoop ;we've found the chat name
   Next
 
   _Skype_ChatSendMessage($oChat, "test") ;send test to the chat
   Sleep(1000)
WEnd

This works, but I'm trying _Skype_ChatGetMessages($oChat) with no luck...  I have previously tried using the "Control Viewer" program, but unfortunately Skype doesn't seem to like the commands.  That is, the following command doesn't show anything with the tooltip or msgbox:

$var = ControlGetText("[CLASS:tSkMainForm; Title:Skype™ - UserName]", "", "[CLASS:TChatEntryControl; INSTANCE:1]")

What I'm trying to do is: Save the 1st character my friend sends me in a given line from the chat window into a variable.

Thanks in advance.

Edited by Mystievel
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...