<?xml version="1.0"?>
<rss version="2.0"><channel><title>JavaScript Latest Topics</title><link>https://www.autoitscript.com/forum/forum/51-javascript/</link><description>JavaScript Latest Topics</description><language>en</language><item><title>Beginer to JavaScript</title><link>https://www.autoitscript.com/forum/topic/208989-beginer-to-javascript/</link><description><![CDATA[<p>
	Any suggestions on where to start learning JavaScript?
</p>

<p>
	Seems to be a overwhelming amout of options. 
</p>

<p>
	 
</p>]]></description><guid isPermaLink="false">208989</guid><pubDate>Tue, 11 Oct 2022 20:58:45 +0000</pubDate></item><item><title>Gapless playback of multiple audio files in the browser</title><link>https://www.autoitscript.com/forum/topic/211051-gapless-playback-of-multiple-audio-files-in-the-browser/</link><description><![CDATA[<p>
	Is there a way to do that? I tried several different approaches and none of them worked, the two most promising approaches I tried were:
</p>

<ol>
	<li>
		My own DIY double-buffer solution which listens for the `timeupdate` event on two audio elements and tries to start playback of the other one just a little while before the other ends, but the resolution is nowhere near high-enough for this to work.
	</li>
	<li>
		<a href="https://github.com/regosen/Gapless-5" rel="external nofollow">Gapless-5 </a>- Even this fails and introduces small pauses in-between the files, even though it's supposed to work perfectly.
	</li>
</ol>

<p>
	I was actually streaming audio which arrives in little chunks of MP3s encoded as base64, so that might make the task a bit harder. I converted the strings to Blobs in my experiments.
</p>
]]></description><guid isPermaLink="false">211051</guid><pubDate>Sun, 05 Nov 2023 12:28:20 +0000</pubDate></item><item><title>javascript assistance</title><link>https://www.autoitscript.com/forum/topic/208622-javascript-assistance/</link><description><![CDATA[<p>
	This is supposed to insert the "item[value]" into the third input in a form but it's not. I'm clearly using "find("input", 3)" incorrectly, I was trying and hoping it would work like this, but it actually only finds the first element. And when I use it properly and remove the 3, it sets the value in all the inputs. How can I rewrite this to find "X" index position element in the "$(this).closest(".item-row")" and set what I need to?
</p>

<pre class="ipsCode prettyprint lang-autoit">
$(this).closest(&quot;.item-row&quot;).find(&quot;input&quot;, 3).attr(&quot;value&quot;, item[&quot;value&quot;]);</pre>

<p>
	Thanks.
</p>]]></description><guid isPermaLink="false">208622</guid><pubDate>Thu, 04 Aug 2022 17:48:50 +0000</pubDate></item><item><title>What is the feasibility of this UI feature (correcting incorrect graph lines)?</title><link>https://www.autoitscript.com/forum/topic/207052-what-is-the-feasibility-of-this-ui-feature-correcting-incorrect-graph-lines/</link><description><![CDATA[<p>
	 I will be digitizing(scanning) [ICU Graphs][1] i.e over which patient vitals will be plotted(eg. heart rate wrt time) using a machine learning model. However the lines may need to be 'nudged' up and down sometimes by a person (a human-in-the-loop) to correct them. 
</p>

<p>
	The approach will be similar to how we move the lines to [crop an image in camscanner][2] i.e user only move the vertices.
</p>

<p>
	How can we go about implementing the UI(say in a JS framework like Angular/React) to allow the user to move these lines up and down and correct them?
</p>

<p>
	<br />
	  [1]: https://i.stack.imgur.com/iEHqL.png<br />
	  [2]: https://i.stack.imgur.com/ghG6S.png
</p>]]></description><guid isPermaLink="false">207052</guid><pubDate>Sun, 21 Nov 2021 11:22:12 +0000</pubDate></item><item><title>User Script - Make Video Playlist</title><link>https://www.autoitscript.com/forum/topic/207035-user-script-make-video-playlist/</link><description><![CDATA[<p>
	Hello. I need to write a User Script to add videos to created playlists. On the video watch page on the right, there are recommended videos.<br />
	When cursor on thumbnail upper-right on icon appears plus sign, when cursor on that plus sign appears list of user's playlists and by clicking on playlist name video adding to playlist and appears plus sign located right of playlist name. If video already in some playlist, when cursor on thumbnail plus sign, plus sign already located right of playlist name.<br />
	I think it must be like JS function copy thumbnail, link and video name, after adding that on playlist page. Playlist page initially is some cleared page of site, for example page that doesn't exist - when you put wrong address that's written. User Script saves data to appear it on that page.<br />
	On the playlist page, you can remove videos from it. There is also a page set in the code where you can create or delete a playlist. When creating, along with the name, the address of an empty page is set to which the video will be added.<br />
	On the video viewing page, a plus sign is also needed under it so that this video can be added.
</p>

<p>
	This is the code for the thumbnail on the right of the page.<br />
	&lt;div id="node-1001410" class="node node-video node-sidebar_teaser clearfix" data-toggle="tooltip" data-placement="top" title="" data-original-title="VIDEO NAME"&gt;<br />
	    &lt;div&gt;<br />
	        &lt;div class="icon-bg"&gt;<br />
	                            &lt;div class="right-icon likes-icon"&gt;<br />
	                    &lt;i class="glyphicon glyphicon-heart"&gt;&lt;/i&gt; 795                &lt;/div&gt;<br />
	            <br />
	            &lt;div class="left-icon likes-icon"&gt;<br />
	                &lt;i class="glyphicon glyphicon-eye-open"&gt;&lt;/i&gt; 37.7k            &lt;/div&gt;
</p>

<p>
	                    &lt;/div&gt;<br />
	        &lt;div class="field field-name-field-video field-type-video field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;a href="/videos/gf45ugh5ca"&gt;&lt;img src="https://Full IMG Address" width="141" height="84" alt="VIDEO NAME" title="VIDEO NAME"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;<br />
	            &lt;/div&gt;
</p>

<p>
	    &lt;/div&gt;<br />
	&lt;div&gt;
</p>

<p>
	On the video viewing page, to add to the playlist, you need to extract the poster address from part of the code<br />
	&lt;div poster = "//Full IMG Address" ...&gt;
</p>

<p>
	Title from here <br />
	&lt;h1 class = "title"&gt; VIDEO NAME &lt;/h1&gt;
</p>

<p>
	I think it's worth copying the number of likes and views from here<br />
	&lt;div class="node-views"&gt;&lt;i class="glyphicon glyphicon-heart"&gt;&lt;/i&gt; 380 &lt;i class="glyphicon glyphicon-eye-open"&gt;&lt;/i&gt; 17,716 &lt;/div&gt;
</p>

<p>
	I rely on you.
</p>]]></description><guid isPermaLink="false">207035</guid><pubDate>Thu, 18 Nov 2021 01:56:08 +0000</pubDate></item><item><title>Can javascript change the variable value via the byref like au3?</title><link>https://www.autoitscript.com/forum/topic/205910-can-javascript-change-the-variable-value-via-the-byref-like-au3/</link><description><![CDATA[
<p>
	Reference website:
</p>

<p>
	<a href="https://www.quanzhanketang.com/ajax/tryajax_header.html?filename=tryajax_header" rel="external nofollow">https://www.quanzhanketang.com/ajax/tryajax_header.html?filename=tryajax_header</a>
</p>

<p>
	Reference Code:
</p>

<pre class="ipsCode prettyprint lang-autoit">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

&lt;p&gt;The getAllResponseHeaders() function returns the header information of a resource, like length, server-type, content-type, last-modified, etc.&lt;/p&gt;

&lt;button onclick=&quot;loadDoc()&quot;&gt;Get header information&lt;/button&gt;

&lt;p id=&quot;demo&quot;&gt;&lt;/p&gt;

&lt;script&gt;
function loadDoc() {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (xhttp.readyState == 4 &amp;&amp; xhttp.status == 200) {
      document.getElementById(&quot;demo&quot;).innerHTML = xhttp.getAllResponseHeaders();
    }
  };
  xhttp.open(&quot;GET&quot;, &quot;ajax_info.txt&quot;, true);
  xhttp.send();
}
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>

<p>
	I modify it as follows:
</p>

<pre class="ipsCode prettyprint lang-autoit">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

&lt;p&gt;The getAllResponseHeaders() function returns the header information of a resource, like length, server-type, content-type, last-modified, etc.&lt;/p&gt;

&lt;button onclick=&quot;loadDoc()&quot;&gt;Get header information&lt;/button&gt;

&lt;p id=&quot;demo&quot;&gt;&lt;/p&gt;

&lt;script&gt;
var arh=&quot;&quot;;
function requery() {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (xhttp.readyState == 4 &amp;&amp; xhttp.status == 200) {
       arh = xhttp.getAllResponseHeaders();
    }
  };
  xhttp.open(&quot;GET&quot;, &quot;ajax_info.txt&quot;, true);
  xhttp.send();
}
function loadDoc(){
  requery();
  document.getElementById(&quot;demo&quot;).innerHTML = arh;}
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>

<p>
	Results can be obtained, but need click twice, not sure why.....
</p>

<p>
	Modify it once again as follows:
</p>

<pre class="ipsCode prettyprint lang-autoit">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

&lt;p&gt;The getAllResponseHeaders() function returns the header information of a resource, like length, server-type, content-type, last-modified, etc.&lt;/p&gt;

&lt;button onclick=&quot;loadDoc()&quot;&gt;Get header information&lt;/button&gt;

&lt;p id=&quot;demo&quot;&gt;&lt;/p&gt;

&lt;script&gt;
arh=&quot;&quot;;
function requery(header) {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function(header) {
    if (xhttp.readyState == 4 &amp;&amp; xhttp.status == 200) {
      header=xhttp.getAllResponseHeaders();
    }
  };
  xhttp.open(&quot;GET&quot;, &quot;ajax_info.txt&quot;, true);
  xhttp.send();
}
function loadDoc(){
  requery(arh);
  document.getElementById(&quot;demo&quot;).innerHTML = arh;}
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>

<p>
	but no result.
</p>

<p>
	if Au3,
</p>

<pre class="ipsCode prettyprint lang-autoit">
function requery(byRef header) {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function(header) {
    if (xhttp.readyState == 4 &amp;&amp; xhttp.status == 200) {
      header=xhttp.getAllResponseHeaders();
    }
  };
  xhttp.open(&quot;GET&quot;, &quot;ajax_info.txt&quot;, true);
  xhttp.send();
}</pre>

<p>
	it can use the function 'requery' to change the value of the-address-parameter 'header', but do not know how with js
</p>

<p>
	Please share  experiences with me,
</p>

<p>
	more thanks in advance!
</p>
]]></description><guid isPermaLink="false">205910</guid><pubDate>Sun, 23 May 2021 03:45:11 +0000</pubDate></item><item><title>Mobile Pinch zoom problem</title><link>https://www.autoitscript.com/forum/topic/199237-mobile-pinch-zoom-problem/</link><description><![CDATA[
<p>
	Hi,
</p>

<p>
	I'm working on an interface and I have a problem with zoom management. In desktop mode it works and in android cell mode it seems to work fine too. However, on a Windows tablet, it seems to have a problem ... Basically what I'm trying to do is display a modal in bootstrap 4. But when on the tablet I zoom, my modal s really big and out of my screen. On the android mobile, I remove the zoom before displaying the modal but on the Windows tablet I am unable to reproduce the same behavior.
</p>

<p>
	 
</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px;line-height:115%;color:#000000;">
	My toggle function to reset zoom before display modal  ( <span style="color:#000000;">Yeah it maybe sketches but I'm not find other solutions</span>)
</p>

<pre class="ipsCode prettyprint lang-javascript">
function resetZooming() {   

    if (zoomOut) {

        $(&#39;meta[name=viewport]&#39;).attr(&#39;content&#39;, &#39;width=device-width, initial-scale=1.0, maximum-scale=1&#39;);

        setTimeout(resetZooming, 1000);

        zoomOut = false;

    }else{

        $(&#39;meta[name=viewport]&#39;).attr(&#39;content&#39;, &#39;width=device-width, initial-scale=1.0&#39;);

        zoomOut = true;

    } 

}</pre>

<p>
	And I call this function under my event
</p>

<pre class="ipsCode prettyprint lang-javascript">
$(&quot;#modalCreationForm&quot;).modal(&quot;show&quot;);
resetZooming();</pre>

<p>
	 
</p>

<p>
	If you have any ideas
</p>

<p>
	Thank you
</p>
]]></description><guid isPermaLink="false">199237</guid><pubDate>Tue, 11 Jun 2019 12:56:21 +0000</pubDate></item><item><title>Javascript Object Constructor</title><link>https://www.autoitscript.com/forum/topic/202636-javascript-object-constructor/</link><description><![CDATA[
<p>
	Hi there, 
</p>

<p>
	I have recently started learning Javascript. Now I started working with Objects. I got some problems when I want to define my own Object with it's own methods. The code looks like this:
</p>

<pre class="ipsCode prettyprint lang-javascript">
function Model(){

  var model = document.createElement(&quot;div&quot;);
  return model;
  
  this.append = function(parent) {
  	
    document.getElementById(parent).appendChild(model);
  
  }
  
}

var farm = new Model();
farm.append(&quot;map&quot;);</pre>

<p>
	The result should have looked like this: 
</p>

<pre class="ipsCode prettyprint lang-html">
&lt;div id=&quot;map&quot;&gt;

  &lt;div&gt;&lt;/div&gt;
  
&lt;/div&gt;</pre>

<p>
	But instead the "map" container is empty. The result I wanted is, that the new element I created with the object Model() is appended to the "map" container by using the .append()  method. But instead it doesn't seam to happen like that. I do not get any error messages in the console even when using try - catch method. I have also tried the Object Prototypes like in the example bellow:
</p>

<pre class="ipsCode prettyprint lang-javascript">
function Model() {
	var model = document.createElement(&quot;div&quot;);
  	return model;
}

Model.prototype.append = function(parent) {
 
  document.getElementById(parent).appendChild(this);
  
}

var farm = new Model();
farm.append(&quot;map&quot;);</pre>

<p>
	.. but the same story happen. The question is what am I doing wrong here? I am waiting for your answers.
</p>

<p>
	Thanks in advance!
</p>
]]></description><guid isPermaLink="false">202636</guid><pubDate>Tue, 05 May 2020 17:17:50 +0000</pubDate></item><item><title>HTML FORM IF..then</title><link>https://www.autoitscript.com/forum/topic/199399-html-form-ifthen/</link><description><![CDATA[
<p>
	Hello there <span class="ipsEmoji">😉</span> I'm stuck google is not helping me,  I need a little help form you guys..
</p>

<p>
	This is the scenario if any of Hongkong1, Hongkong2 and Hongkong3 value is greater than "0" then Noodle value is equal to "1", ill be using this on our Daily Inventory <span class="ipsEmoji">😓</span>
</p>

<pre class="ipsCode prettyprint lang-autoit">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;

&lt;h2&gt;HTML Forms&lt;/h2&gt;

&lt;form action=&quot;/action_page.php&quot;&gt;
 NOODLES:
  &lt;input type=&quot;text&quot; name=&quot;Category&quot; value=&quot;&quot; size=&quot;2&quot;&gt;
 &lt;br&gt;
 &lt;br&gt;
 Hongkong1:
  &lt;input type=&quot;text&quot; name=&quot;Hongkong1&quot; value=&quot;&quot; size=&quot;2&quot;&gt;
  &lt;br&gt;
  Hongkong2:
  &lt;input type=&quot;text&quot; name=&quot;Hongkong2&quot; value=&quot;&quot; size=&quot;2&quot;&gt;
  &lt;br&gt;
 Hongkong3:
  &lt;input type=&quot;text&quot; name=&quot;Hongkong3&quot; value=&quot;&quot; size=&quot;2&quot;&gt;
  &lt;br&gt;&lt;br&gt;
  &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;
&lt;/form&gt; 

&lt;/body&gt;
&lt;/html&gt;</pre>

<p>
	 
</p>

<p>
	Any Idea?, Thank you.. <span class="ipsEmoji">😘</span>
</p>
]]></description><guid isPermaLink="false">199399</guid><pubDate>Wed, 26 Jun 2019 11:47:53 +0000</pubDate></item><item><title>Convert localhost to absolute local path</title><link>https://www.autoitscript.com/forum/topic/197012-convert-localhost-to-absolute-local-path/</link><description><![CDATA[
<p>
	We make a lot of apps with a web page interface for various departments in the company to use. When writing or making changes to an app, we usually run the server code locally for testing changes.
</p>

<p>
	My boss wants me to automate this process by using Postman to send a set group of variables to the locally running server code, then compare the returned pdf with a control pdf to make sure they are still identical.
</p>

<p>
	Since the server code is running locally, it's hosted on "localhost:port" but javascript can't read a file at a path "localhost:port//somename.pdf" so I need to convert localhost:port to the absolute path where the local server script is actually running. Is there a way to do this?
</p>
]]></description><guid isPermaLink="false">197012</guid><pubDate>Sun, 16 Dec 2018 18:46:17 +0000</pubDate></item><item><title>NodeJS promise function chaining</title><link>https://www.autoitscript.com/forum/topic/197786-nodejs-promise-function-chaining/</link><description><![CDATA[
<p>
	I have to functions, each return a promise. I need to execute the first function 2x, then when it's done, execute the 2nd function 2x
</p>

<p>
	currently it's set up in this format
</p>

<pre class="ipsCode prettyprint lang-autoit">
async function somename (parameters) {
  promise = new Promise((resolve, reject)=&gt; {
    do stuff;
  };
  complete = await promise;
};

async function somename2 (parameters) {
  promise = new Promise((resolve, reject)=&gt; {
    do stuff;
  };
  complete = await promise;
};

somename(parameters).then((onReturn) =&gt; {
  somename(newparameters).then((onReturn) =&gt; {
    somename2(parameters).then((onReturn) =&gt; {
      somename2(newparameters).then((onReturn) =&gt; {
        do stuff;
      })
    })
  })
})</pre>

<p>
	Ideally I'd like to just call the first function 2x, then wait for both to finish, then call the next one 2x and wait for both of those to finish. That way each pair of functions is running at the same time.
</p>
]]></description><guid isPermaLink="false">197786</guid><pubDate>Fri, 15 Feb 2019 14:20:05 +0000</pubDate></item><item><title>How to access listbox in java using javaIT4xjava jar</title><link>https://www.autoitscript.com/forum/topic/197384-how-to-access-listbox-in-java-using-javait4xjava-jar/</link><description><![CDATA[
<p>
	 
</p>

<pre class="ipsCode prettyprint lang-autoit">
i am able to access listbox successfully in autoscript but facing problem while accessing in java using javaITx4java jar&nbsp;
Please find code for autoIT script


#include &lt;GuiListBox.au3&gt;
Dim $winhandle
Dim $hdlList
Local $appTitle=&quot;PROKEY - NK1: [keine Datei geladen]&quot;;
Local $entryDialogTitle=&quot;InputAccel-Dokumentenliste&quot;;
ControlFocus($appTitle,&quot;&quot;,&quot;SVWORK2&quot;)
WinWaitActive($appTitle)
Sleep(2000)
WinMenuSelectItem($appTitle,&quot;&quot;,&quot;EAntrag&quot;,&quot;Stapel ausw&auml;hlen&quot;)
Sleep(2000)
Local $diawin = WinGetHandle($entryDialogTitle)
Local $cidListActive = &quot;[CLASS:ListBox; INSTANCE:1]&quot;
If Not IsHWnd($diawin) Then
&nbsp;&nbsp;&nbsp; ConsoleWrite(&quot;not handle $diawin&quot;)
&nbsp;&nbsp; Exit
Else
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ;MsgBox(&quot;handle&quot;,&quot;&quot;,&quot;&quot;)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ConsoleWrite(&quot;handle $diawin&quot;&amp;@CRLF)
EndIf
$hdlList = ControlGetHandle($diawin, &quot;&quot;,$cidListActive)
If Not IsHWnd($hdlList) Then
&nbsp;&nbsp; ConsoleWrite(&quot;not handle $hdlList&quot;)
&nbsp;&nbsp; Exit
Else
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ConsoleWrite(&quot;handle $hdlList&quot;&amp;@CRLF)
EndIf
&nbsp;&nbsp; Local $num =&nbsp; _GUICtrlListBox_GetCount($hdlList)
ConsoleWrite(&quot;num&nbsp; &quot;&amp;$num&amp;@CRLF)
&nbsp;
&nbsp;
For $i = 0 To $num-1 Step 1
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Local $itemText = _GUICtrlListBox_GetText($hdlList,$i)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; ConsoleWrite($itemText&amp;@CRLF)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;If $itemText==&quot;MMM_KL20190104_94909&quot; Then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _GUICtrlListBox_ClickItem($hdlList,$i)
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ExitLoop
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; EndIf
Next
&nbsp;
ConsoleWrite()
;Local $selItem = _GUICtrlListBox_ClickItem($hdlList,1)
ControlClick($entryDialogTitle,&quot;OK&quot;,&quot;Button2&quot;)

check code for java using autoitxjava
 String appTitle=&quot;PROKEY - NK1: [keine Datei geladen]&quot;;

             String entryDialogTitle=&quot;InputAccel-Dokumentenliste&quot;;

             final String JACOB_DLL_TO_USE = System.getProperty(&quot;sun.arch.data.model&quot;).contains(&quot;32&quot;) ? &quot;jacob-1.19-x86.dll&quot; : &quot;jacob-1.19-x64.dll&quot;;          

             File file = new File(System.getProperty(&quot;user.dir&quot;)+&quot;\\alib&quot;,JACOB_DLL_TO_USE);

             System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath());           

             AutoItX control = new AutoItX();

             Utility.isProcessOpen();

             Utility.openApp(driver, service);

             control.controlFocus(appTitle,&quot;&quot;,&quot;SVWORK2&quot;);

             control.winWaitActive(appTitle);

             control.winMenuSelectItem(appTitle,&quot;&quot;,&quot;EAntrag&quot;,&quot;Stapel ausw&auml;hlen&quot;); </pre>

<p>
	i have mention both code here issue is accessing listbox in java
</p>

<ol><li style="background-color:rgb(255,255,255);color:rgb(33,33,33);font-size:11pt;">
		 
	</li>
</ol>]]></description><guid isPermaLink="false">197384</guid><pubDate>Wed, 16 Jan 2019 15:32:11 +0000</pubDate></item><item><title>Stuck on a jquery plugin [solved]</title><link>https://www.autoitscript.com/forum/topic/196798-stuck-on-a-jquery-plugin-solved/</link><description><![CDATA[
<p>
	We have a small function we use in our server code to periodically send messages to a web page interface to notify the user of key steps in the process.
</p>

<p>
	This is in the form of
</p>

<pre class="ipsCode prettyprint lang-autoit">
function sendMsg(body, flag = null) {
	ws.send(JSON.stringify({ body: body, flag: flag }));
}</pre>

<p>
	where body is the information and the flag is the type of message
</p>

<p>
	I'm trying to make the receiving of the messages a jQuery plugin and where I'm having an issue. It does all the processing it's supposed to do but I can't get it to return data back to the web page for me to grab.
</p>

<pre class="ipsCode prettyprint lang-autoit">
//create websocket (endpoint as argument)
(function ( $ ) {
    $.MakeSocket = function( options ) {
        settings = $.extend({
            // These are the defaults.
            endpoint: &#39;&#39;,
            data	: &#39;&#39;,
            success	: {},
            error	: {},
            open	: {},
            exit	: {}
        }, options );
 		var wsURI;
        if (window.location.protocol === &quot;https:&quot;) {
			wsURI = &quot;wss:&quot;;
		} else {
			wsURI = &quot;ws:&quot;;
		}
		wsURI += &quot;//&quot; + window.location.host;
		wsURI += window.location.pathname + settings.endpoint;
		
		var socket = new WebSocket(wsURI);
			socket.onopen = function() {
				settings.open = {body: null, flag: &#39;OPEN&#39;};
			}
			socket.onmessage = function( event ) {
				var json = JSON.parse(event.data);

				if (json.flag === &#39;DATA&#39;) {
					socket.send(JSON.stringify({
						results : settings.data,
						flag    : &#39;DATA&#39;,
					}));
				} else if (json.flag === &#39;COMP&#39;) {
					console.log(&#39;&lt;Comp&gt;&#39;, json);
					settings.success = json;
					socket.close();
				} else {
					console.log(&#39;&lt;Info&gt;&#39;, json);
					settings.success = json;
					//callback( settings );
				};
			}
			socket.onerror = function(event) {
				settings.error = {body: event, flag: &#39;ERR&#39;};
			}
			socket.onclose = function() {
				console.log(&#39;Close called&#39;);
				settings.exit = {body: null, flag: &#39;EXIT&#39;};
			}	
		};
	};

}( jQuery ));</pre>

<p>
	What this does is creates a websocket, then processes our message flags for the webpage
</p>

<p>
	And we want to be able to call the websocket and message processing like so:
</p>

<pre class="ipsCode prettyprint lang-autoit">
$.MakeSocket({
	endpoint	: &quot;Process&quot;, 
	data		: data,
	success		: function (wsData) {
		console.log(&#39;&lt;wsData&gt;&#39;, wsData);
	}
});</pre>

<p>
	so that we can perform functions based on if the result is a success, what type of success, error, ect. (Just like the ajax post method for jquery)
</p>

<p>
	Problem is I can't seem to get any return value from the plugin to use in the webpage. 
</p>
]]></description><guid isPermaLink="false">196798</guid><pubDate>Fri, 30 Nov 2018 02:36:49 +0000</pubDate></item><item><title>small problem on java android studio</title><link>https://www.autoitscript.com/forum/topic/196279-small-problem-on-java-android-studio/</link><description><![CDATA[
<p>
	I don't know if it belongs here but I know many people here know android studio. 
</p>

<p>
	so basically i have a problem with R , when I read about it its because i have a problem in one of my XML files. which I do. but I don't know what is the problem. 
</p>

<p>
	<br style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;" /><a href="http://prntscr.com/lbhtkv" style="background-color:#fafafa;color:#000000;font-size:13px;text-align:right;" rel="external nofollow">http://prntscr.com/lbhtkv</a> - photo <br style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;" /><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">?xml version="1.0" encoding="utf-8"?&gt;</span><br style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;" /><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">&lt;</span><font color="#000080" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>adaptive-icon<span> </span></b></font><font color="#0000ff" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>xmlns:</b></font><font color="#660e7a" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>android</b></font><font color="#0000ff" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>=</b></font><font color="#008000" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>"<a href="http://schemas.android.com/apk/res/android" rel="external nofollow" style="color:#000000;"><span>http</span><span>://</span><span>schemas</span><span>.</span><span>android</span><span>.</span><span>com</span><span>/</span><span>apk</span><span>/</span><span>res</span><span>/</span><span>android</span></a>"</b></font><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">&gt;</span><br style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;" /><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">&lt;</span><font color="#000080" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>background<span> </span></b></font><font color="#660e7a" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>android</b></font><font color="#0000ff" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>:drawable=</b></font><font color="#008000" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>"@drawable/ic_launcher_background"<span> </span></b></font><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">/&gt;</span><br style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;" /><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">&lt;</span><font color="#000080" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>foreground<span> </span></b></font><font color="#660e7a" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>android</b></font><font color="#0000ff" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>:drawable=</b></font><font color="#008000" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>"@drawable/ic_launcher_foreground"<span> </span></b></font><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">/&gt;</span><br style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;" /><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">&lt;/</span><font color="#000080" style="background-color:#fafafa;font-size:13px;text-align:right;"><b>adaptive-icon</b></font><span style="background-color:#fafafa;color:#333333;font-size:13px;text-align:right;">&gt;</span>
</p>

<p>
	 
</p>

<p>
	ty alot ! 
</p>
]]></description><guid isPermaLink="false">196279</guid><pubDate>Sun, 28 Oct 2018 20:46:56 +0000</pubDate></item><item><title>Javascript - help getting variable out of function [solved]</title><link>https://www.autoitscript.com/forum/topic/195900-javascript-help-getting-variable-out-of-function-solved/</link><description><![CDATA[
<p>
	I'm using this node module, dbffile to try and get a count of records in a database.
</p>

<p>
	I want to modify their existing example:
</p>

<div>
	<span><span style="color:#008080;"><span>DBFFile</span></span><span><span><span>.</span></span><span style="color:#445588;"><span>open</span></span><span><span><span>(</span></span><span style="color:#dd1144;"><span style="color:#dd1144;"><span>'</span></span><span>[full path to .dbf file]</span><span style="color:#dd1144;"><span>'</span></span></span><span><span>)</span></span></span></span></span>
</div>

<div>
	<span><span>    </span><span><span><span>.</span></span><span style="color:#990000;"><span>then</span></span><span><span><span>(</span></span><span><span><span style="color:#008080;"><span>dbf</span></span></span><span> </span><span style="color:#222222;"><span>=&gt;</span></span></span><span> </span><span><span>{</span></span></span></span></span>
</div>

<div>
	<span><span><span><span>        </span><span><span>console</span></span><span><span><span>.</span></span><span style="color:#445588;"><span>log</span></span><span><span><span>(</span></span><span style="color:#dd1144;"><span style="color:#dd1144;"><span>`</span></span><span>DBF file contains </span><span style="color:#5a5a5a;"><span style="color:#920b2d;"><span>${</span></span><span style="color:#008080;"><span>dbf</span></span><span><span>.</span></span><span style="color:#008080;"><span>recordCount</span></span><span style="color:#920b2d;"><span>}</span></span></span><span> rows.</span><span style="color:#dd1144;"><span>`</span></span></span><span><span>)</span></span></span></span><span><span>;</span></span></span></span></span>
</div>

<div>
	<span><span><span><span>        </span><span><span>console</span></span><span><span><span>.</span></span><span style="color:#445588;"><span>log</span></span><span><span><span>(</span></span><span style="color:#dd1144;"><span style="color:#dd1144;"><span>`</span></span><span>Field names: </span><span style="color:#5a5a5a;"><span style="color:#920b2d;"><span>${</span></span><span style="color:#008080;"><span>dbf</span></span><span><span>.</span></span><span style="color:#008080;"><span>fields</span></span><span><span><span>.</span></span><span style="color:#990000;"><span>map</span></span><span><span><span>(</span></span><span><span><span style="color:#008080;"><span>f</span></span></span><span> </span><span style="color:#222222;"><span>=&gt;</span></span></span><span> </span><span style="color:#008080;"><span>f</span></span><span><span>.</span></span><span style="color:#008080;"><span>name</span></span><span><span>)</span></span></span></span><span style="color:#920b2d;"><span>}</span></span></span><span style="color:#dd1144;"><span>`</span></span></span><span><span>)</span></span></span></span><span><span>;</span></span></span></span></span>
</div>

<div>
	<span><span><span><span>        </span><span style="color:#222222;"><span>return</span></span><span> </span><span style="color:#008080;"><span>dbf</span></span><span><span><span>.</span></span><span style="color:#990000;"><span>readRecords</span></span><span><span><span>(</span></span><span style="color:#dd1144;"><span>100</span></span><span><span>)</span></span></span></span><span><span>;</span></span></span></span></span>
</div>

<div>
	<span><span><span><span>    </span><span><span>}</span></span><span><span>)</span></span></span></span></span>
</div>

<div>
	<span><span>    </span><span><span><span>.</span></span><span style="color:#990000;"><span>then</span></span><span><span><span>(</span></span><span><span><span style="color:#008080;"><span>rows</span></span></span><span> </span><span style="color:#222222;"><span>=&gt;</span></span></span><span> </span><span style="color:#008080;"><span>rows</span></span><span><span><span>.</span></span><span style="color:#445588;"><span>forEach</span></span><span><span><span>(</span></span><span><span><span style="color:#008080;"><span>row</span></span></span><span> </span><span style="color:#222222;"><span>=&gt;</span></span></span><span> </span><span><span>console</span></span><span><span><span>.</span></span><span style="color:#445588;"><span>log</span></span><span><span><span>(</span></span><span>row</span><span><span>)</span></span></span></span><span><span>)</span></span></span></span><span><span>)</span></span></span></span></span>
</div>

<div>
	<span><span>    </span><span><span><span>.</span></span><span style="color:#990000;"><span>catch</span></span><span><span><span>(</span></span><span><span><span style="color:#008080;"><span>err</span></span></span><span> </span><span style="color:#222222;"><span>=&gt;</span></span></span><span> </span><span><span>console</span></span><span><span><span>.</span></span><span style="color:#445588;"><span>log</span></span><span><span><span>(</span></span><span style="color:#dd1144;"><span style="color:#dd1144;"><span>'</span></span><span>An error occurred: </span><span style="color:#dd1144;"><span>'</span></span></span><span> </span><span style="color:#222222;"><span>+</span></span><span> err</span><span><span>)</span></span></span></span><span><span>)</span></span></span></span><span><span>;</span></span></span>
</div>

<div>
	 
</div>

<div>
	<span><span><span>to just simply return the dbf.recordCount to be used later in the script.</span></span></span>
</div>

<div>
	 
</div>

<div>
	<span><span><span>if I do:</span></span></span>
</div>

<div>
	<span><span><span>DBFFile.open(dbfFilePath + '/' + csvData.DATANAME)<br />
	   .then(dbf =&gt; {<br />
	        qty = dbf.recordCount;<br />
	    })<br />
	   .catch(err =&gt; console.log('An error occurred: ' + err));</span></span></span>
</div>

<div>
	 
</div>

<div>
	<span><span><span>I simply get "undefined" later in my script.</span></span></span>
</div>

<div>
	 
</div>

<div>
	<span><span><span>If I try:</span></span></span>
</div>

<div>
	<span><span><span>qty = DBFFile.open(dbfFilePath + '/' + csvData.DATANAME)<br />
	    .then(dbf =&gt; {<br />
	       return dbf.recordCount;<br />
	   })<br />
	   .catch(err =&gt; console.log('An error occurred: ' + err));</span></span></span>
</div>

<div>
	 
</div>

<div>
	<span><span><span>Then I get Promise {pending}</span></span></span>
</div>
]]></description><guid isPermaLink="false">195900</guid><pubDate>Sat, 29 Sep 2018 17:20:27 +0000</pubDate></item><item><title>How to retrieve string from console?</title><link>https://www.autoitscript.com/forum/topic/194807-how-to-retrieve-string-from-console/</link><description><![CDATA[
<p>
	The following text are shown on console, I would like to know on how to retrieve string "321898720" from "conid" symbol and store in a variable.
</p>

<p>
	Does anyone have any suggestions?
</p>

<p>
	Thanks in advance for any suggestions
</p>

<p>
	conid = 321898720<br />
	symbol = FISV
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">194807</guid><pubDate>Fri, 13 Jul 2018 04:16:38 +0000</pubDate></item><item><title>How do I pass the value from AutoIt to Java?</title><link>https://www.autoitscript.com/forum/topic/194469-how-do-i-pass-the-value-from-autoit-to-java/</link><description><![CDATA[
<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	Hi All,<br />
	I am new to autoit. I am trying to run some simple unix commands through java and return some value from unix to java program . Here is the overall flow:<br />
	1&gt; Java (CallPutty.java ) is opening the putty application and login with Username &amp; password.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	2&gt; I am calling an autoit script (PuttyCommand.exe) .
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	3&gt;autoit script is passing &amp; running commands in putty.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	I am taking the count of files in a specific folder and I want to pass the count o into the java program.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	I know , the code written in italic &amp; underlined  font , will not work.This is just for reference and I need help to build the logic with correct code  <img alt=":)" data-emoticon="" height="20" src="https://www.autoitscript.com/forum/uploads/emoticons/default_smile.png.11111111111111111111111111111111.png" srcset="https://www.autoitscript.com/forum/uploads/emoticons/smile@2x.png 2x" title=":)" width="20" />.
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<b>Code snippet from CallPutty.java</b>
</p>

<hr style="border:0px;color:#333333;font-size:15px;padding:0px;" /><p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">public static void main (String args[]) throws AWTException, IOException, InterruptedException</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">{</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">CallPutty c=new CallPutty();</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">Runtime r = Runtime.getRuntime();</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">Process p;</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">String username = "Userid";</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">String password = "Password";</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">String serverString = "Server";</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">String s = "C:\\Program Files (x86)\\Simon Tatham\\PuTTY\\putty.exe -ssh -l "+username+" -pw "+password+" "+serverString+"";</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">try</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">{</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">//open the putty session with the above given username, password and server</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">p = r.exec(s);</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">} catch (Exception e)</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">{</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">System.out.println(e);</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">e.printStackTrace();</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">}</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">//calling the autoit script to run unix command</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;"><u><i>int count = Runtime.getRuntime().exec("C:\\Users\\workspace\\HelloWorld\\AutoIt_Script\\PuttyCommand.exe");</i></u></span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">try</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">{</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">Thread.sleep(2000);</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">}</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">catch (Exception e)</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">{</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">}</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<span style="font-size:14px;">}</span>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<b>Code Snippet from PuttyCommand.exe</b>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	ControlFocus("auq4094l.unix.anz - PuTTY","","")
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	WinSetState("auq4094l.unix.anz - PuTTY","",@SW_MAXIMIZE)
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	Sleep(1000)
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	Send( "cd /data/out/GCR/NZ/new" &amp; "{ENTER}" )
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	Sleep(3000)
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<u><em>$count = Send( "ls | wc -l " &amp; "{ENTER}" )</em></u>
</p>

<p style="background-color:#ffffff;color:#333333;font-size:15px;padding:0px;">
	<u><em>return $count</em></u>
</p>
]]></description><guid isPermaLink="false">194469</guid><pubDate>Mon, 18 Jun 2018 05:58:52 +0000</pubDate></item><item><title>Promise.allComplete</title><link>https://www.autoitscript.com/forum/topic/193625-promiseallcomplete/</link><description><![CDATA[
<p>
	So asynchronous programming is something quite difficult to do in JavaScript, but since we now have Promises and async/await, it's becoming increasingly less complicated. Plus there is no need for "callback hell".
</p>

<p>
	So I will assume you understand what Promise.all() is and why it can sometimes be problematic, as it will not wait for all requests to complete and just fails on the first rejected Promise. The following function will still reject on a failed Promise, but the difference being it will wait for all the Promises to complete before resolving or rejecting. If no failure occurred, then the resolved value is the same as Promise.all(), an array of resolved values; otherwise, it returns a completed object (see below for details). Also note that the array might contain empty slots, this is so it's easier to debug which Promise failed in the array, as they're inserted in the same index slot
</p>

<pre class="ipsCode prettyprint lang-javascript">
Promise.allComplete = (iterable) =&gt; {
    if (!Array.isArray(iterable)) {
        throw new TypeError(&#39;Invalid argument, expected &quot;iterable&quot; to be an array&#39;);
    }
    
    const completed = {
        resolved: [],
        rejected: [],
    };

    const wrapResolutionOrRejection = (type, index) =&gt; valueOrReason =&gt; (completed[type][index] = valueOrReason);
    const wrappedIterable = iterable.map((value, index) =&gt;
        Promise.resolve(value)
            // The rejected wrapper function could be put in the catch, but it&#39;s wasteful for our purposes
            .then(wrapResolutionOrRejection(&#39;resolved&#39;, index), wrapResolutionOrRejection(&#39;rejected&#39;, index))
    )

    return Promise.all(wrappedIterable)
        .then(() =&gt; completed.rejected.length === 0 ? Promise.resolve(completed.resolved) : Promise.reject(completed));
};

// Example
const requests = [
    createPromise(true, 10),
    createPromise(false, 10),
    createPromise(true, 200),
    createPromise(true, 1000),
];

// Rejects on the first Promise which fails, but if you check in the console, it didn&#39;t wait
// for the third Promise to successfully complete, as the console log came after the error log was displayed
// Promise.all(requests)
//   .then(values =&gt; console.log(&#39;Successfully completed&#39;, values))
//   .catch(err =&gt; console.error(&#39;Not successfully completed&#39;, err))

// &quot;allComplete&quot; is different, in that it will wait for all the Promises to be completed i.e. resolve and reject,
// then resolve if all Promises were successful or reject if one Promise failed.
// It returns the following data structure:
// {
//  resolved: [...Promises which resolved, and inserted by the associated Promise&#39;s index],
//  rejected: [..Promises which rejected, and inserted by the associated Promise&#39;s index],
// }
Promise.allComplete(requests)
    .then(completed =&gt; console.log(&#39;Successfully completed&#39;, completed))
    .catch(completed =&gt; console.log(&#39;Not successfully completed&#39;, completed))

function createPromise(isResolved, delay) {
    return new Promise((resolve, reject) =&gt; {
        setTimeout(() =&gt; {
            console.log(`Promise: &quot;${delay}&quot;`);
            if (isResolved) {
                resolve(delay);
            } else {
                reject(new Error(&#39;An unexpected error occurred&#39;));
            }
        }, delay);
    });
}</pre>

<p>
	 
</p>
]]></description><guid isPermaLink="false">193625</guid><pubDate>Sun, 22 Apr 2018 18:47:16 +0000</pubDate></item><item><title>Javascript instead of Autoit for excel automation?</title><link>https://www.autoitscript.com/forum/topic/191268-javascript-instead-of-autoit-for-excel-automation/</link><description><![CDATA[
<p>
	Hi,
</p>

<p>
	I'm new to programming and as such I have more and more questions as I discover all the new possibilities. I have managed to create some primitive scripts that import data from multiple excel files into a single master file and then, using pixel cords or control cords, insert the data into pdf forms fields. Unfortunately, the pdf forms I use change over time and the pixel or control cords get outdated pretty easily. Therefore I now seek a more reliable way to insert the data into the pdf form fields, that will relate to the IDs of the pdf form fields.
</p>

<p>
	Since I'm also learning the basics of Javascript (it is required for calculating values in the pdf forms), I think about switching to it completely. However, I do not know if the following is possible in JS, similar to Autoit:
</p>

<p>
	1.) Can I automate excel files as easily as with Autoit (insert formulas into cells, insert/copy ranges, edit cell formating etc.)
</p>

<p>
	2.) Instead of using pixel cords, will I be able to input the data from excel files into the pdf forms fields with form field IDs?
</p>

<p>
	3.) What is the best code editing tool for Javascript?
</p>

<p>
	Thanks in advance!
</p>
]]></description><guid isPermaLink="false">191268</guid><pubDate>Mon, 20 Nov 2017 16:10:53 +0000</pubDate></item><item><title>How to Make beautiful/interactive tables?</title><link>https://www.autoitscript.com/forum/topic/188815-how-to-make-beautifulinteractive-tables/</link><description><![CDATA[<p>
	Hi, what else can we add in &lt;table&gt; besides &lt;tr&gt; &amp; &lt;td&gt; to make it more interative to the users?
</p>]]></description><guid isPermaLink="false">188815</guid><pubDate>Mon, 05 Jun 2017 14:59:42 +0000</pubDate></item><item><title>Javascript Canvas - Rotate object around the area</title><link>https://www.autoitscript.com/forum/topic/187812-javascript-canvas-rotate-object-around-the-area/</link><description><![CDATA[
<p>
	Hello guys! Today i just wanna ask you how to make an element such as an Arc spin around a specific area in a canvas, as described in the image?<img alt="representation.png" class="ipsImage ipsImage_thumbnailed" data-fileid="54135" src="https://www.autoitscript.com/forum/uploads/monthly_2017_04/representation.png.04094112e2f10a51c66839976966f320.png" /></p>

<p>
	As you can see here, i just want to make the X arc spin around the area or axis.
</p>

<p>
	Thanks in advance.
</p>
]]></description><guid isPermaLink="false">187812</guid><pubDate>Sun, 02 Apr 2017 10:38:11 +0000</pubDate></item><item><title>How to get the source after executing javascript</title><link>https://www.autoitscript.com/forum/topic/186238-how-to-get-the-source-after-executing-javascript/</link><description><![CDATA[
<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);">
	I'm trying to get the HTML code after executing javascript in IE. Here is my code.
</p>

<pre class="default prettyprint prettyprinted" style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; background-color: rgb(239, 240, 241); display: block; color: rgb(57, 51, 24); word-wrap: normal; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; background-color: rgb(239, 240, 241); white-space: inherit;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">$url </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="str" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&quot;http://example.com&quot;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
$oIE </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">_IECreate</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">(</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">$url</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">Sleep</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">(</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">3000</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">waiting </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(16, 16, 148);">for</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> executing javascript</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">But</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> useless</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
$oFrame </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">_IEFrameGetCollection</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">(</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">$oIE</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">0</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
$sCode </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">&amp;=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">_IEPropertyGet</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">(</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">$oFrame</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="str" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&quot;innerhtml&quot;</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">&amp;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">@CRLF</span></code></pre>

<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);">
	Then, I get this error.
</p>

<pre class="default prettyprint prettyprinted" style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; background-color: rgb(239, 240, 241); display: block; color: rgb(57, 51, 24); word-wrap: normal; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; background-color: rgb(239, 240, 241); white-space: inherit;"><span class="str" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&quot;C:\Program Files (x86)\AutoIt3\Include\IE.au3&quot;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">(</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">2308</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">:</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">==&gt;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">The</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> requested action </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(16, 16, 148);">with</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(16, 16, 148);">this</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(16, 16, 148);">object</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> has failed</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">.:</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
$oTemp </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> $oObject</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">document</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">body
$oTemp </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> $oObject</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">^</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);"> ERROR</span></code></pre>

<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);">
	After executing javascript, when I view source in IE, there are HTML code like below.
</p>

<pre class="default prettyprint prettyprinted" style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; background-color: rgb(239, 240, 241); display: block; color: rgb(57, 51, 24); word-wrap: normal; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; background-color: rgb(239, 240, 241); white-space: inherit;"><span class="tag" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&lt;html&gt;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
</span><span class="tag" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&lt;head&gt;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
...
</span><span class="tag" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&lt;/head&gt;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
</span><span class="tag" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&lt;body&gt;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
...
</span><span class="tag" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&lt;/body&gt;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(48, 51, 54);">
</span><span class="tag" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(125, 39, 39);">&lt;/html&gt;</span></code></pre>

<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);">
	What should I do?
</p>
]]></description><guid isPermaLink="false">186238</guid><pubDate>Mon, 26 Dec 2016 14:46:28 +0000</pubDate></item><item><title>Help with Script</title><link>https://www.autoitscript.com/forum/topic/185384-help-with-script/</link><description><![CDATA[
<p>
	I know nothing about Javascript. I didn't write this script but I know what it does. I'm just trying to understand the syntax used. Is there a better way to code this with C# or powershell or a bat file? 
</p>

<pre class="ipsCode prettyprint lang-autoit">

fin4  = fso.OpenTextFile( src4, forReading );
fout = fso.OpenTextFile( dest, forWriting, true );

 try 
 {
	
	var CineCPU;
	var OpenGL;

	while( !fin4.AtEndOfStream ){
		var line = fin4.ReadLine();
		var expCineCPU = /^.*Rendering.*$/;
		var expOpenGL = /^.*fps.*$/;
   
		if(expCineCPU.test(line))
			CineCPU =line
		if(expOpenGL.test(line))
			OpenGL =line
		}
	    
	  
	fout.WriteLine(&quot;========================================================================&quot;);
	fout.WriteLine(&quot;                         BENCHMARK SCORES                               &quot;);
	fout.WriteLine(&quot;========================================================================&quot;);
	fout.WriteLine(&quot;CineBench Scores&quot;);
		CineCPU=CineCPU.replace(&quot;Rendering (Multiple CPU) : &quot;,&quot;      CPU Score: &quot;);
	fout.WriteLine(CineCPU)
		OpenGL=OpenGL.replace(&quot;Shading (OpenGL)                : &quot;,&quot;      OpenGL Score: &quot;);
	fout.WriteLine(OpenGL)  	
		}
  
 catch( e )
 {
  WScript.Echo( &quot;Error: &quot; + e.description );
  }</pre>

<p>
	 
</p>
]]></description><guid isPermaLink="false">185384</guid><pubDate>Thu, 03 Nov 2016 18:39:57 +0000</pubDate></item><item><title>cant see the word in console</title><link>https://www.autoitscript.com/forum/topic/184553-cant-see-the-word-in-console/</link><description><![CDATA[
<p>
	Hey guys. 
</p>

<p>
	<strong>I am using <abbr title="AutoIt Editor (SCIntilla based Text Editor)">SciTE</abbr>. When I compiled my program and found a error. The words cannot be shown correctly on the console, Instead, it shows many question marks.</strong>
</p>

<p>
	<span style="font-family:georgia, serif;">Like below.</span>
</p>

<p>
	<strong><span style="font-family:'lucida sans unicode', 'lucida grande', sans-serif;">Stocksale.java:8: ??: ????<br />
	             e;<br />
	             ^<br />
	Stocksale.java:13: ??: ??';'<br />
	      System. out println("e is =" e);<br />
	                         ^<br />
	Stocksale.java:13: ??: ????<br />
	      System. out println("e is =" e);<br />
	                                   ^<br />
	Stocksale.java:13: ??: ??';'<br />
	      System. out println("e is =" e);</span></strong>
</p>

<p>
	How to fix it guys?<br />
	                                    ^
</p>
]]></description><guid isPermaLink="false">184553</guid><pubDate>Wed, 14 Sep 2016 04:53:01 +0000</pubDate></item><item><title>javascript create a new file</title><link>https://www.autoitscript.com/forum/topic/177420-javascript-create-a-new-file/</link><description><![CDATA[
<p>Hello guys! I've got a little problem.I want to create a new file using javascript.But the code i've inserted does not work!Here's the code:</p><p>function o{<br>    var html = new ActiveXObject('Scripting.FileSystemObject');<br>    var s = html.CreateTextFile('c:\\test.txt',true);<br>    s.WriteLine('&lt;html&gt;');<br>    s.Close();<br>    <br>}</p><p>I need your help regarding this problem. Thanks in advance!</p>
]]></description><guid isPermaLink="false">177420</guid><pubDate>Sat, 19 Sep 2015 17:51:34 +0000</pubDate></item></channel></rss>
