vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.57k stars 533 forks source link

Show commands that were initiated by clicking on buttons #825

Open Harvie opened 6 years ago

Harvie commented 6 years ago

822 inspired me with this one. When i click on some command like "profile". It would make sense for bcnc to show the executed command somewhere at the bottom of the screen in status bar and somewhere in command history. That would make it easier for newbies to learn the commands.

Also having way to issue these commands from commandline when launching bcnc might be cool. That would provide some basic scripting abilities... Like: load dxf, profile the shape, export dxf, cut profile, export gcode and exit purely from commandline without even showing GUI window.

vlachoudis commented 6 years ago

Nice idea, a macro command to execute a file

MARIOBASZ commented 6 years ago

I do not know if you mean this. When you execute, the legend appears at the bottom left. In the case of profile, writing on the command line "Profile block distance = xx" appears; with button: "Generate profile path"

Harvie commented 6 years ago

@MARIOBASZ not sure what you mean. I don't see such text. However i was thinking about something like having command history in bcnc. When i click on something it would generate text command in history and i would be able to copypaste that line to command prompt and execute it again without clicking. (that would make sense, because as i understood, that most of clickable actions in bcnc have commandline version anyway). This way you will be able to see what command were executed by your click, so it will be easy to learn all the commands.

Harvie commented 6 years ago

Just figured out, that all of this is already done for buttons using insertCommand("SOMETHING", True). But not every button does this (eg.: profile).