Thread: Resurgence-Skin
View Single Post
Old 26th January 2007, 17:13   #3
eagle3386
Member
 
eagle3386's Avatar
 
Join Date: Dec 2002
Location: » Earth » Europe » Germany » Saxony » Ore Mountains
Posts: 64
Send a message via ICQ to eagle3386
Hammerhead,

thanks for your quick reply!

I do got some knowledge about programming and I already tried to do that according to this function:
PHP Code:
// ------------------------------------------------------------------------------
// called by the system when the global hotkey for notification is pressed
// ------------------------------------------------------------------------------
System.onShowNotification() {
  if (
checkPref(1)) return;
  
createNotifier();
  
String str;
  if (
getStatus() == STATUS_PLAYINGstr "Playing";
  if (
getStatus() == STATUS_PAUSEDstr "Playback Paused";
  if (
getStatus() == STATUS_STOPPEDstr "Playback Stopped";
  
showNotifier(fillNextTrackInfo(str));
  
complete// prevents other scripts from getting the message
  
return 1// tells anybody else that might watch the returned value that, yes, we implemented that

So, my first try looks like this:
PHP Code:
// ------------------------------------------------------------------------------
// called by the system when the global hotkeys for volume changing are pressed
// ------------------------------------------------------------------------------
System.onVolumeChanged() {
  if (
checkPref(1)) return;
  
createNotifier();
  
String str;
  
str "Volume: " integerToString(getVolume());
  
showNotifier(fillNextTrackInfo(str));
  
complete// prevents other scripts from getting the message
  
return 1// tells anybody else that might watch the returned value that, yes, we implemented that


But whenever I try to compile this with mc.exe, I get an error..

My command prompt looks like this:
Quote:
C:\Programme\System\Winamp\Skins\Code_Resurgence\scripts>mc.exe notifier.m
MC - Maki Compiler v1.1.3
(c)2001, Nullsoft Inc.

Preprocessing...
#include config.mi: file not found at attribs.m:8
Included from notifier.m:2
Preprocessor error, aborting
Exited with code 6

C:\Programme\System\Winamp\Skins\Code_Resurgence\scripts>
eagle3386 is offline   Reply With Quote