AutoHotkey Community

It is currently May 27th, 2012, 3:24 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 103 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7
Author Message
 Post subject: keygen with ahkbb
PostPosted: February 2nd, 2010, 5:32 pm 
Offline

Joined: August 3rd, 2007, 8:01 am
Posts: 555
Location: Houston, TX
genmce wrote:
Hey I tested this out and it works great!
How do I use keygen.hkml above with this?
I tried putting it in the www folder but got an error...

Try this:
www/keygen.hkml
Code:
<?ahk keygen() ?>

scripts/keygen.ahk
Code:
keygen(get, post)
{
; Initialize the secret seeds
SWP_Initialize(0x12345678, 0x12345678)   ; with optional 8 secret seeds

; Read the values
AppName := get.AppName
Version := get.Version
Name := get.Name
Email := get.Email
Fingerprint := get.Fingerprint
IP := get.IP

; Generate a key for me
Key := SWP_GenerateKey(Name, Email, Fingerprint )

; Test if user details are valid - disabled as always false for me.
; UserOK := SWP_IsUserAuthenticated(Name, Email, Key )

; Remove %20 from fields
StringReplace, Name, Name,`%20, %a_space%  , All
StringReplace, AppName, AppName,`%20, %a_space%  , All

; Record to the log file
FileAppend, %Name%`,%Email%`,%Fingerprint%`,%Key%`,%AppName%`,%Version%`,%IP%`n, Registrations.txt

return Key
; Return the generated key
; echo(Key)

; soundbeep

}
If this works for you, would you mind posting the client side scripts to use with this, using test server settings: 127.0.0.1:81

uptdates to ahkbb2.1:
1. added keygen
2. made the number of worker threads a variable (using 2 by default to make testing faster when I don't need more workers)
3. added posts and comments to ahkbb (127.0.0.1:81/ahkbb.hkml)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2010, 10:58 pm 
Offline

Joined: January 10th, 2009, 1:34 pm
Posts: 135
Location: Virginia
Thanks, will test and post after confirmed working.

It told me to download your .dll... which I did.
Do I still need the other version of the dll?
autohotkey1.dll, autohotkey2.dll ... etc?

_________________
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: dll copies
PostPosted: February 3rd, 2010, 12:05 am 
Offline

Joined: August 3rd, 2007, 8:01 am
Posts: 555
Location: Houston, TX
genmce wrote:
Thanks, will test and post after confirmed working.

It told me to download your .dll... which I did.
Do I still need the other version of the dll?
autohotkey1.dll, autohotkey2.dll ... etc?

autohotkey1.dll, autohotkey2.dll ... etc are just copies of AutoHotkey.dll.
They will be created by sparrow.core.ahk if autohotkey1.dll is not already present.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: keygen with ahkbb
PostPosted: February 10th, 2010, 2:47 am 
Offline

Joined: January 10th, 2009, 1:34 pm
Posts: 135
Location: Virginia
tinku99 wrote:
genmce wrote:
Hey I tested this out and it works great!
How do I use keygen.hkml above with this?
I tried putting it in the www folder but got an error...

Try this:
www/keygen.hkml
Code:
<?ahk keygen() ?>

scripts/keygen.ahk
Code:
keygen(get, post)
{
; Initialize the secret seeds
SWP_Initialize(0x12345678, 0x12345678)   ; with optional 8 secret seeds

; Read the values
AppName := get.AppName
Version := get.Version
Name := get.Name
Email := get.Email
Fingerprint := get.Fingerprint
IP := get.IP

; Generate a key for me
Key := SWP_GenerateKey(Name, Email, Fingerprint )

; Test if user details are valid - disabled as always false for me.
; UserOK := SWP_IsUserAuthenticated(Name, Email, Key )

; Remove %20 from fields
StringReplace, Name, Name,`%20, %a_space%  , All
StringReplace, AppName, AppName,`%20, %a_space%  , All

; Record to the log file
FileAppend, %Name%`,%Email%`,%Fingerprint%`,%Key%`,%AppName%`,%Version%`,%IP%`n, Registrations.txt

return Key
; Return the generated key
; echo(Key)

; soundbeep

}
If this works for you, would you mind posting the client side scripts to use with this, using test server settings: 127.0.0.1:81

uptdates to ahkbb2.1:
1. added keygen
2. made the number of worker threads a variable (using 2 by default to make testing faster when I don't need more workers)
3. added posts and comments to ahkbb (127.0.0.1:81/ahkbb.hkml)


I have abandoned my plan, to run a server.

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


Last edited by genmce on February 20th, 2010, 1:24 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject: POST and opera
PostPosted: February 18th, 2010, 5:41 pm 
I was stunned with functionality, until trying POST method under Opera.
Neither mine script nor included form.hkml work with opera, but are fine with IE and FF. Any clue why?


Report this post
Top
  
Reply with quote  
 Post subject: single exe
PostPosted: June 7th, 2010, 3:37 am 
I love sparrow!
though it seamed to lock up frequently and
i wanted a version i could compile to a single exe, no external files

here is the outcome
http://jamesh.s3.amazonaws.com/sparrow.zip

downfall is you cant call pictures from sparrow (you could from an outside server)

this is perfect if you are wanting to use sparrow for automating a remote/headless server

it should lock up less often too
there is also a READ ME


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2010, 6:32 am 
Offline

Joined: July 15th, 2010, 5:31 am
Posts: 10
Is there a version of this, or similar, that will run with autohotkey_l?

I get an error at line 27. Variable name contains an illegal character "Sparrow[MimeTypesLst]"

Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2010, 7:01 am 
Offline

Joined: November 23rd, 2007, 10:23 am
Posts: 841
Location: ~/.
tomf80 wrote:
Is there a version of this, or similar, that will run with autohotkey_l?

I get an error at line 27. Variable name contains an illegal character "Sparrow[MimeTypesLst]"

Thanks


These types of variable names dont work with ahk_l since this is the object notation syntax which is exclusive in ahk_l and makes such names illegal.

sparrow has been designed to run with the ahk version from Chris Mallet which is now commonly known as AHK Basic.

dR

_________________
Image
    All scripts, unless otherwise noted, are hereby released under CC-BY


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2011, 8:34 am 
:!:
Seems to be a problem with the server after weaking up computer from the Sleep state.
I cant access the server, it must be restarted.
Is it normal?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2011, 8:00 pm 
derRaphael wrote:
tomf80 wrote:
Is there a version of this, or similar, that will run with autohotkey_l?

I get an error at line 27. Variable name contains an illegal character "Sparrow[MimeTypesLst]"

Thanks


These types of variable names dont work with ahk_l since this is the object notation syntax which is exclusive in ahk_l and makes such names illegal.

sparrow has been designed to run with the ahk version from Chris Mallet which is now commonly known as AHK Basic.

dR


So will it be fixed? Or will sparrow never support the latest AHK?

TIA
ruzz


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 26th, 2011, 3:53 am 
Yeah what he said? ^^


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2011, 2:12 am 
Offline
User avatar

Joined: January 1st, 2011, 2:05 pm
Posts: 482
I was very excited to find this thread,
Then I read on... :?

It would be profoundly amazing if there were an "ahk server" that ran on Apache.

_________________
ImageImageImageImage
AHK_L = HUGE BENIFITS!!! FREE :geek: Image and :ugeek: Image!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2011, 3:11 am 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
0x150||ISO wrote:
It would be profoundly amazing if there were an "ahk server" that ran on Apache.
You could write an AutoHotkey interpreter that runs on the Apache server. As far as I know, PHP just works by Apache running the interpreter with some arguments and reads from standard output.

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 103 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, Stigg, tidbit, xXDarknessXx and 11 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