Pages: [1]
Print
Author Topic: Tray Launcher  (Read 3056 times)
Pwntastic
Roffles The Mighty
Global Moderator
Hero Member
*****
Posts: 1797


rofflesthemighty@hotmail.com LordDosk
View Profile WWW Email
« 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 Tongue)) 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 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)

Update:
added a few optimizations carried over from my latest ASPlayer build (yep, i'm still working on that Wink and its pretty kickass)

* ASTray.zip (19.84 KB - downloaded 178 times.)
« Last Edit: April 19, 2008, 05:56:32 AM by Pwntastic » Logged


Quote from: John Carmack
it’s not “oh just thread your application”.  Anyone that says that is basically an idiot, not appreciating the problems.
iccy
Love and Peace
Global Moderator
Hero Member
*****
Posts: 521


Omoidori!


View Profile
« 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?
Logged
Pwntastic
Roffles The Mighty
Global Moderator
Hero Member
*****
Posts: 1797


rofflesthemighty@hotmail.com LordDosk
View Profile WWW Email
« 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
Logged


Quote from: John Carmack
it’s not “oh just thread your application”.  Anyone that says that is basically an idiot, not appreciating the problems.
iccy
Love and Peace
Global Moderator
Hero Member
*****
Posts: 521


Omoidori!


View Profile
« 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.
Logged
Pwntastic
Roffles The Mighty
Global Moderator
Hero Member
*****
Posts: 1797


rofflesthemighty@hotmail.com LordDosk
View Profile WWW Email
« 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 Tongue

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


Quote from: John Carmack
it’s not “oh just thread your application”.  Anyone that says that is basically an idiot, not appreciating the problems.
Dylan
Developer
Administrator
Hero Member
*****
Posts: 978



View Profile WWW Email
« 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.
Logged
Pwntastic
Roffles The Mighty
Global Moderator
Hero Member
*****
Posts: 1797


rofflesthemighty@hotmail.com LordDosk
View Profile WWW Email
« 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
Logged


Quote from: John Carmack
it’s not “oh just thread your application”.  Anyone that says that is basically an idiot, not appreciating the problems.
LOL DYLAN BANNED ME
Hero Member
*****
Posts: 971


View Profile Email
« 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!!!
Logged
Tannekr
Newbie
*
Posts: 12


View Profile
« 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?
Logged
Pwntastic
Roffles The Mighty
Global Moderator
Hero Member
*****
Posts: 1797


rofflesthemighty@hotmail.com LordDosk
View Profile WWW Email
« 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
Logged


Quote from: John Carmack
it’s not “oh just thread your application”.  Anyone that says that is basically an idiot, not appreciating the problems.
Tannekr
Newbie
*
Posts: 12


View Profile
« Reply #10 on: April 15, 2008, 02:02:44 PM »

Ok, it appears to work now Smiley

Thankies
Logged
Tannekr
Newbie
*
Posts: 12


View Profile
« 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
Logged
IEF015
Newbie
*
Posts: 38


View Profile WWW Email
« Reply #12 on: April 15, 2008, 04:31:13 PM »

Oh, pwntastic...
What will you come up with next. Tongue
Logged
Pwntastic
Roffles The Mighty
Global Moderator
Hero Member
*****
Posts: 1797


rofflesthemighty@hotmail.com LordDosk
View Profile WWW Email
« 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)
Logged


Quote from: John Carmack
it’s not “oh just thread your application”.  Anyone that says that is basically an idiot, not appreciating the problems.
Pages: [1]
Print
Jump to:  


Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Rhett design by Crip | XHTML | CSS