AutoHotkey Community

It is currently May 27th, 2012, 12:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 290 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15, 16, 17 ... 20  Next
Author Message
 Post subject:
PostPosted: June 11th, 2009, 2:16 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
You may need the registration part only in one of the programs, but having in both does not hurt. Including the copy protection in more programs should not be a problem. They can share the same ini.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 4th, 2009, 4:36 am 
Offline

Joined: March 18th, 2009, 3:06 pm
Posts: 17
Location: Minnesota, USA
Huge thank you to Laszlo and Icarus. This great.

I've got the software protection working with my software. Now I'm looking for a nice way to also include a number of licenses when I send the registration code back to my clients. For example I have one admin application, and 300 client applications I just need to be able to embed the number 300 into the reg code and be able to pull it back out into a variable on the customer's admin application after they have registered . Is something like this easy to do?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 2nd, 2009, 11:46 pm 
I tried using the earlier today, but kept getting errors when entering my registration number.

I'll try again when I have a few minutes and ask for help then.

Would it be possible to create a registration key that only allowed x number of days use, or x number uses. ?

I'd be interested in allowing users 2 days use of my script, before they needed to register.. would that be possible ??

Thank you.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2009, 11:45 pm 
Finally got round to trying this and have it working with the scripts from this post :

http://www.autohotkey.com/forum/post-145321.html#145321

Is that the correct one ??

Do I need to specify the keys ??
Code:
SWP_Initialize( 0x81645732, 0x19573549 )   ; Up to 8 secret keys,
What format do they need to be in ??

Do I need to add them to SWProtect-Internal.ahk & SWProtect-GUI.ahk ??

Thanks for your time :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2009, 6:14 am 
Offline

Joined: March 18th, 2009, 3:06 pm
Posts: 17
Location: Minnesota, USA
Hi Tom,
This line already has the 2 examples in it.
Code:
SWP_Initialize( 0x81645732, 0x19573549 )


You can also add up to 8 keys like this. There's only 4 keys in this example.
Code:
SWP_Initialize( 0x81645732, 0x19573549, 0x48528796, 0x44445555 )


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2009, 6:20 am 
Offline

Joined: March 18th, 2009, 3:06 pm
Posts: 17
Location: Minnesota, USA
Oh, also, You just need this portion in your script just like you have it now, being that you said it was working. It shouldn't be added to SWProtect-Internal.ahk or SWProtect-GUI.ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2009, 10:41 am 
Thanks pkutter

I've got it working with out any keys, I presume I need the same keys in my script and the keygen script.

Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2009, 10:50 am 
Offline

Joined: November 24th, 2005, 8:16 am
Posts: 851
Tom,

It is not advisable to use it without any keys.
These are the secret keys that separate your code generation from other people.

Using two is probably enough, and yes, you need to use the same in your app and keygen.

_________________
Sector-Seven - Freeware tools built with AutoHotkey


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 20th, 2009, 7:59 pm 
Thanks :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 13th, 2010, 4:25 pm 
Offline

Joined: January 10th, 2009, 1:34 pm
Posts: 135
Location: Virginia
Hi all, I am having trouble using the secret codes.
If, i put them in, every computer gives the same computer id.

I use
SWProtect-Internal.ahk
SWProtect-GUI.ahk
both version 0.11
See page 4 this thread for those files.

When this code run -

Code:
;#Noenv
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#SingleInstance Force

SWP_Initialize( 0x81645732, 0x19573549 )    ; Up to 8 secret keys,
SWP_CheckRegistration( "somename", "somedev@email.com" )     
Gosub RunMyApp

Return
#Include SWProtect-GUI.ahk

RunMyApp:
   msgbox Registration is good, moving on
Return


Same computer id, results, for all machines tested, seems to not be working as intended.

If secret codes are removed,
Code:
SWP_Initialize()

different computer id for each different computer, appears to work as intended.

I'd like to use the secret codes, but they don't seem to be working.
Suggestions appreciated, what am I doing wrong?
Thanks.

_________________
KeyMce/GenMce - mackie emulator for pc keyboard/Convert your controller to mackie.
Midi I/O - Want to play with midi/ahk?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 13th, 2010, 8:03 pm 
Offline

Joined: November 24th, 2005, 8:16 am
Posts: 851
Weird.

When you are not sending keys to SWP_Initialize, it still uses them, only defaults.
See the declaration for SWP_Initialize

Try calling it with these keys:
SWP_Initialize( 0x11111111, 0x22222222 )

What is the result? working or not?

_________________
Sector-Seven - Freeware tools built with AutoHotkey


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2010, 9:04 pm 
Offline

Joined: January 10th, 2009, 1:34 pm
Posts: 135
Location: Virginia
Icarus wrote:
Weird.

When you are not sending keys to SWP_Initialize, it still uses them, only defaults.
See the declaration for SWP_Initialize

Try calling it with these keys:
SWP_Initialize( 0x11111111, 0x22222222 )

What is the result? working or not?


Sorry for the mess here...
My issue was with the #NoEnv.
It is important to not have #NoEnv in either the code_gen.ahk or the program.ahk otherwise the fingerprints won't match and the code generated won't unlock. I spent a while trying to figure that one out.

I have cleaned it up, deleting my posts, since they were irrelevant.

All seems to be working well.

My current script needs #NoEnv - so I looked at your code and the reference to A_OStype in the pcdata line in the swp-internal.ahk file.
Then I looked at the GetEnv in the ahk manual, it took me to the built in variables. While looking at that page, I decided to to use one of the built in vars from Operating System and User Info section, like A_OSType or A_ComputerName. This was mentioned somewhere else in this thread I think...

This gets around EnvGet - which I don't yet have a handle on yet... as well as being able to use #NoEnv in my scripts.

If you get a chance, an example of how to do envget with that long string of PCData vars might be nice.

Thanks again.

_________________
KeyMce/GenMce - mackie emulator for pc keyboard/Convert your controller to mackie.
Midi I/O - Want to play with midi/ahk?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 6:34 am 
genmce wrote:

My current script needs #NoEnv

...

If you get a chance, an example of how to do envget with that long string of PCData vars might be nice.



from orig post:

Code:
   PCdata = %COMPUTERNAME%%HOMEPATH%%USERNAME%%PROCESSOR_ARCHITECTURE%%PROCESSOR_IDENTIFIER%
   PCdata = %PCdata%%PROCESSOR_LEVEL%%PROCESSOR_REVISION%%A_OSType%%A_OSVersion%%Language%


for each variable in caps above, you will have to do something like this. forexample, the first var used, %COMPUTERNAME%

Code:
EnvGet, CompNameOutputVar, COMPUTERNAME


and then depending on your OutputVar that you choose in the EnvGet, you'd modify PCdata like so:

Code:

PCdata = %CompNameOutputVar%....


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2010, 3:55 pm 
thank you


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2010, 10:49 pm 
Would it be possible to use this script, but also add the ability to allow xx days of trial BEFORE registration ?

So a user runs my complied exe and gets told you have 5 days left to try this software..

After the 5 days they get the SW copy protection message box asking them to register.

Obviously this will need a file or registry entry writing to the local PC. (or both) Which the user could edit or delete.
But there must be a way around that ??
If the file or reg entry has been deleted then force registration ?
Could that be written by a simple installer so the script always knows the file should exist ?

Can anyone help me with this or have you tried it already ?

Thanks :)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 290 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15, 16, 17 ... 20  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi®, Exabot [Bot], Google Feedfetcher, Stigg and 30 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group