Author Topic: Tray Launcher  (Read 12729 times)

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Tray Launcher
« on: April 13, 2008, 07:52:06 pm »
I've devised a small application to launch Audiosurf from the system tray. It is capable of then 'hiding' a running copy of audiosurf and 'quicklaunching' it on command. This is designed to use as little overhead as possible.

BTW: This application requires the .NET Framework to run

Running the application puts an icon in the system tray.
By default, double clicking the icon will toggle Audiosurf, although this is variable through use of the context menu.
Right clicking the icon brings up a menu from which you can:
-Launch Audiosurf
-Modify the quicklaunch ability
-Close the application
-kill a rogue copy of audiosurf

Let me know what you think. Feature requests, suggestions, bugs, etc

UPDATE:
Righto. I've implemented a feature to hide a running copy of audiosurf and then 'quickload' it by showing it again on command.
I've tested the hiding/showing feature a few times and it should work properly. This is not a guarantee. It is entirely possible that it will glitch and not hide audiosurf or it may hide audiosurf but fail to bring it back. If this happens, you can bring up the task manager and kill the questviewer.exe process, or you can use the 'Kill Audiosurf' failsafe i have implemented.
By default, double clicking the tray icon will hide / unhide (i.e. close / quicklaunch (but not really :P)) audiosurf. You can change this in the context menu by right clicking the icon.

Keep in mind that although this application will hide Audiosurf, it will not mute Audiosurf. I'm still working on that. You can mute the menu music ingame if you like, or just wait until it ends

Also i've added a few extra checks to verify that steam is installed. If steam is properly installed, but this application fails to detect it, the 'launch audiosurf' should still work in theory. Youll just have to deal with the warning it gives you upon loading.

Moar UPDATE:
Saves / loads settings to registry automagically
Thanks to registry saves, the steam warning will only come up one time

Update again:
I changed the icon, because i was getting bored of the audiosurf one :P
Also i set the launcher to run audiosurf in quickstart mode. when you launch audiosurf from the tray launcher, it will now skip through the menus and go straight to the character selection menu (after verifying the game files, of course)

Update:
added a few optimizations carried over from my latest ASPlayer build (yep, i'm still working on that ;) and its pretty kickass)
« Last Edit: April 19, 2008, 05:56:32 am by Pwntastic »

Rynex

  • Wisdom.
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 558
    • View Profile
Re: Tray Launcher
« Reply #1 on: April 13, 2008, 08:07:20 pm »
Can you set it up so that it easily goes into Offline Mode for people? Because that'd be a real bonus for some.

Oh, problem. The program says that it is unable to find the steam folder. I run on a 64bit, and the majority of files, including steam, install to the Program Files (x86) thing. Can you have it so that on the first run, the user can find it manually?

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: Tray Launcher
« Reply #2 on: April 13, 2008, 08:11:33 pm »
Yeah i'll look into that. It looks for the registry location, but i'll add some extra checks

Rynex

  • Wisdom.
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 558
    • View Profile
Re: Tray Launcher
« Reply #3 on: April 13, 2008, 08:14:09 pm »
Yeah i'll look into that. It looks for the registry location, but i'll add some extra checks
The program still loads, just so you know. Perhaps you can intergrate some of the other features you've got, like the score calculator and the texture mod 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: Tray Launcher
« Reply #4 on: April 14, 2008, 01:03:45 am »
Yeah I might add some stuff, but I was going for minimal overhead. I will most likely integrate this application into my other one as a side function whenever I decide to release that one :P

edit: i don't think its possible to launch games into offline mode without steam being in offline mode. I'll look into it

Dylan

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1266
    • View Profile
    • Audiosurf
    • Email
Re: Tray Launcher
« Reply #5 on: April 14, 2008, 11:45:46 am »
Works great here, nice job.

It didn't "quicklaunch" (going to character screen without interaction) mine though. Did you intend it to?

It would be cool if you could minimize Audiosurf when you hide it to take the memory footprint down. I should add that.

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: Tray Launcher
« Reply #6 on: April 14, 2008, 03:10:03 pm »
Yeah that'd be nifty. I didnt add in any sendmessage stuff to keep the filesize low and because i was lazy, but i suppose a few extra kibs for something like that could be nifty.

Anyway i'm at denver airport with about 4 min left on my laptop battery so ill just post my new version now.
The new version saves / restores your settings to the registry automatically. It's nifty

Cody900

  • Hero Member
  • *****
  • Posts: 953
    • View Profile
    • Email
Re: Tray Launcher
« Reply #7 on: April 14, 2008, 03:12:50 pm »
Yeah that'd be nifty. I didnt add in any sendmessage stuff to keep the filesize low and because i was lazy, but i suppose a few extra kibs for something like that could be nifty.

Anyway i'm at denver airport with about 4 min left on my laptop battery so ill just post my new version now.
The new version saves / restores your settings to the registry automatically. It's nifty

NOW who's worried about file size!!!

Tannekr

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Tray Launcher
« Reply #8 on: April 14, 2008, 04:23:17 pm »
Am I doing something wrong?

When I run it it just says
"The application failed to initialize properly (0xc0000135). Click on OK to terminate the application"

I'm not computer genius, so I'm sorry if I fail.  Is there something I'm not doing?

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: Tray Launcher
« Reply #9 on: April 14, 2008, 06:51:37 pm »
Ah you're missing the .NET Framework 2.0
I guess now is a good time to mention that as a requirement hehe
 
You can download the .net framework here:
http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en

Tannekr

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Tray Launcher
« Reply #10 on: April 15, 2008, 02:02:44 pm »
Ok, it appears to work now :)

Thankies

Tannekr

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Tray Launcher
« Reply #11 on: April 15, 2008, 02:32:06 pm »
Yeah, just make it minimize when you hide it.

Other then that, it works great! Even for my almost 8 year old cpu xD

IEF015

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • google ftw
    • Email
Re: Tray Launcher
« Reply #12 on: April 15, 2008, 04:31:13 pm »
Oh, pwntastic...
What will you come up with next. :P

Pwntastic

  • Roffles The Mighty
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1910
    • MSN Messenger - rofflesthemighty@hotmail.com
    • AOL Instant Messenger - LordDosk
    • View Profile
    • Pwntastic.Net
Re: Tray Launcher
« Reply #13 on: April 18, 2008, 05:40:18 pm »
Bump for update:

I changed the icon, because i was getting bored of the audiosurf one Tongue
Also i set the launcher to run audiosurf in quickstart mode. when you launch audiosurf from the tray launcher, it will now skip through the menus and go straight to the character selection menu (after verifying the game files, of course)