Results 1 to 15 of 16
-
08-09-2010, 14:16 #1
[Solved] [Question] Running Applications
Okeej, a short question.
Howto alter the information of Running Applications like in for example the Winamp plugin: http://forum.teamspeak.com/showthread.php?t=57940
hope somebody know....
Cheersss
-
08-09-2010, 14:22 #2
-= TeamSpeak Fanatic =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 1,382
Activate the Plugin? ö.Ö
-
08-09-2010, 16:15 #3
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
Winamp has an SDK with which you can communicate with the player.
-
08-09-2010, 17:54 #4
Thanks for the replies, but that wasn't my question.....
I know about the winamp sdk or what ever...
I am talking about teamspeak 3
With some plugins in teamspeak 3 like the winamp plugin, they alter the "Running Application" info into information from winamp + title info.
I dont care about howto get the information from winamp. More i like to know howto make a plugin who can alter the Running Application data.
-
08-09-2010, 20:47 #5
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
Read the documentation of the sdk/plugin sdk.
You can set and modify the client properties. The property of your choice should be CLIENT_META_DATA.
For example:
Code:uint64 schid; anyID client; char* str = "Hello World!"; ... if (funcs.setClientSelfVariableAsString(schid, CLIENT_META_DATA, str) != ERROR_ok) ...
-
08-09-2010, 22:26 #6
Thnxs for the reply, works! But.....
What is a good place to post this code so that it will be recognized from startup.
cant do it @ the init cause i need the serverConnectionHandlerID.
Cheers
-
09-09-2010, 16:52 #7
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
You can iterate the serverConnectionHandlerIDs by calling getServerConnectionHandlerList.
-
17-09-2010, 23:15 #8
okeej i worked with the code!
anyways it only works when the client reconnects to the server, than the running application info gets updated.. cant seem to get it updated other than reconnecting....
i placed my code in the ts3plugin_onTextMessageEvent so i guess on every message there should be an update of the application running data, but still only @ reconnect.... need some help here, i can post the code.. but am not proud to do so :P
-
18-09-2010, 00:58 #9
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
Without code or any idea, what you are trying to do, we can't help you.
-
18-09-2010, 13:09 #10
Shall I post my visual studio 2010 project here? Or pm it to you ?
-
18-09-2010, 13:26 #11
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
Post your code here, please (if it's not so long).
I've reread your posts: which data do you want to display in your meta-data?
The onTextMessage-Event sounds like the wrong event, except you want to display textmessages in your meta-data.
-
18-09-2010, 13:36 #12
well i want the plugin + the ts3 client function as a musicbot to other ts3 users logged onto the same ts3 server.
other ts3 users can controll the ts3musicbot by sending text messages.
for example: !winamp play/stop/prev/next or !winamp url
so when a user sends a message i want to handle the winamp functions and edit the running application data. anyways give me 10 sec and i upload my code on pastebin.com
-
18-09-2010, 13:39 #13
http://pastebin.com/pSPHMXyz
this is the plugin.cpp
ps.: still working on the startswith function to handel !winamp url properly..... suggestions or help is always welcome
-
18-09-2010, 15:06 #14
-= TeamSpeak Fanatic =-
- Join Date
- Sep 2005
- Location
- Germany / Dortmund
- Posts
- 1,282
1) You need to flush your updates by calling flushClientSelfUpdate(uint64 schid) after editing any client property (see documentation).
2) Keep in mind that you need to disable the Application Scanner, because it is overwriting the meta data.
Btw: I think you are reinventing the wheel. Doesn't this plugin do what you want?
-
18-09-2010, 15:28 #15
you are correct, but i dont want it to be only winamp.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Resolved] Server 'crash', "detected incorrectly running system clock"
By meliorus in forum Linux / FreeBSDReplies: 54Last Post: 02-11-2012, 14:55 -
Linux server startup script!
By mancert in forum Linux / FreeBSDReplies: 159Last Post: 24-09-2011, 16:51 -
[Solved] client running but only in processes
By Rogue28752 in forum WindowsReplies: 5Last Post: 12-09-2010, 16:17 -
[Solved] TS3 Running as Service on W2008
By Martin_H in forum WindowsReplies: 9Last Post: 06-09-2010, 17:41 -
[Solved] virtual server id X is running elsewhere, shutting down
By willy_sunny in forum Server SupportReplies: 4Last Post: 16-03-2010, 20:57



Reply With Quote