Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


SpotifyMe - XChat Plugin

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries
View previous topic :: View next topic  
Author Message
S3NSA
:3
Reputation: 1

Joined: 06 Dec 2006
Posts: 1925
Location: England.

PostPosted: Tue Mar 31, 2009 5:59 pm    Post subject: SpotifyMe - XChat Plugin Reply with quote

Info:
Use this plugin to show what you're playing in spotify whenever you're on XChat.
Simply type "/Spotify" after loading the plugin, hit enter and it will tell everyone what you're listening to, for example:
* S3NSA is listening to: La Roux Quicksand (Beni's Sinking at 1.56 Mix)

Source:
Code:
#include <windows.h>
#include "xchat-plugin.h"
#pragma  comment(linker, "/BASE:0x00d40000")

static char szPluginName[]        = "SpotifyMe";
static char szPluginDescription[] = "Prints your song currently playing in Spotify to the current X-Chat window.";
static char szPluginVersion[]     = "0.01";

static xchat_plugin* ph;

__declspec(thread) CHAR szWindowTitle[500]; // Sod any song that is over 500 characters long

static int spotify_cb(__in_z char* word[], __in_z char* word_eol[], __in void* userdata)
{
  HWND  hWnd;

  UNREFERENCED_PARAMETER(word);
  UNREFERENCED_PARAMETER(word_eol);
  UNREFERENCED_PARAMETER(userdata);

  hWnd = FindWindow(TEXT("SpotifyMainWindow"), NULL);
  if (hWnd != NULL)
    if (GetWindowTextA(hWnd, szWindowTitle, _countof(szWindowTitle)) != 0)
      if (strcmp(szWindowTitle, "Spotify") != 0)
        xchat_commandf(ph, "me is now listening to: \002%s\002", szWindowTitle + 10);
  return XCHAT_EAT_ALL;
}

EXTERN_C __declspec(dllexport) void xchat_plugin_get_info(__out_z char** name, __out_z char** desc, __out_z char** version, __in __reserved void** reserved)
{
  UNREFERENCED_PARAMETER(reserved);

  *name     = szPluginName;
  *desc     = szPluginDescription;
  *version  = szPluginVersion;
}

EXTERN_C __declspec(dllexport) int xchat_plugin_init(__in xchat_plugin *plugin_handle, __out_z char **plugin_name, __out_z char **plugin_desc, __out_z char **plugin_version, __out_z char *arg)
{
  ph = plugin_handle;

  UNREFERENCED_PARAMETER(arg);

  *plugin_name    = szPluginName;
  *plugin_desc    = szPluginDescription;
  *plugin_version = szPluginVersion;

  xchat_hook_command(ph, "spotify", XCHAT_PRI_NORM, spotify_cb, "Usage: SPOTIFY, Prints your currently playing song on Spotify", 0);

  xchat_print(ph, "SpotifyMe loaded!\r\n");
  return 1;
}


Download:
http://rapidshare.com/files/215954921/SpotifyMe.dll
http://localhostr.com/files/1cd3a2/SpotifyMe.dll

_________________
~ You can find me on irc.ccplz.net x
Back to top
View user's profile Send private message Visit poster's website
Renagadeh
How do I cheat?
Reputation: 0

Joined: 25 Jun 2009
Posts: 1

PostPosted: Fri Jun 26, 2009 6:59 am    Post subject: Reply with quote

After loading the plugin, xChat crashes when you type "/spotify"
Back to top
View user's profile Send private message
petert
How do I cheat?
Reputation: 0

Joined: 03 Jan 2010
Posts: 1

PostPosted: Sun Jan 03, 2010 11:01 am    Post subject: Spotifyme Reply with quote

I had this installed on my other computer, Windows Vista, and it worked absolutely fine, but on my Windows XP computer it crashes when trying to be used. The only difference between the computers is that my Vista computer has TCL installed.

YChat
Back to top
View user's profile Send private message
smint
How do I cheat?
Reputation: 0

Joined: 21 Jul 2012
Posts: 1
Location: Norway

PostPosted: Sat Jul 21, 2012 5:08 pm    Post subject: Reply with quote

Hey buddy. I am hosting a internet radio show and I use Spotify as source of music.

Can you edit this plugin so it says: Now Playing etc etc. And make it announce automatically when a new song starts in Spotify.

I would really appreciate it.

Thanks from Ruben, Norway.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites