# Trickey EULA

## Recommended Posts

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

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 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)

##### Share on other sites

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.

##### Share on other sites

Awesome!!!

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 on other sites

\$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

##### Share on other sites

Thanks

Edited by Swimming_BIrd

##### Share on other sites

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

If \$T >= 4 Then

yepper

8)

##### Share on other sites

how do you put images in msg boxes?

##### Share on other sites

you dont.... not in a message box

8)

## Create an account

Register a new account

×

• Wiki

• Back

• Git