Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2
  1. #1
    Join Date
    June 2016
    Location
    Germany
    Posts
    54

    Event when client uses ptt key

    What would be the best way for a plugin to know when the user presses or releases his PTT Key? And by that I really mean the PTT Key, not just the talking flag.

    Some background: My soundboard plugin sets the talk state to continous transmission when the users plays a sound. If he then uses the PTT Key while a sound is playing, Teamspeak resets the talk state to PTT and the transmission stops as soon as the user releases the ptt key. I need to reset the talk state to continous transmission when the ptt key is released while a sound is playing.

  2. #2
    Join Date
    September 2012
    Posts
    6,079
    The easiest thing would probably be to have the user create a hotkey with "onRelease" using the PTT key.
    Can utilize requestHotkeyInputDialog and getHotkeyFromKeyword to make sure it's an on release hotkey and to check if it already exists.
    Then do what you need to in the relevant event function.

    Only other way I could think of would be to try and detect key presses on your own and then do things, all while being careful not to mess with the client's operation.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Request] New SDK event
    By fredtrq in forum Suggestions and Feedback
    Replies: 0
    Last Post: September 12th, 2012, 05:54 PM
  2. Client joining event?
    By AMVI_Lince in forum General Questions
    Replies: 1
    Last Post: February 23rd, 2010, 10:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •