G.D.G. Software Forum

Support and community forum dedicated to our products:
HTML Executable - ExeOutput for PHP - Paquet Builder - GConvert - GSplit - AniTuner - CHM To Exe
It is currently Sun May 20, 2012 7:12 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Sep 13, 2011 4:58 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 5:05 pm
Posts: 17
Hello!
Which code is there to insert and automatically write the licencee and registration number of the user?
Thank you.
Jeandestrie


Top
 Profile  
 
PostPosted: Fri Sep 16, 2011 8:52 am 
Offline
Technical Support
User avatar

Joined: Wed Nov 06, 2002 9:52 am
Posts: 3193
Location: www.gdgsoft.com
HTMLExe already inserts the registered name in the about box.
If you want to add the registration number of the user, you have to tell me whether you are making an IE publication or HTML viewer one.


Top
 Profile  
 
PostPosted: Fri Sep 16, 2011 11:45 am 
Offline
User avatar

Joined: Sun Jul 03, 2011 5:05 pm
Posts: 17
Hello,
I am makin an IE publication.
Thanks,
Jeandestrie


Top
 Profile  
 
PostPosted: Fri Sep 16, 2011 5:06 pm 
Offline
Technical Support
User avatar

Joined: Wed Nov 06, 2002 9:52 am
Posts: 3193
Location: www.gdgsoft.com
It will be a bit complicate but here are the steps:
- in the UserMain script, create an HEScript string function:

Code:
function GetUserKey: String;
begin
 Result := GetProperty("UserKey", "")
end;


- insert the following JavaScript in the HTML code of the about box:

Code:
<script language="Javascript">
 document.write(window.external.GetHEScriptCom("UserMain.GetUserKey", ""));
</script>


Top
 Profile  
 
PostPosted: Sun Sep 18, 2011 9:41 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 5:05 pm
Posts: 17
Hello,
Thank you! I have tried the both scripts, but I get the message that Usermain is not defined.
Is that because the script must require the name of the user that must be given in the inscription box?
I wish it worked.
Jeandestrie.


Top
 Profile  
 
PostPosted: Tue Sep 20, 2011 3:58 pm 
Offline
Technical Support
User avatar

Joined: Wed Nov 06, 2002 9:52 am
Posts: 3193
Location: www.gdgsoft.com
In the Behavior and Scripting tab, "User Scripts" page: there is no UserMain script?


Top
 Profile  
 
PostPosted: Mon Sep 26, 2011 8:25 am 
Offline
User avatar

Joined: Sun Jul 03, 2011 5:05 pm
Posts: 17
Thank you! It works just fine now.
Jeandestrie


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot 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:
Jump to:  
cron
Copyright G.D.G. Software © 2010-2012  - Powered by phpBB® Forum Software © phpBB Group

phpBB SEO