Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Get a letter from Skype Chat Window?

$
0
0

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.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>