Jump to content

Recommended Posts

Posted

Hi,

Im trying to make a program that knows when someone is speaking. I was considering doing it in Chrome on discord, but chrome extension i pretty poor... discord desnt work in IE. So i thought that maybe there is possible to do it on teamspeak. I like to plan everything before i start working so my question is "Is it possible to do it?".

i found this

and i ound function like that


; #FUNCTION# ;===============================================================================
;
; Name...........: _TS3clientlist
; Description ...: Displays a list of clients online on a virtual server including their ID, nickname, status flags, etc. The output can be modified using several command options. Please note that the output will only contain clients which are currently in channels you're able to subscribe to.
; AutoIt Version : V3.3.6.0
; Syntax.........: _TS3clientlist([$TS3uid = "0"[, $TS3away = "0"[, $TS3voice = "0"[, $TS3times = "0"[, $TS3groups = "0"]]]]])
; Parameters ....: $TS3uid  -  Optional: (Default = "0") : UID
;                    $TS3away-  Optional: (Default = "0") : Away
;                    $TS3voice -  Optional: (Default = "0") : Voice
;                    $TS3times-  Optional: (Default = "0") : Times
;                    $TS3groups -  Optional: (Default = "0") : Groups
; Return values .: Success - Returns : Online Clients
;                  Failure - Returns 0 and Sets @Error:
;                  |0 - No error.
;                  |1 - Error: Set return - Error message
; Author ........: chip
;
; ;==========================================================================================

Func _TS3clientlist($TS3uid = "0", $TS3away = "0", $TS3voice = "0", $TS3times = "0", $TS3groups = "0")
    $TS3listwert = "clientlist"
    If $TS3uid <> "0" Then
        $TS3listwert = $TS3listwert & " -uid"
    EndIf
    If $TS3away <> "0" Then
        $TS3listwert = $TS3listwert & " -away"
    EndIf
    If $TS3voice <> "0" Then
        $TS3listwert = $TS3listwert & " -voice"
    EndIf
    If $TS3times <> "0" Then
        $TS3listwert = $TS3listwert & " -times"
    EndIf
    If $TS3groups <> "0" Then
        $TS3listwert = $TS3listwert & " -groups"
    EndIf
    TCPSend($TS3connection, $TS3listwert & Chr(10))
    While 1
        $recv = TCPRecv($TS3connection, 2048)
        $recv = StringReplace($recv, @LF, @CRLF)
        $recv = StringReplace($recv, @CRLF & @CR, @CRLF)
        If StringInStr($recv, "clid") Then
            $recv = StringReplace($recv, "error id=0 msg=ok", "")
            Return $recv
        ElseIf StringInStr($recv, "error") Then
            Return SetError(1, 0, _TS3errors($recv))
            ExitLoop
        EndIf
    WEnd
EndFunc   ;==>_TS3clientlist

 

 

if i specify parameter -voice do u think that return value will be if anyone is talking at this moment?

Maybe someone knows? :P

Posted

Welcome to AutoIt Forum.

Please read:  How to post code on the forum *

And edit your post.


Regards,
mLipok

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

@mLipok How can I edit post?

@Skysnake There is no examples :/ i found it on german site https://autoit.de/index.php?thread/19591-teamspeak-3-udf/&pageNo=1

and i thought it would work.... if you have better idea to get that information it woulde be nice :P It might be discord lounched in browser or teamspeak.

Im trying

#include <ts3.au3>
_TS3connect ("178.217.187.190","10091")
_TS3login ("Misiek","")
;_TS3use ("21006")
;Sleep(10000)
_TS3clientpoke("dFXtDRIQAcT45xPma6uHAdJzOCc=","")

It doesnt work. My teamspeak ip is 178.217.187.190:10091. On server provider site i have query port which is 21006. Im not a web admin or any server admin sor im not familiar with this stuff :P

 

Posted (edited)
  On 2/21/2018 at 2:30 PM, misiekkox said:

@mLipok How can I edit post?

Expand  

https://www.autoitscript.com/wiki/Forum_FAQ#How_can_I_edit_my_post_on_the_forum_.3F

edit: ..... and have a nice day:

 

btw.
Please do not take this with any sexual context.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 2/21/2018 at 3:56 PM, misiekkox said:

@mLipok Yeah no problem mate, but i f i would have one XD I was looking for that edit button at the start but i dont have it :P

 

Expand  

oops... I mean comment about this linked film,..... not your's behavior.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

hm... we must to ask MOD's what rules are for EDITing post.

Just wait - hope forum moderator/admin will look here soon.

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

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