Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Computer stuff & VB6
02-18-2005, 11:29 PM #1
- Join Date
- Feb 2005
- Thanked 0 Times in 0 Posts
Computer stuff & VB6
I Want To Make A Program That Loads As Soon As The Desktop On My Computer Loads And It Will Be Some Sort Of Password Prompt Of My Own. How Do I Make The Program Load As Soon As My Desktop Loads;
My Program Will Be Made From Vb6 And I Want To Be Able To Make It So Nothing Works But The Password Prompt And You Won't Be Able To Close It Unless You Give The Specific Password. I Got The Code For All That Except The Part Where The Program Can't Be Closed Or Minimized Until The Password Is In.
Please Help Me Out!
02-20-2005, 10:36 AM #2
- Join Date
- Apr 2003
- Thanked 13 Times in 13 Posts
there are several ways to run things on startup, you could put it (or a shortcut to it) in your startup directory in start menu --> username --> startup (start --> all users --> startup if u wish, on a multi-user system)
another way of doing this is to put it in the registry, eg this in vbs (its just windows script help)
WScript.ScriptFullName is just the full physical path to the file you want to run, this could just be a string such as "C:\blah\.....\file.exe"Code:WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Run\SET_DDM" , WScript.ScriptFullName, "REG_SZ"
SET_DDM is just a name for it in the registry, i used this because it was a vbs scrpit that ran on startup to set the default domain name, and clear the current username, of a windows xp machine, you could change this to MyVBFile or anything like that if you wanted
if these dont suit you go start --> run --> msconfig
sorry i cant help you with the rest i think theres always a way to close a program, maby make something run directly after it that detects if a password is run, and if it doesnt then do something (show it again, log out, wahtever
Last edited by ghell; 02-20-2005 at 10:45 AM.