Digital Paint Discussion Board
Development => General Development => Topic started 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 :)
-
It works.
]setenv variable test
]setenv variable
variable=test
The code uses putenv and getenv to do this.
-
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.
-
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.
-
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?
-
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
-
for some people it will lag, because having too many things running will slow your PC/mac down.