Jump to content
WAPT Forum
Sign in to follow this  
Guest apj

Quick JavaScipt example

Recommended Posts

Guest apj

Hello,

 

Can i get a small javascipt example just to display what WAPT can do with javascript support.

 

Also, i want to know where to check the logs if we write anything into logs from javascript.

 

Thanks,

AJ

Share this post


Link to post
Share on other sites

This is an example of JavaScript which generates GUID and outputs it to log:

 

var lib = new ActiveXObject("Scriptlet.TypeLib");

var guid = lib.GUID;

log.message(guid.substring(1, 37)); // XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

 

You can see the generated value in the log viewer.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...