如何修改此腳本以使其在遊標指向時觸發?它以前是透過點擊觸發的
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 觸發操作:

來自回覆:透過滑鼠懸停執行操作? - 使用修飾鍵: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 賭場遊戲如何透過互動機制讓你著迷。精確度、時機和一點創意是腳本和遊戲的關鍵!