Jump to content

XProTec.au3 = automated Protect and get *Paid*


Valuater
 Share

Recommended Posts

I was just directed to this topic, and there are a lot of confusing aspects of this that I have questions about. I hope my ignorance is not to bad, but if you could explain these issues to me I would be very appreciative.

1. How exactly does XProtec verify that payment was made? In older days, I used a php script that communicated  with paypal whenever my server email received a payment email. This php script verified that the payment was in fact made. In reading what I did on these forums, all I saw was a section that looks for a window title saying thanks for payment? is that all it uses to verify payment?

2. What exactly do I need on my website other than the blacklist? Do I need a database to record anything? 

3. Does Xprotec have any ability to autoapprove people when I add updates to my software? can they use their "registration number" again on the new version of my software? Does this registration monitor hardware IDs so maybe as long as the computer is registered it keeps working?

4. In the setup, $D_Paypal link, is that the link created when I make a paypal button? This is why I asked about question 2, does this program automatically do everything, so I do not need a database with users and their registration information?

5. Do you do any consulting? I am really not a great programmer, my limitations are mainly dealing with internet stuff. I am not sure about database security and such things to ensure my protection.

Link to comment
Share on other sites

Compiled my program with yours in it, to test it out. Upon clicking my program I get a pop-up that says: "Please Register as a Developer" then gives my email and a string of characters as a key if memory serves.

Reading the initial posting about this program it says:

End user must register.

Where exactly do we register? Do ALL end users of my program have to do this? Earlier posts mentioned a donation to autoit, where exactly do we do that? 

Link to comment
Share on other sites

Compiled my program with yours in it, to test it out. Upon clicking my program I get a pop-up that says: "Please Register as a Developer" then gives my email and a string of characters as a key if memory serves.

Reading the initial posting about this program it says:

Where exactly do we register? Do ALL end users of my program have to do this? Earlier posts mentioned a donation to autoit, where exactly do we do that? 

 The "Please Register as a Developer" is in the older unsupported version. Please use the free version with your server info

All "End Users" are not developers and will need to register

The free program does not request an Autoit Donation.... But you can make one anyway!!!! 8)

8)

NEWHeader1.png

Link to comment
Share on other sites

I was just directed to this topic, and there are a lot of confusing aspects of this that I have questions about. I hope my ignorance is not to bad, but if you could explain these issues to me I would be very appreciative.

1. How exactly does XProtec verify that payment was made? In older days, I used a php script that communicated  with paypal whenever my server email received a payment email. This php script verified that the payment was in fact made. In reading what I did on these forums, all I saw was a section that looks for a window title saying thanks for payment? is that all it uses to verify payment?

2. What exactly do I need on my website other than the blacklist? Do I need a database to record anything? 

3. Does Xprotec have any ability to autoapprove people when I add updates to my software? can they use their "registration number" again on the new version of my software? Does this registration monitor hardware IDs so maybe as long as the computer is registered it keeps working?

4. In the setup, $D_Paypal link, is that the link created when I make a paypal button? This is why I asked about question 2, does this program automatically do everything, so I do not need a database with users and their registration information?

5. Do you do any consulting? I am really not a great programmer, my limitations are mainly dealing with internet stuff. I am not sure about database security and such things to ensure my protection.

 

1.

thanks for payment... is used to verify payment to the program, however you will receive an email from paypal.

2

Nothing, just the black list

3

 they can use their "registration number" again on the new version of your software, as long as the exe name has not changed. Depending on the license you chose in $U_License they email or computer info is utilized.

4

$D_Paypal link, is the link created when you make a paypal button. The program does not keep a database on users.

5

No consulting from me...

 

8)

NEWHeader1.png

Link to comment
Share on other sites

I downloaded the version from here just now, and it is what I am using.

'?do=embed' frameborder='0' data-embedContent>>

I changed the file name to XProTec without the _Free.

Is this not the correct file? Also, I did not add the smtp variables for email before I compiled, would that trigger the developer thing?

That is the correct version to use currently. The code that pops up is the developer license number. The lack of smtp info is only related to the email portion and does not interact with the dev license.

8)

NEWHeader1.png

Link to comment
Share on other sites

OK, I figured out the pop-up, and that I needed to enter that key into the program as my license number, Im a moron I guess.

I also added the smpt server, username and password data for those variables in your program.

Problem is, the program worked, but the email it sent me was NOT from my email server I put into the variables, it was from Programname@ClickTask.com. Do I need to do something differently?

Also, if I put $U_Trial = 0 will that make them pay without giving a free trial?

Edited by Leopardfist
Link to comment
Share on other sites

OK, few last questions. If I use:

$U_License = "3" ; 3 = one computer only - see license notes

Will this prevent it from reading blacklist? Or does it not read blacklist until after payment is required? I added my email to the blacklist and it still lets me open the program.

Also, where are the License Notes it refers to? I would like to read the documentation to see what all I can do with this.

Link to comment
Share on other sites

OK, few last questions. If I use:

$U_License = "3" ; 3 = one computer only - see license notes

Will this prevent it from reading blacklist? Or does it not read blacklist until after payment is required? I added my email to the blacklist and it still lets me open the program.

Also, where are the License Notes it refers to? I would like to read the documentation to see what all I can do with this.

 

Hello Leopardfist, I'm following what you are going through and I have a "variable used without being declared" error when I run the compiled program.  Have you compiled your test protected app yet and are you getting the same error?

Link to comment
Share on other sites

Hello Leopardfist, I'm following what you are going through and I have a "variable used without being declared" error when I run the compiled program.  Have you compiled your test protected app yet and are you getting the same error?

 

Yeah, I compiled it and ran it fine. I am still waiting to test the actual "purchase" and "blacklist" aspects of it though before I get ready to put it out.

Link to comment
Share on other sites

Now I am getting an error, after I changed the email from testing to the real email.

If $X_read001 <> $D_Mail Then mError("Not the Registered Developer Email  ", 5, 1)

This is the error popping on me now. I got a new License number for the new email, entered it, recompiled, and now I get this error.

**FIXED** I had to delete the registry entry to get it to work.

But I still can not seem to "Block" my email utilizing the blacklist. Can you explain exactly how the blacklist works? I added my email to the txt file, do I need to add something else?

Edited by Leopardfist
Link to comment
Share on other sites

Well, I got down to brass tax and started testing the buying feature, and it did not work at all. At first I thought it was because it looks for the string "Thank you for your payment" in the window title, and when I paid paypal I got the string "Thanks for your order"..... I changed the string to search for in the program and tried it again and still does not work. The payment goes thru, the internet explorer window closes after awhile, but I never get any email with new codes, and the program just closes when IE closes.

The code I am referring to is:

Func mRegister($Prog, $U_P, $U_T, $U_L, $T_D, $D_P, $Uinfo, $irand, $rFatal = 0)
    Local $PR1 = "Trial Period = " & $U_T & " Days  " & @CRLF & "License Type = " & $Uinfo & @CRLF & "Register Fee =  $" & $U_P
    Local $PR2 = "   " & @CRLF & "Days Since Validation = " & $T_D & @CRLF & @CRLF & "Would you like to Register Now?      " & @CRLF & @CRLF
    Local $PR3 = "*Yes*  to Register Now!" & @CRLF & "*No*  to use your previous Registration Number.      " & @CRLF & "*Cancel*  to Quit Registration." & @CRLF
    $U_ans = MsgBox(262147, $Prog, $PR1 & $PR2 & $PR3)
    If $U_ans = 6 Then
        WinMinimizeAll()
        $PID = Run('C:\Program Files\Internet Explorer\iexplore.exe "' & $D_P & '"', "", @SW_SHOW)
        WinWaitActive("")
        Local $Handle = WinGetHandle($PID), $sHTML = "", $loop = 0
        While ProcessExists($PID)
            Sleep(3000)
            If ProcessExists($PID) = 0 Then ExitLoop
            If Not StringInStr(WinGetTitle($Handle), "PayPal") And Not StringInStr(WinGetTitle($Handle), "DreamHost") Then
                If $loop = 5 Then ExitLoop
                $loop = $loop + 1
            Else
                $loop = 0
            EndIf
            If StringInStr(WinGetTitle($Handle), "Thanks for your order") Then Return 1
        WEnd
        ProcessClose($PID)
    EndIf
    If $U_ans = 7 Then
        Do
            $input1 = Qbox($Prog, "Please Paste your Registration Code below       " & @CRLF & "License Type = " & $Uinfo & "   " & @CRLF & "If not, you will need to restart - " & $Prog & "   ")
        Until $input1 = $irand
        Return 1
    EndIf
    If $rFatal Then Exit
    Return 0
EndFunc   ;==>mRegister

I also am not sure how to use the blacklist. Do I use the persons email or their name that the program gives or what? I entered my email onto my blacklist and was still able to use the program in trial mode. I took off the email before starting the purchase testing.

Link to comment
Share on other sites

The code for the blacklist is this simple...

If InetGet($D_Link & "Blacklist.txt", $rtemp, 1) = 1 Then
  $itemp = FileRead($rtemp)
  FileDelete($rtemp)
  If StringInStr($itemp, $X_read003) Or StringInStr($itemp, $ND_Mail) Then mError("This program has been abused and will now close    ", 6, 1)
 EndIf

 

You can test this by adding $D_link = "YOUR WEB SURVER INFO" and a message box at the end for testing. as stated on page 1

$D_Link = "www.mywebsite.com/.../" ; looks for "www.mywebsite.com/.../Blacklist.txt" ; see Blacklist

ALSO on page 1 ( a little lower)

3. "Blacklist.txt"

A. The "Blacklist.txt" only contains a list of un-wanted abusers of your program... example...
if the email address of the end user is in the "Blacklist.txt" the program will end.. nothing more

B. The "Blacklist.txt" is a file yoiu would put on your site ( or Autoit's Fileman ) for storage
the $D_Link = "www.Your-Web-location/" and the inetget() will look for...

www.Your-Web-location/Blacklist.txt

8)

 

NEWHeader1.png

Link to comment
Share on other sites

The code for the blacklist is this simple...

If InetGet($D_Link & "Blacklist.txt", $rtemp, 1) = 1 Then
  $itemp = FileRead($rtemp)
  FileDelete($rtemp)
  If StringInStr($itemp, $X_read003) Or StringInStr($itemp, $ND_Mail) Then mError("This program has been abused and will now close    ", 6, 1)
 EndIf

You can test this by adding $D_link = "YOUR WEB SURVER INFO" and a message box at the end for testing. as stated on page 1

$D_Link = "www.mywebsite.com/.../" ; looks for "www.mywebsite.com/.../Blacklist.txt" ; see Blacklist

ALSO on page 1 ( a little lower)

3. "Blacklist.txt"

A. The "Blacklist.txt" only contains a list of un-wanted abusers of your program... example...

if the email address of the end user is in the "Blacklist.txt" the program will end.. nothing more

B. The "Blacklist.txt" is a file yoiu would put on your site ( or Autoit's Fileman ) for storage

the $D_Link = "www.Your-Web-location/" and the inetget() will look for...

www.Your-Web-location/Blacklist.txt

8)

 

Thanks Valuater, and I am sorry for asking so many questions :(. Any idea why I am not getting a success payment register when I pay with paypal? Could it be that I used the wrong button for my Variable? It sends me to the payment page, and lets me pay, but afterwards the title of the explorer window is "Thanks for your order" instead of "Thank you for your payment" or whatever the string is you have programmed in. I tried it 4 times, even changing the string to what my window said, but it still did not take. On the window title, it does have the "P" Icon Paypal uses in front of the title, not sure fi that would matter though since strinstring doesnt have to be beginning or end.

Any suggestions would be very much appreciated though :).

Link to comment
Share on other sites

Any idea to fix this issue Valuater?

 

Thanks Valuater, and I am sorry for asking so many questions :(. Any idea why I am not getting a success payment register when I pay with paypal? Could it be that I used the wrong button for my Variable? It sends me to the payment page, and lets me pay, but afterwards the title of the explorer window is "Thanks for your order" instead of "Thank you for your payment" or whatever the string is you have programmed in. I tried it 4 times, even changing the string to what my window said, but it still did not take. On the window title, it does have the "P" Icon Paypal uses in front of the title, not sure fi that would matter though since strinstring doesnt have to be beginning or end.

Any suggestions would be very much appreciated though :).

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...