Author Topic: Request for additions to the WM_COPYDATA command interface  (Read 2335 times)

TerMight

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Request for additions to the WM_COPYDATA command interface
« on: September 15, 2008, 05:31:17 am »
I would like to request a smidge of a change to the reports, as well as some command additions

Unregistering the window
  • ascommand unregisterlistenerwindow MyWindowTitle

When successfully unregistered
  • asreport successfullyunregistered

When a song starts (in order)
  • asreport nowplayingartistname ArtistHere
  • asreport nowplayingsongtitle SongTitleHere
  • asreport nowplayingsonglength 4:20
  • asreport nowplayingsongtraffic 210
  • asreport nowplayinghashfile C:\\Audiosurf\\AudiosurfHC\\12351235 - WTFEverSong.mp3.ash
  • asreport nowplayingcharacter monopro
  • asreport nowplayingironmode true
  • asreport nowplayingpersonalbest 123046 (If personal best exists, else return 0)

When a song completes (in order)
  • asreport songcompletescore 125052
  • asreport songcompletebonus CleanFinish,Stealth,Match11
  • asreport songcompleteachievements Mach30000,Ninjitsu,Brutis,Ambush (Report these even if already unlocked, if possible)
  • asreport songcompletescoreplace 1 (The place on the scoreboard for your current character, Return 0 if it can't get the data. If possible)

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: Request for additions to the WM_COPYDATA command interface
« Reply #1 on: September 15, 2008, 08:32:29 am »
why does it matter what order the data is received in?
you already get song artist, song title, song ash, as well as the score when you finish.
I can understand wanting more, but the order you receive them in isnt all that important

TerMight

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Request for additions to the WM_COPYDATA command interface
« Reply #2 on: September 15, 2008, 08:43:45 am »
Well, I guess it really isn't important about the order. I figured since the current listing has them in order, that I would put them in some sort of order.

Also, for the artist, song, ash, etc... I was just adding the existing commands in there to demonstrate my request. Not to add these functionalities, I know they exist already :P

Mincus

  • Hero Member
  • *****
  • Posts: 2394
    • View Profile
Re: Request for additions to the WM_COPYDATA command interface
« Reply #3 on: September 29, 2008, 02:37:05 pm »
Rather than make a new thread, just tagging my thought on the bottom here.

ascommand ironmode true/false

For switching ironmode on/off.
Reason for this is I've recently started playing Pusher and I'm nowhere near good enough to play it in ironmode (although I am improving), whereas I find Mono is more fun with ironmode on, so using the little app I'm developing, having to switch ironmode on/off from a different interface to all the other song options seems a bit silly.

The rest here I think are a good idea.
Oh, and I've noticed only a single application can be registered at one time, so maybe if another application "steals" the registration then Audiosurf could tell the first app that it's been unregistered?

Edit: Additionally there's a maximise and minimise command but no restore.
The easy solution is a simple SendMessage(AudiosurfWindow, WM_SYSCOMMAND, SC_RESTORE, 0); which works but ideally we should have all commands working the same way to keep things consistent.
« Last Edit: September 30, 2008, 06:58:02 am by Mincus »