| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jun 27, 2002 12:11 pm Post subject: Question... |
|
|
Hello, I am fairly new to VDS and have some questions that I can't figure out. If someone can answer any of these questions it would be greatly appreciated.
- Is there a way to add or remove an application from the startup group? Is it possible to use that method on all OS's? Example: On win98 or 95, the path to the startup group is c:\windows\profiles\all users\start menu\programs\startup, but on windows xp it goes like c:\documents and settings\all users\start menu\programs\startup. Mabye it would work with the registry entry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run? But what would I write to the registry to add it and delete to remove it?
- Does the VDSELM.DLL browser work on computers where Internet Explorer is not installed?
- If I were to make a Tip of the Day program, I know how to load all of the tips in using LIST LOADFILE, but I don't know how to save what tip I was on and and how to advance the tip one the next time the program starts. I can use an INI file, but how do I find out which tip I am on to save it?
- How would I specify "hotkeys" such as 1,2,3 or a,b,c or ctrl+alt+shift+a without using a menu? Is there a .DLL for that?
- How would I apply a different style to a multi-line editbox when the user chooses a color, font, etc... I am trying to make a Notepad-like program.
- I am trying to make a label of a checkbox white because a am making an application with a black background. Is it not possible to create a checkbox with a white label? The label will not show up white for me.
The code I am using for this is (in VDS 4.5):
| Code: | DIALOG CREATE,The Dialog,-1,0,401,232,ONTOP,COLOR BLACK
DIALOG ADD,STYLE,WHITE,,,,,WHITE
DIALOG ADD,CHECK,CBOX1,168,11,284,18,Show at the Windows Start Up,1,,,WHITE
DIALOG SHOW |
- Finally, altough this question isn't very VDS related, if someone knows the answer it would be helpful. On the DialogScript.com web site, the URL to download the VDS 4.5 is
[http://www.dialogscript.com/cgi-bin/prod-en/prod.exe?showrec(W1008,W1008,100001)].
What does the prod.exe do and how could you make an exe on a web site using VDS?
Thanks in advance to anyone who can answer these. _________________ FreezingFire
VDSWORLD.com
Site Admin Team
Last edited by FreezingFire on Thu Jun 27, 2002 3:48 pm; edited 2 times in total |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jun 27, 2002 3:41 pm Post subject: |
|
|
- removed post - _________________ FreezingFire
VDSWORLD.com
Site Admin Team
Last edited by FreezingFire on Tue Jul 09, 2002 3:02 pm; edited 1 time in total |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Jun 27, 2002 6:46 pm Post subject: Re: Lots of Questions... |
|
|
OK, FiringFreezer Here's a couple of answers for ya.
| Quote: | | - Is there a way to add or remove an application from the startup group? Is it possible to use that method on all OS's? Example: On win98 or 95, the path to the startup group is c:\windows\profiles\all users\start menu\programs\startup, but on windows xp it goes like c:\documents and settings\all users\start menu\programs\startup. Mabye it would work with the registry entry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run? But what would I write to the registry to add it and delete to remove it? |
Try to read from the registry like this:
%%startfolder = @REGREAD(CURUSER,Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,Startup)
That gives you the location of the system's Startup folder. Then use LINK CREATE to create the appropriate shortcut there.
| Quote: | | - Does the VDSELM.DLL browser work on computers where Internet Explorer is not installed? |
VDSELM requires Internet Explorer 3.0 or higher to work.
| Quote: | | - If I were to make a Tip of the Day program, I know how to load all of the tips in using LIST LOADFILE, but I don't know how to save what tip I was on and and how to advance the tip one the next time the program starts. I can use an INI file, but how do I find out which tip I am on to save it? |
Should not be too difficult. Let your program advance to the appropriate place in your list using LIST SEEK,list name,record No.
pick the record from your list using @ITEM(). Now you know exactly which one you used so save the position in an INI file
or the registry and next time advance your LIST SEEK by 1.
| Quote: | | - How would I specify "hotkeys" such as 1,2,3 or a,b,c or ctrl+alt+shift+a without using a menu? Is there a .DLL for that? |
The VDSDLL has hotkey support.
| Quote: | - I am trying to make a label of a checkbox white because a am making an application with a black background. Is it not possible to create a checkbox with a white label? The label will not show up white for me.
The code I am using for this is (in VDS 4.5):
| Code: |
dialog CREATE,The Dialog,-1,0,401,232,ONTOP,COLOR BLACK
dialog ADD,STYLE,WHITE,,,,,WHITE
dialog ADD,CHECK,CBOX1,168,11,284,18,Show at the Windows Start Up,1,,,WHITE
dialog SHOW
|
|
Hmmm, actually there might be a VDS bug here! I just cannot make it work either. But a workaround is possible
(even though it has the drawback that you cannot toggle the check box by clicking the text):
| Code: |
dialog CREATE,The Dialog,-1,0,401,232,ONTOP,COLOR BLACK
dialog ADD,STYLE,WHITE1,,,,BLACK,WHITE
dialog ADD,CHECK,CBOX1,168,11,18,18,,1,,,WHITE1
dialog ADD,TEXT,TEXT1,170,30,,,Show at Windows Start Up,,WHITE1
dialog SHOW |
| Quote: | - Finally, altough this question isn't very VDS related, if someone knows the answer it would be helpful. On the DialogScript.com web site, the URL to download the VDS 4.5 is
[http://www.dialogscript.com/cgi-bin/prod-en/prod.exe?showrec(W1008,W1008,100001)].
What does the prod.exe do and how could you make an exe on a web site using VDS |
That's a CGI program which is called. The part after the ? char are parameters being passed to
the program to let it perform some specific action. Most CGI progs are coded in Perl (extension .pl or .cgi),
but CGI programs may be coded in VDS as well - Garrett has published an example:
http://www.vdsworld.com/index.php?page=download&fileid=113
If you wanna code a CGI for a Web site, be aware that not all space providers allow you to place
executable files there because of the security risks involved.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Jun 27, 2002 7:33 pm Post subject: |
|
|
Hi again!
Gave that little problem with the checkbox a little thought. Here's another workaround that lets you use
the text besides the box to toggle the state, too:
| Code: |
dialog CREATE,The Dialog,-1,0,401,232,ONTOP,COLOR BLACK
dialog ADD,STYLE,WHITE1,,,,BLACK,WHITE
dialog ADD,CHECK,CBOX1,168,11,18,18,,1,,,WHITE1
dialog ADD,TEXT,TEXT1,170,30,,,Show at Windows Start Up,,WHITE1,CLICK
dialog SHOW
:evloop
wait event
%%event = @event()
goto %%event
:TEXT1click
%A = @sendmsg(@win(~CBOX1),$0F0,0,0)
if @equal(%A,1)
%%dummy = @sendmsg(@win(~CBOX1),$0F1,0,0)
else
%%dummy = @sendmsg(@win(~CBOX1),$0F1,1,0)
end
goto evloop
:CLOSE
|
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Jun 27, 2002 9:05 pm Post subject: Questions... |
|
|
Thank you, this information was very helpful and is appreciated!  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|