Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / How do you get somthing to auto start when the computer starts

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 3rd Aug 2003 02:38
I've asked this question before but i never really got a clear answer to it and now that i really need to know...I think ill ask it again.

Last time i asked the responses were edit the Registry and put a shortcut in the start up folder

If i have to use the start up folder then can ombody please tell me where it is. I have searched for Start up on my computer and cat find it. The only thing remotly like it was a folder holding an MSN-Hotmail shortcut. This cant be it otherwise how do Norton/firewall msn and all the other useless anoying crap that builds up in the system tray get there (also the start up folder doesnt seem to beon every pc in the same place)

So i would rather not use the start up folder method

Norton etc.. must use the registry to get them started

How do you edit the registry to mek a program start up automaticaly.
(please dont say "enter the value HKEY_Local_wierdoblahblahlabh" i need to know how to do that. Is there some program that does it.
Some people may have heard of "Install Maker/Pro". the pro version can do somthing abomut reg entries. Does anyone know how to do it with this.
or even better (but i doubt it) can dbpro get a program to auto start.

Lets say
the exe has to run when the computer starts up.
The exe is:
C:\Program files\My project\Main.exe
what do i do to the registry - with what program - to get this exe to run on start up
>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 3rd Aug 2003 03:20
C:\WINDOWS\Start Menu\Programs\StartUp
KamaKase
23
Years of Service
User Offline
Joined: 29th Oct 2002
Location:
Posted: 3rd Aug 2003 03:26
Yeah, just put the file in that folder.
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 3rd Aug 2003 03:28
nope
that folder doesnt exist.
windows xp home here.
although i found
C:\WINDOWS\system32\config\systemprofile\Start Menu
which then branched off to
C:\WINDOWS\system32\config\systemprofile\Start Menu\Programs\Startup
C:\WINDOWS\system32\config\systemprofile\Start Menu\Programs\Accessories

so which is it...
(still hopes sombody knows how do do the registry

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
The One Ring
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: United States
Posted: 3rd Aug 2003 05:19
Add it to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry key. Please note that you need admin privledges to access and modify the registry in WinXP Pro (not sure about home).

Good, bad... I'm the guy with the gun. - Ash in Army Of Darkness(1993).
http://www.geocities.com/the_one_ring
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 3rd Aug 2003 05:27 Edited at: 3rd Aug 2003 05:27
Quote: "please dont say "enter the value HKEY_Local_wierdoblahblahlabh" i need to know how to do that. Is there some program that does it."


Probably, but if you can cope with DBPro coding, I'm sure you can handle Regedit.

Regedit for beginners

1. Click the START button

2. Click the RUN button

3. Type in "regedit" (without the quotes)

4. Click the OK button

5. At the top of the tree on the left, you will see a computer icon with the text "My Computer"

6. Below that, you will see a folder with "HKEY_CURRENT_USER" written next to it. Click the arrow next to "HKEY_CURRENT_USER" to expand it.

7. Expand the SOFTWARE folder which appears when you expand HKEY_CURRENT_USER.

8. Expand the MICROSOFT folder.

9. Expand the WINDOWS folder

10. Expand the CURRENTVERSION folder

11. Expand the RUN folder

On the right hand side of the Regedit screen, you will now see a list of items, which link to applications to be run on startup.

To add a new item, right-click in the right-hand area of the regedit screen, and select NEW > STRINGVALUE

12. For the name, call it whatever you want. Double click on the new item, and put the path (eg: C:\DBPDev\myapp.exe) in the VALUE DATA field and click OK.


And there you have it, easy

Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 3rd Aug 2003 16:21
ok cool infact now i know where to put the value i think i can get this done automaticlayy using Install Maer Pro

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 3rd Aug 2003 17:18
actually i take that statement back.
Is there a dll file available that can edit the registry.
A sort of:
Call dll. reg edit
edit registry "My computer\HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN","Multiplayer game","C:\program files\dbrpo\proj\Game1.exe"

you know

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
Kanzure
23
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 3rd Aug 2003 17:49 Edited at: 3rd Aug 2003 17:50
There is such thing as a reg file yah know I recently forgot how to do it, but what the heck..

make a file called "me.reg" on your desktop, in it include:
------------
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun]


-------------
but..I don't know what variables it has in that key, somebody else will have to take over...^_^


(Also other ways to do it - C/C++ & VisualBASIC )

Shock
AGK Developer
23
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 3rd Aug 2003 18:03
9x C:\WINDOWS\Start Menu\Programs\StartUp
xp C:\Documents and Settings\All Users\Start Menu\Programs\Startup



Sticking feathers up your butt doesn't make you a chicken.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Aug 2003 18:37
Have a look here : http://www.darkbasicpro.com/apollo/view.php?t=14139&b=1

Look near the end. This is *a* way to create/update registry keys.
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 00:43
@ kanzur
yeah i was hoping sombody would say that and i know its possible to do it with vb...there was an example on a site but...the example was in a corupted zip

@shockforge
i think we'll go with the registry idea

@ianm
about to

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
Shock
AGK Developer
23
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 4th Aug 2003 00:47
lol

Sticking feathers up your butt doesn't make you a chicken.
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 00:56
so i put some stuff like this into a .reg file. If i was to get dbpro to Execute file "my entry.reg" would it work. rather than double clicking and what exactly do i have to write. Details.

My Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

Value data would be:
C:\Program Files\Dark Basic Software\Dark Basic Professional\projects\Main.exe

Value name would be:
Myexecutable

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 01:21 Edited at: 4th Aug 2003 01:23
Hmmm, not sounding to be paranoid, but what exactly are you wanting to install on people's pc's to autostart everytime they reboot. This is how quite a few viruses and keypress loggers work.

I doubt if any DB program is important enough to have to start on every boot.

anyhow here is the code:

Be aware this goes into HKEY_LOCAL_MACHINE rather than HKEY_CURRENT_USER

The programmer formerly known as sonic
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 01:23 Edited at: 4th Aug 2003 01:28
Oops, code snippet messes up, look in source box

[EDIT] IGNORE source box as well. This forum messes up backslashes in code snippets and source box.

OK, use what's in THIS code snippet but replace asterisks with backslashes!



The programmer formerly known as sonic
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 02:18
lol
im seting up like an msn chat thingy
it will never fly
but i still wana make it for the hell of it
(i need to make a program to rub in my mates face)

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 02:25
and that goes in a .reg file that when executed will write that key to the regsitry.

f$="SOFTWARE*Microsoft*Windows*CurrentVersion*Run"
k$="Myexecutable"
v$="C:*Program Files*Dark Basic Software*Dark Basic Professional*projects*Main.exe"
write string to registry f$,k$,v$

havnt you missed a bit out
shouldnt f$="My Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 02:50
Oh dear, this is getting painful!

A few posts ago you asked how to setup registry from DB. I have just given you the program. Just replace the asterisks with backslashes. I had to do this because this forum strips out backslashes in posts.

What I have given you means you DON'T need a .reg file.

A .reg file is an easy way to setup entries in the registry just by double clicking it but you can't execute .reg commands from within DB.

As far as I know DB autoselects HKEY_LOCAL_MACHINE as the root of any registry commands. I don't think you can change to HKEY_CURRENT_USER.

The programmer formerly known as sonic
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 02:56
i dont feel any pain
im aware of that asterisk thing
to be specific i said dbpro
and that write string to registry doesnt exist in dbpro

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 03:09
What patch are you running. That command has been in there ages as far as I know!

The programmer formerly known as sonic
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 03:12
I think that command was added in patch 2. We are now testing 5!!!

The programmer formerly known as sonic
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 03:15
patch 4?!
hang on let me check

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 03:20
yes i am running patch 4
well
at least if i try to run the p4 update it tells me that its up to date and everything is fine.
so there
and unless this command has appeared in the patch 5 thing i dont really want beta programs fubasing my computer
id rther wait for the ufll thing

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 03:21
hmm
but then again
the minute i update the ide it works

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 03:29
Agree with you that separate patches and IDE updates is a stupid way of having things!

From the patch 4 help:

"All registry commands now manipulate LOCAL_MACHINE settings (rather than mixed local machine and current user)"

This means that any registry commands will update the area of the registry that is used by ALL users of the PC, not just the currently logged in user.

The programmer formerly known as sonic
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 4th Aug 2003 03:52
im going to bed

>>TerraByte. Putting the Byte back into Terragramming<<
Bo Selecta!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Aug 2003 03:58
Me too, I'm falling asle.. zzzZZZzzzZZZ zzzZZZzzzZZZ

The programmer formerly known as sonic

Login to post a reply

Server time is: 2026-07-23 03:44:20
Your offset time is: 2026-07-23 03:44:20