Sign in to follow this  
Followers 0
Swimming_Bird

Trickey EULA

10 posts in this topic

#1 ·  Posted (edited)

How would i go about making a pretty tricky eula where a user would have to click on a word that looks normal to accept it.

something like this:

Legal blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah

If you understand and accept the preceeding terms click here.

at which point they would have to click on the word here to get the script to work.

I was thinking of perhaps trying to hide a radio button under the word and just having an error pop up when someone trys to click done without having selected that radio button.

Edited by Swimming_BIrd

Share this post


Link to post
Share on other sites



here ya go

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 323)

GUICtrlCreateLabel("Legal blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah" &_ 
@CRLF & @CRLF & "",20,20,360,200)

GUICtrlCreateLabel("If you understand and accept the preceeding terms click",20,230,270,20)

$In_label = GUICtrlCreateLabel("here.", 290,230, 60, 20)
GUISetState()

While 1
 $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $In_label
        MsgBox(0,"Test", "You have accepted the terms") 
    EndSelect
Sleep(20)
WEnd

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Awesome!!!

This is badass,

Now one question, this is the code i am using:

If $eula = 1 Then
    ExitLoop
Else 
    MsgBox ( 0 , "Error" , "Please read the EULA and confirm that you understand it.")
EndIf

how can i make it so the first time this runs w/o $eula = 1 it gives one error, then 2nd time a different error, then 3rd time another error, then finally the 4th time it shows them a picture about how to do it. BTW this is all within a While and Select loop.

Unless you have a legal time assiting you in writing our EULA, you are most likely digging yourself a hole. Legalese is a tricky business.

<{POST_SNAPBACK}>

Ya, i got compliance and legal writing the EULA, its not actually an EULA i just couldnt think of a better term for it. Edited by Swimming_BIrd

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

$t=""

If $eula = 1 Then

ExitLoop

Else

$T= $T + 1

if $t = 1 thenMsgBox ( 0 , "Error" , "Please read the EULA and confirm that you understand it.")

if $t = 2 then.........bla

EndIf

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Thanks

Edited by Swimming_BIrd

Share this post


Link to post
Share on other sites

is this the correct way to do greater then or equal to?

If $T >= 4 Then

Share this post


Link to post
Share on other sites

yepper

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

how do you put images in msg boxes?

Share this post


Link to post
Share on other sites

you dont.... not in a message box

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0