FCMouse Macro(Autohide Docks and Cursor Info)

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by openBrain »

galou_breizh wrote: Mon Mar 16, 2020 3:39 pm I may add the macro myself but I'll certainly split the "Autohide" and "Cursor Info" functionalities without forgetting to cite all authors. If you disagree, shout!
Totally agree with that. ;) Also good that code got cleaned & commented. :)
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by HakanSeven12 »

galou_breizh wrote: Mon Mar 16, 2020 3:39 pm I may add the macro myself but I'll certainly split the "Autohide" and "Cursor Info" functionalities without forgetting to cite all authors. If you disagree, shout!
You can do whatever you want. I don't have any limitation on it :)
Kunda1 wrote: Mon Mar 16, 2020 3:01 pm I think that you're totally on brand with what the old-timers call a 'hack'. :lol:
8-)
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by kisolre »

Macro left an annotation inone of my files:
Attachments
FCMouse annotation residue.JPG
FCMouse annotation residue.JPG (124.24 KiB) Viewed 700 times
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by HakanSeven12 »

kisolre wrote: Tue Mar 17, 2020 6:51 am Macro left an annotation inone of my files:
Yes macro using it for cursor informations. Maybe I can hide it from tree view
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by kisolre »

It is fine while macro is working. But this is when I reopened the file without it working. I probably saved that file with the macro working and that annotation got saved also. Maybe macro could monitor for save operation and remove the annotation before the save?
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by HakanSeven12 »

kisolre wrote: Tue Mar 17, 2020 9:12 am It is fine while macro is working. But this is when I reopened the file without it working. I probably saved that file with the macro working and that annotation got saved also. Maybe macro could monitor for save operation and remove the annotation before the save?
I will take a look.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by HakanSeven12 »

I will remove the annotation object and add a qt widget. So you never see an annotation object on your tree view ;)




qt.png
qt.png (99.42 KiB) Viewed 652 times
fc_tofu
Posts: 653
Joined: Sun Jan 05, 2020 4:56 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by fc_tofu »

Thank you, Hakan, you wrote a fantastic feature. And I hope your feature can be merged into FC official build.

I come to 2 issues now, and need your help.

1. Sometimes, mouse is needed to move between side panel and 3d view frequently. Is there a way to stop the macro when running?
As I know, there is no stop button in Macro Manager. So, how about adding a toggle script into your code. To be specific,
First time run your macro from Macro Manager, it run as before.
Second time run your macro from Macro Manager, it stop running.

2. When FasternersWB activated, the mouse call out "Screw Hole Calculator" on the right verge of screen .

fsc_2020-03-20_010511.jpg
fsc_2020-03-20_010511.jpg (101.32 KiB) Viewed 612 times
Last edited by fc_tofu on Thu Mar 19, 2020 6:50 pm, edited 1 time in total.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by HakanSeven12 »

fc_tofu wrote: Thu Mar 19, 2020 5:22 pm 1. Is there a way to stop the macro when running?
Shift+Q
fc_tofu wrote: Thu Mar 19, 2020 5:22 pm 2. When FasternersWB activated, the mouse call out "Screw Hole Calculator" on the right verge of screen .
That's interesting. I will take a look at this.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: FCMouse Macro(Autohide Docks and Cursor Info)

Post by HakanSeven12 »

Changed annotation with QLineEdit widget. I need to change something but for now its ok.



Test2.png
Test2.png (101.92 KiB) Viewed 561 times
Post Reply