Author Topic: Context menu: Play with Audiosurf  (Read 26653 times)

ANOON

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Context menu: Play with Audiosurf
« on: April 10, 2008, 05:42:30 am »
Hi,

I've created a little program program that adds a "Play with Audiosurf" context menu to your audio files. For this to work with AS you need the latest beta patch: http://www.audio-surf.com/forum/index.php/topic,2789.0.html






Download it here: www.audio-surf.nl/downloads/AudiosurfContextMenu.zip

Installation:
Unzip(!!!) the file somewhere on your disk and run it.
It will ask you if you want to install, press yes.
Leave the file where it is and open your music folder, right click a file and tadaa! :P

It's just a beta thing, tell me if you like it
« Last Edit: April 10, 2008, 02:05:29 pm by ANOON »

Dark-Sonik

  • Jr. Member
  • **
  • Posts: 78
  • Just your little rodent in blue~
    • MSN Messenger - tachykusanagi@hotmail.de
    • View Profile
    • Steam-ID
    • Email
Re: Context menu: Play with Audiosurf
« Reply #1 on: April 10, 2008, 06:58:46 am »
Pretty sweet! Gonna test it out. n.n

€dit1: Found some bugs which are kinda odd:

-When trying to play a song on "Eraser Elite", the game loads the file with the infobox saying "Eraser Elite", but on the track it's only "Eraser" (blocks disappear faster, powerups from Eraser normal, other block-layout ect.)

I can't tell if that's either a problem with the context menu or with the new Beta feature (wrong labelling of the command)

€dit2: Seems to be a bug in the commands. Playing on "Eraser" (from the context menu) shows Eraser-Characterinfo, but the track is like on "Eraser Elite". I'm gonna report that bug in the Beta-Topic.
« Last Edit: April 10, 2008, 07:06:36 am by Dark-Sonik »

VDZ

  • Sr. Member
  • ****
  • Posts: 404
  • Nooooooooeees
    • MSN Messenger - supervdz@dolfijn.nl
    • View Profile
    • Email
Re: Context menu: Play with Audiosurf
« Reply #2 on: April 10, 2008, 10:58:48 am »
Nice. Some suggestions, though:
1) Allow us to choose the character directly from the context menu. Right-click -> Audiosurf -> Mono Pro.
2) Not everybody will like #1. Here's when a settings app comes in: You open the app to configure stuff like whether it uses the program menu or the context menu menu. An option to completely turn off the Audiosurf-in-context-menu would be nice as well.
3) It would be nice if the program auto-detects whether or not Audiosurf has started yet.
4) This is on Dylan's side: It would be nice if it would receive the commands immediately when Audiosurf is running. If you use the application while Audiosurf is on the loading or seizure notice-screen, Audiosurf just ignores it.

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: Context menu: Play with Audiosurf
« Reply #3 on: April 10, 2008, 11:04:13 am »
Awesome. I've been wanting this forever.

It's not selecting Casual characters correctly, but I think that's my bug. Working on it now.

ANOON

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: Context menu: Play with Audiosurf
« Reply #4 on: April 10, 2008, 11:23:13 am »

Nice. Some suggestions, though:
1) Allow us to choose the character directly from the context menu. Right-click -> Audiosurf -> Mono Pro.

Yes, I want this myself too :D working on it

2) Not everybody will like #1. Here's when a settings app comes in: You open the app to configure stuff like whether it uses the program menu or the context menu menu. An option to completely turn off the Audiosurf-in-context-menu would be nice as well.

That's a good idea

3) It would be nice if the program auto-detects whether or not Audiosurf has started yet.

Yes this would be easy to build in if Dylan could make it send a ready status with a WM_COPYDATA (like Pwntastic said in the other topic)

4) This is on Dylan's side: It would be nice if it would receive the commands immediately when Audiosurf is running. If you use the application while Audiosurf is on the loading or seizure notice-screen, Audiosurf just ignores it.

It doesn't work at the loading screen but it does sometimes work at the seizure notice. Also working on that

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: Context menu: Play with Audiosurf
« Reply #5 on: April 10, 2008, 12:16:06 pm »
3) It would be nice if the program auto-detects whether or not Audiosurf has started yet.

Yes this would be easy to build in if Dylan could make it send a ready status with a WM_COPYDATA (like Pwntastic said in the other topic)

Just on this note, you can already do this, I use it.

Here's what my code looks like in Delphi, you should be able to convert it to C++:

Code: [Select]
// See if Audiosurf is running
    AudiosurfHandle := FindWindow(nil, 'Audiosurf');
    if AudiosurfHandle <> 0 then
      begin
        Text := 'ascommand reloadtextures';
        copyDataStruct.dwData := 0; //use it to identify the message contents
        copyDataStruct.cbData := 1 + Length(Text);
        copyDataStruct.lpData := PChar(Text);
        SendMessage(Audiosurfhandle, WM_COPYDATA, 0, LongInt(@copyDataStruct));
      end;

The first 2 lines really... set the handle, and if the handle actually has some data, i.e it got the window, then run the code.

ANOON

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: Context menu: Play with Audiosurf
« Reply #6 on: April 10, 2008, 12:34:53 pm »
Cody900 That is not what I mean, I already use WM_COPYDATA but WM_COPYDATA does not send me when as is loaded, the only thing it sends is when a ride is finished (see Dylans topic)

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: Context menu: Play with Audiosurf
« Reply #7 on: April 10, 2008, 12:41:28 pm »
Cody900 That is not what I mean, I already use WM_COPYDATA but WM_COPYDATA does not send me when as is loaded, the only thing it sends is when a ride is finished (see Dylans topic)

Yeah, but the above code shows when Audiosurf is running, that's basically the same thing.

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: Context menu: Play with Audiosurf
« Reply #8 on: April 10, 2008, 12:46:48 pm »
Almost, but not. Because when audiosurf is still loading, it won't take any input and there's no way of accurately knowing when the program is fully loaded and ready to take inputs. Just because the application is running doesnt mean its ready

ANOON

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: Context menu: Play with Audiosurf
« Reply #9 on: April 10, 2008, 01:22:12 pm »
1) Allow us to choose the character directly from the context menu. Right-click -> Audiosurf -> Mono Pro.



Tadaaa :P
and yes it really does work :D

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: Context menu: Play with Audiosurf
« Reply #10 on: April 10, 2008, 01:25:48 pm »
I certainly hope you didnt include that blah portion in the menu system :o
Hehe nice duder :)

ANOON

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: Context menu: Play with Audiosurf
« Reply #11 on: April 10, 2008, 02:00:51 pm »
New version with context menu is ready:
Download it here: www.audio-surf.nl/downloads/AudiosurfContextMenu.zip (yes same url)

The UninstallContextMenu.exe removes the old menu and the new menu if present. So run it before you install the new one or you will have 2 Play With Audiosurf options ;)

If you want to move or delete my app please run the Uninstall app first

Please say if you like it (or not :P) and report bugs to me TNX :D

PS. And no, the blah text is not part of the menu, it was just me being creative with paint  ;D
« Last Edit: April 10, 2008, 02:03:14 pm by ANOON »

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: Context menu: Play with Audiosurf
« Reply #12 on: April 10, 2008, 03:27:47 pm »
I love this.

Edit: I need to set this up so you can launch the game and get the user into their song without clicking anything.
« Last Edit: April 10, 2008, 03:34:08 pm by Dylan »

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: Context menu: Play with Audiosurf
« Reply #13 on: April 10, 2008, 04:15:56 pm »
I love this.

Edit: I need to set this up so you can launch the game and get the user into their song without clicking anything.

That's what I'm waiting for before I go into having to register the window and all that stuff.

VDZ

  • Sr. Member
  • ****
  • Posts: 404
  • Nooooooooeees
    • MSN Messenger - supervdz@dolfijn.nl
    • View Profile
    • Email
Re: Context menu: Play with Audiosurf
« Reply #14 on: April 10, 2008, 11:34:56 pm »
Again, a suggestion that Dylan would have to code for it to work: Allowing us to start in ironmode as well. A simple checkbox in that same menu, if checked it plays <character> ironmode, if unchecked it just normally plays that character.