Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / March 2008

Tip: Looking for answers? Try searching our database.

Registration Form in VBA?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Desmond777 - 25 Mar 2008 11:48 GMT
Has anyone here ever had a program that lets you try the free version until
you buy the full version? You get a serial code that you have to enter to
unlock the full functions of the program. I want to have something like that
in my game.
--------------------------------------
I want the user to click a Command Button

It then looks for a text file in the same directory as the ppt.

It checks the txt for the exact code "vi5riwehrv8n323yr32y3v8Hq34yvb" if the
txt file says something else it will take you to slide 3 (Free Trial)

If it does say "vi5riwehrv8n323yr32y3v8Hq34yvb" then it will take you to
slide 2 (Registered)
--------------------------------------
Somewhere else in the ppt i want to have a text box and a command button.

If the button is pressed and the text field says "2473 4729 4734 5923" then
it should alter the txt file (or save over it) with a new text that says
"vi5riwehrv8n323yr32y3v8Hq34yvb"

If the text field has something different written into it then it should
show a message saying "Try Again"
--------------------------------------
Any Help at all would be great! Even links to some tutorials would be great
as well.

Thanks!
David M. Marcovitz - 25 Mar 2008 14:55 GMT
This seems pretty easy with VBA, but I'm not sure how secure it would
be. You might want to include tests at other times in the game to make
sure they didn't find another way to get to slide 2.

If you go to my site:

http://www.PowerfulPowerPoint.com/

and click on "More Tricks," you can look at the first couple of examples
that involve writing information to a text file. Reading and writing the
info to a text file seems like the hardest part. The rest is a simple IF
statement.

--David

Signature

David M. Marcovitz
Microsoft PowerPoint MVP
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/

> Has anyone here ever had a program that lets you try the free version
> until you buy the full version? You get a serial code that you have to
[quoted text clipped - 26 lines]
>
> Thanks!
Desmond777 - 25 Mar 2008 22:30 GMT
Thanks a lot David! I'll give it a try.

> This seems pretty easy with VBA, but I'm not sure how secure it would
> be. You might want to include tests at other times in the game to make
[quoted text clipped - 41 lines]
> >
> > Thanks!
Desmond777 - 25 Mar 2008 22:44 GMT
Edit: It worked exactly like I want it now all I need is some code that
checks the txt file for the "Magic Numbers" and determines which slide to go
to.

> Thanks a lot David! I'll give it a try.
>
[quoted text clipped - 43 lines]
> > >
> > > Thanks!
John Wilson - 25 Mar 2008 23:08 GMT
Try this sort of thing (make sure text file has only one line)

Sub checktext()
Dim checkserial As String
Dim sFile As String
Dim Ifilenum As Integer
sFile = "C:/text.txt" ' change this to suit
Ifilenum = FreeFile()
Open sFile For Input As Ifilenum
Line Input #Ifilenum, checkserial
If checkserial = "xxxxx" Then
'do whatever
Else
'do something else
End If
End Sub
Signature

Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk

> Edit: It worked exactly like I want it now all I need is some code that
> checks the txt file for the "Magic Numbers" and determines which slide to go
[quoted text clipped - 47 lines]
> > > >
> > > > Thanks!
Desmond777 - 25 Mar 2008 23:16 GMT
Perfect! Just what i was looking for. Thanks Guys!

> Try this sort of thing (make sure text file has only one line)
>
[quoted text clipped - 64 lines]
> > > > >
> > > > > Thanks!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.