| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Aug 03, 2002 7:45 pm Post subject: popup windows and help file,passwords? |
|
|
hello all
i woould like to find code for the following this:
1. how to make a pop-up window with buttons ( like a about box)
2. how to make help files?
3. how you guys make a file be password? so that you have to enter the right password in before the exe runs?
4. i have seen with other program they have a mail link so when a person click the about button. they can click on a e-mail link ( whick calls up the outlook express) i have try adding a mailto: but can't get it work right
thanks |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Aug 03, 2002 7:55 pm Post subject: |
|
|
This is for a password: (this must be on the first lines)
| Code: |
%%password = password
if @not(@equal(@input(What is the password???,,PASSWORD),%%password))
exit
end
|
Use this if you want to send a email:
| Code: | | shell open,mailto:"email@email.com" |
You can make a pop-up box with the MessageBox Designer tool |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Aug 03, 2002 8:05 pm Post subject: coool |
|
|
| for the e-mail tho what is the code for the txt tho? meaning what you put in the box?like a clickable link.you follow what i mean? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Aug 03, 2002 8:21 pm Post subject: |
|
|
Here is code for an about box: | Code: | title About
DIALOG CREATE,About,-1,0,159,108
DIALOG ADD,STYLE,LINK,,,U,,BLUE
DIALOG ADD,TEXT,Yourlink,16,13,,,Your link,,LINK,CLICK,HAND
DIALOG ADD,BUTTON,OK,68,48,64,24,OK
DIALOG SHOW
:evloop
wait event
goto @event()
:yourlinkclick
warn your link was clicked
shell open,"mailto:address@domain.com?subject=your subject&body=e-mail text (the parameters after the '?' are optional.)"
goto evloop
:okbutton
:close
exit |
Note that you can use the format for sending e-mail like "mailto:address@domain.com", but make sure you put quotes around the mailto and address to prevent errors.
For help files, the easiest thing to do is to download Microsoft's HTML Help Workshop and write HTML files for the help, then compile into an HTML help file...
Hope this helps.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team
Last edited by FreezingFire on Sat Sep 28, 2002 11:28 pm; edited 1 time in total |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Aug 03, 2002 8:43 pm Post subject: great |
|
|
wow thanks
can help link and file be done? or vds can't do that? or would i be better off making a window that has the help text in it? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Aug 03, 2002 8:56 pm Post subject: |
|
|
VDS is not capable of making help files, but you can download the Microsoft HTML Help Compiler and editor from their web site, http://www.microsoft.com . Download that and try it out, it is really easy to create help files with it.
To launch a help file from you script, use code like:
| Code: | | shell open,yourfile.chm |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Aug 03, 2002 9:22 pm Post subject: hummmm |
|
|
great now if i can find it on there dumb web site
thanks all for the help  |
|
| Back to top |
|
 |
LOBO Valued Contributor


Joined: 14 Mar 2002 Posts: 241 Location: Wilmington, Delaware, USA
|
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Aug 03, 2002 9:28 pm Post subject: hummmmmm |
|
|
hummmmm i'am lookig on there web site and i don't see it? is the program free? and what is it under?
thanks |
|
| Back to top |
|
 |
LOBO Valued Contributor


Joined: 14 Mar 2002 Posts: 241 Location: Wilmington, Delaware, USA
|
Posted: Sat Aug 03, 2002 9:33 pm Post subject: |
|
|
At the bottom of the page you'll see the download links:
Download Now HelpDocs.ZIP - 1,349 Kb <- instructions
hhupd.exe - 717 Kb <- update to html help 1.32 (do not dowload for windows 2000 or xp)
htmlhelp.exe - 3,426 Kb <- the html help compiler program
htmlhelpj.exe - 1,412 Kb <- the html help compiler program for java
yes it is free |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sat Aug 03, 2002 9:49 pm Post subject: ohhhh |
|
|
i post that BEFore i new you had posted a link
thanks again guys  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sun Aug 04, 2002 5:19 pm Post subject: |
|
|
| FreezingFire wrote: | Here is code for an about box: | Code: | title About
DIALOG CREATE,About,-1,0,159,108
DIALOG ADD,STYLE,LINK,,,U,,BLUE
DIALOG ADD,TEXT,Yourlink,16,13,,,Your link,,LINK,CLICK,HAND
DIALOG ADD,BUTTON,OK,68,48,64,24,OK
DIALOG SHOW
:evloop
wait event
goto @event()
:yourlinkclick
warn your link was clicked
shell open,"mailto:address@domain.com?subject=your subject&body=e-mail text (the parameters after the '?' are optional.)"
goto evloop
:okbutton
:close
exit |
Note that you can use the format for sending e-mail like "mailto:address@domain.com", but make sure you put quotes around the mailto and address to prevent errors.
For help files, the easiest thing to do is to download Microsoft's HTML Help Workshop and write HTML files for the help, then compile into an HTML help file...
Hope this helps.  |
that code kind of works, what i mean is when i click the ok it exits the program SO i put a goto statement at the end of instaed the goto will call the beginning of the program, this works BUT if i click other button first then click on exit button this about box flash open then the program exits i don't know why yet |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Sun Aug 04, 2002 6:48 pm Post subject: ahhhh |
|
|
| ahhhh ok i think i follow you ...thanks for the link |
|
| 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
|
|