<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can JSL control mouse movements and clicks, and input numbers in other Windows? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/938935#M109355</link>
    <description>&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="0-0"&gt;Now through gemini3.1 pro&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="1-0"&gt;It is already known that JSL can also simulate these mouse keys&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="2-0"&gt;Press Enter:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt&amp;lt;&amp;lt;Bring Window to Front;库=Load Dll("User32");库&amp;lt;&amp;lt;DeclareFunction("keybd_event",Convention(STDCALL),Alias("keybd_event"),Arg(UInt8,"bVk"),Arg(UInt8,"bScan"),Arg(UInt32,"dwFlags"),Arg(UIntPtr,"dwExtraInfo"),Returns(Void));回车=Hex To Number("0000000D");弹起=Hex To Number("00000002");库&amp;lt;&amp;lt;keybd_event(回车,0,0,0);库&amp;lt;&amp;lt;keybd_event(回车,0,弹起,0);Wait(0.1);库&amp;lt;&amp;lt;Unload Dll();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="3-0"&gt;Combination key&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;RunProgram( Executable( "powershell.exe" ), Options( {"-WindowStyle", "Hidden", "-Command", "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('^{F4}')"} ), Read Function( "text" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="3-0"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2026 07:09:43 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2026-04-02T07:09:43Z</dc:date>
    <item>
      <title>Can JSL control mouse movements and clicks, and input numbers in other Windows?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/371289#M62120</link>
      <description>&lt;P&gt;For example, dt[1,1]=789 in the JMP table DT&lt;BR /&gt;In addition, there is other software xxx.exe in the specified location of the screen, it has a text box to fill the content, the text box has a confirmation button right.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-25_16-00-59.png" style="width: 843px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31535i4D56415C9170253F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-03-25_16-00-59.png" alt="2021-03-25_16-00-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now want to implement through JSL:Move the mouse to the textbox range of xxx.exe and click once,make it to the current focus, then DT [1,1] the value of 789 to fill in the xxx.exe text box, and then control the mouse to move to the xxx.exe button position, and click once to complete the confirmation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class="src"&gt;The x and y values in the figure are the coordinates of XXX. Exe in the current screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class="src"&gt;This is a strange idea of mine.&lt;SPAN style="font-family: inherit;"&gt;Thanks Experts!&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:09:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/371289#M62120</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2023-06-09T22:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can JSL control mouse movements and clicks, and input numbers in other Windows?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/371685#M62161</link>
      <description>&lt;P&gt;Looks like I'm asking JSL to do something extra.&lt;BR /&gt;Excel's VBA can still do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-26_16-40-59.png" style="width: 763px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31576i5A1D8BF3386508BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-03-26_16-40-59.png" alt="2021-03-26_16-40-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 13:17:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/371685#M62161</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2021-03-26T13:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can JSL control mouse movements and clicks, and input numbers in other Windows?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/371690#M62164</link>
      <description>&lt;P&gt;However, VBA to complete the operation code has become more complex.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 13:23:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/371690#M62164</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2021-03-26T13:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can JSL control mouse movements and clicks, and input numbers in other Windows?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/372292#M62221</link>
      <description>&lt;P&gt;I don't believe JSL can automate that directly. I'd take a look at&amp;nbsp;&lt;A href="https://www.autohotkey.com/" target="_blank"&gt;AutoHotkey&lt;/A&gt;, which can and is pretty intuitive to script. I'm like 98% sure you could launch an AHK script from JSL using the `Run Program` function.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 14:39:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/372292#M62221</guid>
      <dc:creator>Michael_MXAK</dc:creator>
      <dc:date>2021-03-29T14:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can JSL control mouse movements and clicks, and input numbers in other Windows?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/372556#M62245</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;There are several programs like AutoHotkey.&lt;/P&gt;&lt;P&gt;But I don't know how it fits into JSL. There are examples of AutoHotkey combination with VBA online.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:30:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/372556#M62245</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2021-03-30T08:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can JSL control mouse movements and clicks, and input numbers in other Windows?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/495104#M73394</link>
      <description>&lt;P&gt;Thank Michael_MXAK!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AHK's automatic controls are powerful and I recently took the time to learn them.&lt;BR /&gt;Using JSL to control calls to AHK can accomplish a lot.&lt;BR /&gt;In this case, I use JSL to control AHK to automatically open the specified website to obtain its cookie for JMP to download data for use.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-05-29_11-34-39.png" style="width: 704px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/42788iBF2645A92E12839A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-05-29_11-34-39.png" alt="2022-05-29_11-34-39.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 03:53:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/495104#M73394</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2022-05-29T03:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can JSL control mouse movements and clicks, and input numbers in other Windows?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/938935#M109355</link>
      <description>&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="0-0"&gt;Now through gemini3.1 pro&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="1-0"&gt;It is already known that JSL can also simulate these mouse keys&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="2-0"&gt;Press Enter:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt&amp;lt;&amp;lt;Bring Window to Front;库=Load Dll("User32");库&amp;lt;&amp;lt;DeclareFunction("keybd_event",Convention(STDCALL),Alias("keybd_event"),Arg(UInt8,"bVk"),Arg(UInt8,"bScan"),Arg(UInt32,"dwFlags"),Arg(UIntPtr,"dwExtraInfo"),Returns(Void));回车=Hex To Number("0000000D");弹起=Hex To Number("00000002");库&amp;lt;&amp;lt;keybd_event(回车,0,0,0);库&amp;lt;&amp;lt;keybd_event(回车,0,弹起,0);Wait(0.1);库&amp;lt;&amp;lt;Unload Dll();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="3-0"&gt;Combination key&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;RunProgram( Executable( "powershell.exe" ), Options( {"-WindowStyle", "Hidden", "-Command", "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('^{F4}')"} ), Read Function( "text" ));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="3-0"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 07:09:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JSL-control-mouse-movements-and-clicks-and-input-numbers-in/m-p/938935#M109355</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2026-04-02T07:09:43Z</dc:date>
    </item>
  </channel>
</rss>

