Digital Paint Discussion Board

Development => General Development => Topic started by: Shadow on November 20, 2009, 09:21:27 AM

Title: Itunes Control App
Post by: Shadow on November 20, 2009, 09:21:27 AM
hey i just wrote my very first program in visual basic :P
it loads paintball if its not already running and runs in the background so u can control itunes through paintnall
 i think u could have coded it much better but as said its the first thing i ever made in vb im happy it works . currently it looks like this ,

(http://img262.imageshack.us/img262/1858/sshot001.th.jpg) (http://img262.imageshack.us/i/sshot001.jpg/)

(http://img262.imageshack.us/img262/4291/sshot002.th.jpg) (http://img262.imageshack.us/i/sshot002.jpg/)

and my question is if the setenv command sets an environment variable and if that works , cause for me it seems thats not so :( would make the things much easier :)
Title: Re: Itunes Control App
Post by: ViciouZ on November 20, 2009, 09:32:22 AM
It works.

Code: [Select]
]setenv variable test
]setenv variable
variable=test

The code uses putenv and getenv to do this.
Title: Re: Itunes Control App
Post by: Shadow on November 20, 2009, 09:36:40 AM
is this pb internally ?
or could i acces them with vb ?
thx for the quick reply ;)


k its a lil bit strange ...

If i set an environment variable in vb pball doesnt recognize it .

and if i set a e.v. in pball vb doesnt get it .

If i add an registry key to HKLM\System\Control\Session Manager\Environment ...
pball displays it but when i change it with pball nothing happens to the value of the key.
Title: Re: Itunes Control App
Post by: ViciouZ on November 20, 2009, 12:49:08 PM
Just did some more research - I don't think that this code works the way it is intended on windows, and platform specific code would have to be added for it to work.
Title: Re: Itunes Control App
Post by: UDead on December 10, 2009, 11:28:03 AM
Is this running from the game to iTunes or is it like having iTunes open with music while playing the game but just having the controls ingame? How much of a lag does it have I.E. does this slow you computer down? Is the control panel always visible or only when you are in the ingame menu?
Title: Re: Itunes Control App
Post by: Shadow on April 26, 2010, 05:48:24 AM
its like having itunes open with musik and having the controls ingame
for me it doesnt lag at all
its only in the ingame menu visible
Title: Re: Itunes Control App
Post by: UDead on April 26, 2010, 12:32:13 PM
for some people it will lag, because having too many things running will slow your PC/mac down.