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

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    All the examples are in C/C++.

    Everything is very similar to the plugin sdk:

    Example in C:
    Code:
    #include "ipc_client_commands.h"
    #include "public_errors.h"
    
    
    
    int moveMyself(uint64 schid, uint64 newchan) {
      if (getClientID(schid, &myid) != ERROR_ok)
        return 1;
    
      if (requestClientMove(schid, myid, newchan) != ERROR_ok)
        return 1;
      
      return 0;
    }
    
    int main(int argc, char** argv) {
    #ifdef WINDOWS
      unsigned int ret = initSDK("plus");
    #else
      key_t key = ftok("./", 42);
      unsigned int ret = initSDK(key);
    #endif
      if (ret != ERROR_ok) {
        printf("Unable to connect to the ipc plugin: %d\n", ret);
        shutdownSDK();
        return 1;
      }
    
      uint64 schid = getCurrentServerConnectionHandlerID(&ret);
      if (ret == ERROR_ok) {
        uint64* chanlist;
        if (getChannelList(schid, &chanlist) == ERROR_ok) {
          //search for the channel of your choice => x
          if (!moveMyself(schid, chanlist[x]))
            printf("I am successfully moved\n");
          freeMemory(chanlist);
        }
      }
    
      shutdownSDK();
    
      return 0;
    }
    As already told: For VB you need to create a VB interface for the lib.
    Last edited by Thomas; September 12th, 2010 at 05:42 PM.

  2. #17
    Join Date
    April 2009
    Location
    italy
    Posts
    44
    no charge plugin client 32 v.beta29
    Last edited by spinter; September 14th, 2010 at 02:02 PM.

  3. #18
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    -== Updated to version 1.03 ==-
    Plugin/Clientlib:
    -added functions getServerConnectInfo, getChanelConnectInfo, getChanelVariableAsUint64, setChannelVariableAsUInt64

    Plugin:
    -updated to clientlib version 8 (Beta 29)


    (See the first post for a download link)

  4. #19
    Join Date
    April 2009
    Location
    italy
    Posts
    44
    no no not charge plugin 1.0.3for ts3 v.beta29

  5. #20
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    I do not understand, sorry.

    EDIT: If you meant, that the plugin does not load on Windows 32 bit, please download again, I've forgotten the libstdc++-6.dll (which you need to put into your TeamSpeak 3 installation directory).
    Last edited by Thomas; September 17th, 2010 at 04:58 PM.

  6. #21
    Join Date
    April 2009
    Location
    italy
    Posts
    44
    Quote Originally Posted by Thomas View Post
    I do not understand, sorry.

    EDIT: If you meant, that the plugin does not load on Windows 32 bit, please download again, I've forgotten the libstdc++-6.dll (which you need to put into your TeamSpeak 3 installation directory).
    My error charge plugin!

  7. #22
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    Would be very helpfull to know which platform you are working with!

    If win32: Did you copy the libraries libstdc++-6.dll and libgcc_s_dw2-1.dll to your TeamSpeak 3 installation directory (not the plugins directory!!!)?

    If win64: Did you copy the libraries libstdc++-6.dll and w64gcc_s_sjlj-1.dll to your TeamSpeak 3 installation directory (not the plugins directory!!!)?

    Please check, if you copied the correct libstdc++-6.dll from the bin-directory (depending on your architecture).


    If the problem still exists, please download Dependency Walker (no setup, only a binary), load the plugin-dll, make a screenshot and attach it here.

    Btw: The ts3_ipcplugin_clientlib is no TeamSpeak 3 plugin, so no need to copy it into the plugins directory.

  8. #23
    Join Date
    April 2009
    Location
    italy
    Posts
    44
    Ok Solved Charge plugin.
    TS3 was the problem I uninstalled and reinstalled and the problem is solved.
    a question calling dll which I do it? ts3_ipcplugin_client_lib.dll?

    Thx!!

  9. #24
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    If you are using MinGW, link the (depending on your OS) libts3_ipcplugin_client_lib.dll.a (see the lib-directory) to your application, include the header ipc_client_commands.h (and if you need ipc_events.h) to your project and use the functions provided.

    If you use Visual C++, currently you need to load the library manually, by calling LoadLibrary and GetProcAddress (see the headerfile for the function definitions).
    But please give me a shout if so, then I will compile it for Visual C++ as well.

  10. #25
    Join Date
    April 2009
    Location
    italy
    Posts
    44
    I wanted to know if you are able to use co ipcplugin with vb.net.
    Can you help me?
    I can not help me please!
    Thx!

  11. #26
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    Same question as two months ago, so same answer:

    You need to port the header (ipc_client_commands.h and if you need callbacks ipc_events.h as well) to VB (here is an example).

    Otherwise you can use the WINAPI functions LoadLibrary and GetProcAdress to dynamically load the library.

  12. #27
    Join Date
    April 2009
    Location
    italy
    Posts
    44
    I tried to use WINAPI LoadLibrary and GetProcAdress but I always return an error stahk.sono months I feel!. I think that calls do not match ipc_client_commands.h.ho need help please!

  13. #28
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    Which programming language? Which compiler?

    Some code, where the error (and of course which error) ocuure, could be helpfull.

  14. #29
    Join Date
    April 2009
    Location
    italy
    Posts
    44
    Vb2008


    even with this simple stop conection

    <DllImport("ts3_ipcplugin_client_lib")> _
    Public Shared Function stopConnection(ByVal serverConnectionHandlerID As Integer, ByVal shutdownMessage As String) As String
    End Function

  15. #30
    Join Date
    September 2005
    Location
    Germany / Dortmund
    Posts
    1,376
    Sorry, I'm not familiar with VisualBasic.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Where are the newest plugin.c and plugin.h files?
    By PatPeter in forum General Questions
    Replies: 5
    Last Post: July 24th, 2015, 11:43 AM
  2. Change Username from external without .dll Plugin
    By Androxin in forum Client Plugins / Lua Scripts
    Replies: 0
    Last Post: April 19th, 2015, 07:28 AM
  3. ts3 overlay plugin (Failed to open plugin)
    By netmario in forum Windows
    Replies: 0
    Last Post: September 22nd, 2010, 08:29 AM
  4. Using external lib in plugin
    By Otharath in forum Client Plugins / Lua Scripts
    Replies: 3
    Last Post: June 12th, 2010, 10:58 AM
  5. Replies: 0
    Last Post: April 9th, 2010, 12:21 AM

Posting Permissions

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