Author Topic: DEVELOPERS: (mod info) WM_COPYDATA command interface  (Read 37770 times)

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: developers: WM_COPYDATA command interface
« Reply #30 on: April 11, 2008, 09:24:57 pm »
e_-:

Where does the code call FindWindow() to get the Audiosurf window's handle?

e_-

  • Newbie
  • *
  • Posts: 41
    • AOL Instant Messenger - hohoho
    • View Profile
Re: developers: WM_COPYDATA command interface
« Reply #31 on: April 11, 2008, 09:38:51 pm »
e_-:

Where does the code call FindWindow() to get the Audiosurf window's handle?

It finds the Audiosurf window in the constructor of the class.

    Public Sub New()
        Dim Handle As IntPtr = FindWindow(Nothing, "Audiosurf")
        If Handle.Equals(IntPtr.Zero) Then
            MessageBox.Show("Audiosurf window not found! Closing...", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
            Application.Exit()
        End If
        AudiosurfHandle = Handle
    End Sub

This is how the class is used:

        Dim Audiosurf As New ASMethods
        Audiosurf.SendString("ascommand playsongvegas c:\nin - way out.mp3")

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: developers: WM_COPYDATA command interface
« Reply #32 on: April 11, 2008, 10:24:58 pm »
Try using a path that doesn't have spaces.

e_-

  • Newbie
  • *
  • Posts: 41
    • AOL Instant Messenger - hohoho
    • View Profile
Re: developers: WM_COPYDATA command interface
« Reply #33 on: April 11, 2008, 11:07:40 pm »
Wow. I'm a total moron. It seems I extracted the damn beta wrong. I put it in common\audiosurf\engine\, instead of common\audiosurf so it ended up making an engine folder inside the first engine folder :3

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: developers: WM_COPYDATA command interface
« Reply #34 on: April 13, 2008, 07:01:43 pm »
i lol'd! hope it works now haha

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: [New 4.26] developers: WM_COPYDATA command interface
« Reply #35 on: April 26, 2008, 02:45:28 pm »
Bump. New commands added 4.26.

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: [New 4.26] developers: WM_COPYDATA command interface
« Reply #36 on: April 26, 2008, 02:48:45 pm »
Awesome. Msn plugin time

LockeDown

  • Customizable
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 532
  • "We're gonna need to watch that again..."
    • View Profile
    • Steam Profile
Re: [New 4.26] developers: WM_COPYDATA command interface
« Reply #37 on: April 27, 2008, 02:55:23 am »
Awesome. Msn plugin time

omg - i was just coding this myself...

any luck?


Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: [New 4.26] developers: WM_COPYDATA command interface
« Reply #38 on: April 27, 2008, 02:55:58 am »
i.....havent started :P
but in theory it should take 10 mins, i've already got the stuff i need setup
i've just been fixing bugs in my player app.

LockeDown

  • Customizable
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 532
  • "We're gonna need to watch that again..."
    • View Profile
    • Steam Profile
Re: [New 4.26] developers: WM_COPYDATA command interface
« Reply #39 on: April 27, 2008, 02:58:35 am »
cool well then i'll let ya get to it then...

See if this helps ya out:
http://forum.mess.be/index.php?showtopic=8367

Id love to test this out soon as its ready.


Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: [New 4.26] developers: WM_COPYDATA command interface
« Reply #40 on: April 27, 2008, 03:07:30 am »
That's nifty source. Actually that looks a lot like what I already do hehe. Except instead of doing that crazy recursive for/if dealy, I've just got a foreach and some case statements :P

cathfaern

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [New 4.26] developers: WM_COPYDATA command interface
« Reply #41 on: April 27, 2008, 04:35:57 pm »
Why "ascommand setwindowpositionsize" makes the window always on top? It's a bug, or it's intended? I hope the former because if the latter, it can't be used for resizing in window mode.

Mod: If think it's a bug, 'cause it only gets the the alwaysontop, but not the runwithoutfocus effect.

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: [New 4.26] developers: WM_COPYDATA command interface
« Reply #42 on: April 30, 2008, 05:17:51 pm »
cathfaern: Thanks, that's fixed in the 4.30 patch

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #43 on: May 18, 2008, 07:50:54 pm »
it'd be nifty if audiosurf could send the filename of the .ash for the song it's playing. right now i can kind of hack it together, but it's not entirely reliable.

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: DEVELOPERS: (mod info) WM_COPYDATA command interface
« Reply #44 on: May 20, 2008, 09:43:09 am »
Sure, I'll add that.