Author Topic: Itunes Control App  (Read 2738 times)

Shadow

  • PGP
  • Posts: 15
Itunes Control App
« 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 ,





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 :)

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Itunes Control App
« Reply #1 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.

Shadow

  • PGP
  • Posts: 15
Re: Itunes Control App
« Reply #2 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.
« Last Edit: November 20, 2009, 12:29:20 PM by Shadow »

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Itunes Control App
« Reply #3 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.

UDead

  • Autococker
  • Posts: 592
Re: Itunes Control App
« Reply #4 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?

Shadow

  • PGP
  • Posts: 15
Re: Itunes Control App
« Reply #5 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

UDead

  • Autococker
  • Posts: 592
Re: Itunes Control App
« Reply #6 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.