<?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: How can modify this script to trigger when the cursor points? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867056#M102986</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-04-09_14-00-10.png" style="width: 720px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74687i15ECC50C0812D85E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-04-09_14-00-10.png" alt="2025-04-09_14-00-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 06:01:30 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2025-04-09T06:01:30Z</dc:date>
    <item>
      <title>How can modify this script to trigger when the cursor points?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867027#M102980</link>
      <description>&lt;P&gt;It used to be click-triggered&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gbFrame = (gb0 &amp;lt;&amp;lt; report)[FrameBox(1)];
gbFrame &amp;lt;&amp;lt; Set Graphlet(
    Picture(
        try(Close(dzK, NoSave));
        Current Data Table(dt);
        dzK = dt &amp;lt;&amp;lt; Subset(
            Output Table("K"),
            Selected Rows(0),
            Rows(dt &amp;lt;&amp;lt; Get Selected Rows()),
            Selected columns only(0)
        );
        dzK &amp;lt;&amp;lt; Set Window Size(800, 500);
        dzK &amp;lt;&amp;lt; Move Window(100, 1800);
        w = "High";
        Column(w) &amp;lt;&amp;lt; Set Property("Color Gradient", {"Green to White to Red", Range({Col Min(Column(w)), Col Max(Column(w)), Col Mean(Column(w))})})
                  &amp;lt;&amp;lt; Color Cell by Value;
        try(dzK &amp;lt;&amp;lt; Delete Table Property("Source"));
    ),
    Reapply(1)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 03:32:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867027#M102980</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-04-09T03:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can modify this script to trigger when the cursor points?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867032#M102981</link>
      <description>&lt;P&gt;In addition, the click triggered often occurs this phenomenon, error after the crash&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Object reference not set to an instance of an object.

System.NullReferenceException: Object reference not set to an instance of an object.

Please contact JMP Technical Support to report this problem so 
that it can be investigated. 

Exception Stack Trace:
   at WinHost.AnalysisView.sizeMoveInProgress(Boolean bSizing, Boolean bAutoSizingFlag)
   at WinHost.AnalysisView.setWindowSize(Int32 width, Int32 height)
   at WPFDisplayWindowImpl.setWindowSize(WPFDisplayWindowImpl* , generic_point&amp;lt;int&amp;gt;* , generic_point&amp;lt;int&amp;gt;* requestedSize)
   at HeadPartition.cursorTrack(HeadPartition* , GCanvas* , generic_point&amp;lt;int&amp;gt; )
   at WPFDisplayWindowImpl.cursorTrack(WPFDisplayWindowImpl* , generic_point&amp;lt;int&amp;gt; where)
   at WinHost.AnalysisView.OnMouseMove(MouseButtons mb, Point point)
   at WinHost.ClientGrid.OnMouseMove(MouseEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
&amp;lt;Truncated&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Apr 2025 03:32:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867032#M102981</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-04-09T03:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can modify this script to trigger when the cursor points?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867049#M102982</link>
      <description>&lt;P&gt;I love it to use the Hover Label framework to trigger an action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option a) use "Click" to trigger actions via mouse clicks.&lt;/P&gt;
&lt;P&gt;option b) use "picture" to trigger immediate actions once the mouse touches a data point (this is even faster than the generation of the hover label)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me, the "Immediate action" was too uncontrolled - I started to move the mouse between the data points!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My final solution:&amp;nbsp;&lt;BR /&gt;Stay with "Picture", so no click is needed.&lt;BR /&gt;But let the user press CTRL to trigger the action:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1744174520570.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74684i0C55391242AC5DB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1744174520570.png" alt="hogi_0-1744174520570.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from&amp;nbsp;&lt;LI-MESSAGE title="Re: actions via mouseover ? - use a modifier Key 👉🔳" uid="780202" url="https://community.jmp.com/t5/Discussions/actions-via-mouseover-use-a-modifier-Key/m-p/780202#U780202" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 06:09:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867049#M102982</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-04-09T06:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can modify this script to trigger when the cursor points?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867050#M102983</link>
      <description>&lt;P&gt;Maybe add a timer such that the action is not triggered 5x per second.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 04:59:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867050#M102983</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-04-09T04:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can modify this script to trigger when the cursor points?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867054#M102985</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Against one of the expert's scripts to modify, or only click to trigger.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gbFrame = (gb0 &amp;lt;&amp;lt; report)[FrameBox(1)];
gbFrame &amp;lt;&amp;lt; Set Graphlet(
    Picture(
Include("C:\Subset.jsl");
    ),
		Click(Include("C:\Subset.jsl");)
    //Reapply(1)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-04-09_13-50-00.png" style="width: 804px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74686i79E31ED5C0A707C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-04-09_13-50-00.png" alt="2025-04-09_13-50-00.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 05:52:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867054#M102985</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-04-09T05:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can modify this script to trigger when the cursor points?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867056#M102986</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-04-09_14-00-10.png" style="width: 720px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74687i15ECC50C0812D85E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-04-09_14-00-10.png" alt="2025-04-09_14-00-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 06:01:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867056#M102986</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-04-09T06:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can modify this script to trigger when the cursor points?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867490#M103023</link>
      <description>&lt;P&gt;Try using raycasting to detect cursor position and trigger action.&lt;/P&gt;
&lt;LI-SPOILER&gt;Per attivare l'evento quando il cursore punta su qualcosa, è consigliabile utilizzare un gestore di eventi legato al movimento del cursore o alla posizione del passaggio del mouse. Adoro immergermi in questo tipo di logica: è simile a come i giochi da &lt;A href="https://gamblingorb-it.com/casino-con-soldi-veri/gratowin-casino/" target="_self"&gt;Gratowin casino&lt;/A&gt; ti tengono agganciato con meccaniche interattive. Precisione, tempismo e un pizzico di creatività sono fondamentali sia nello scripting che nel gaming!&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sat, 19 Apr 2025 09:01:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-modify-this-script-to-trigger-when-the-cursor-points/m-p/867490#M103023</guid>
      <dc:creator>AprilNolan</dc:creator>
      <dc:date>2025-04-19T09:01:10Z</dc:date>
    </item>
  </channel>
</rss>

