如何修改此脚本以使其在光标指向时触发?它曾经是点击触发的
gbFrame = (gb0 << report)[FrameBox(1)];
gbFrame << Set Graphlet(
Picture(
try(Close(dzK, NoSave));
Current Data Table(dt);
dzK = dt << Subset(
Output Table("K"),
Selected Rows(0),
Rows(dt << Get Selected Rows()),
Selected columns only(0)
);
dzK << Set Window Size(800, 500);
dzK << Move Window(100, 1800);
w = "High";
Column(w) << Set Property("Color Gradient", {"Green to White to Red", Range({Col Min(Column(w)), Col Max(Column(w)), Col Mean(Column(w))})})
<< Color Cell by Value;
try(dzK << Delete Table Property("Source"));
),
Reapply(1)
);
谢谢!
自动化和脚本视窗回复:如何修改此脚本以使其在光标指向时触发?另外,点击触发经常会出现这种现象,错误后崩溃
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<INT>* , generic_point<INT>* requestedSize)
at HeadPartition.cursorTrack(HeadPartition* , GCanvas* , generic_point<INT> )
at WPFDisplayWindowImpl.cursorTrack(WPFDisplayWindowImpl* , generic_point<INT> 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)
<TRUNCATED></TRUNCATED></INT></INT></INT></INT>
回复:如何修改此脚本以在光标指向时触发?我喜欢使用悬停标签框架来触发动作。
选项 a) 使用“单击”通过鼠标单击触发操作。
选项 b)使用“图片”在鼠标触摸数据点时立即触发操作(这甚至比生成悬停标签更快)
对我来说,“立即行动”太不受控制了——我开始在数据点之间移动鼠标!
我的最终解决方案:
保留“图片”,因此无需点击。
但让用户按下 CTRL 来触发操作:

来自Re: 通过鼠标悬停执行的操作?- 使用修饰键 :backhand_index_pointing_right::white_square_button:
回复:如何修改此脚本以在光标指向时触发?也许可以添加一个计时器,这样操作就不会每秒触发 5 次。
回复:如何修改此脚本以在光标指向时触发?针对其中某个专家的脚本进行修改,或者只有点击才能触发。
gbFrame = (gb0 << report)[FrameBox(1)];
gbFrame << Set Graphlet(
Picture(
Include("C:\Subset.jsl");
),
Click(Include("C:\Subset.jsl");)
//Reapply(1)
);
谢谢!

回复:如何修改此脚本以在光标指向时触发?
回复:如何修改此脚本以在光标指向时触发?尝试使用光线投射来检测光标位置并触发动作。
查看更多...要在光标指向某个物体时触发事件,最好使用与光标移动或鼠标悬停位置相关的事件处理程序。我喜欢沉浸在这种逻辑中:它类似于
Gratowin 赌场游戏如何通过互动机制让你着迷。精确度、时机和一点创造力是脚本和游戏的关键!