Thought I'd share an idea I had [tho it may not be original].
I was looking to do an EULA in a project. The project canvas is 800x600 and set to fullscreen, and I didnt want the EULA to be the same size. This prompted me to think about doing it in another project where I can make the canvas about 300x300-ish with the usual Accept/Decline. Decline was obviously gonna Application.Exit and Accept would take the user to the second project executable. What was puzzling me was how to stop the user running the second exe without accepting the EULA.
I thought about having 'Accept' write something to somewhere and the second exe would verify this upon Project.OnInitialize. I need to stay away, however, from writing to the HDD coz chances are good the user may be running a diskless system. Additionally, writing to the registry may not be allowed.
[Time for Coffee and Twinkies and a new thinking cap.]
My 'problem' was solved with the custom dll that Brett compiled to allow writing to the clipboard. Accept would write "something" to the clipboard and the second exe would verify this by way of:
(Project.OnInitialize)
File.CallDLLfunction ..."blah"
<font color=blue>IF %Clipboardtext% != "something"</font color=blue>
%Result% = Dialog.MessageBox "You do not have access ..." OK
Application.Exit
<font color=blue>END IF</font color=blue>
Job Done! I hope someone else can use this too.
Thanx again Brett [img]/ubbthreads/images/icons/smile.gif[/img]
I was looking to do an EULA in a project. The project canvas is 800x600 and set to fullscreen, and I didnt want the EULA to be the same size. This prompted me to think about doing it in another project where I can make the canvas about 300x300-ish with the usual Accept/Decline. Decline was obviously gonna Application.Exit and Accept would take the user to the second project executable. What was puzzling me was how to stop the user running the second exe without accepting the EULA.
I thought about having 'Accept' write something to somewhere and the second exe would verify this upon Project.OnInitialize. I need to stay away, however, from writing to the HDD coz chances are good the user may be running a diskless system. Additionally, writing to the registry may not be allowed.
[Time for Coffee and Twinkies and a new thinking cap.]
My 'problem' was solved with the custom dll that Brett compiled to allow writing to the clipboard. Accept would write "something" to the clipboard and the second exe would verify this by way of:
(Project.OnInitialize)
File.CallDLLfunction ..."blah"
<font color=blue>IF %Clipboardtext% != "something"</font color=blue>
%Result% = Dialog.MessageBox "You do not have access ..." OK
Application.Exit
<font color=blue>END IF</font color=blue>
Job Done! I hope someone else can use this too.
Thanx again Brett [img]/ubbthreads/images/icons/smile.gif[/img]
Comment