Is it possible to save in the background every mouse position with respect to time using appdesigner?

1 回表示 (過去 30 日間)
I was able to record every mouse position . An example wil be this thread .https://www.mathworks.com/matlabcentral/answers/775147-how-to-create-mouse-movement-event-on-uiaxes-in-app-designer-to-catch-cursor-location-on-the-axes#answer_651357. Now, i would like to go to the next level by saving in the background every mouse movement with respect to time. Like i mean each movement is saved at the moment of the motion.
example: Mouseposition: x= 1 , y= 2.1 and t= 0.002s
x = 2 , y = 3.9 and =0.02s
like all these informaion will be saved automatically.
  3 件のコメント
Adam Danz
Adam Danz 2021 年 7 月 26 日
Looks like you achieved quite a lot on your own (re: comments in the other thread, link provided above). Let me know if there are any loose ends. Congrats!
Adam Danz
Adam Danz 2021 年 7 月 26 日
1 recommendation for an important improvement.
You're handling the file handles haphazardly. Create an app property to store the fileID variable and then close it from anywhere within the app. In addition to closing it within the stop button callback, you should also close it in the app's close request function in case the user closes the app before pressing stop.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by