Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mogplus88 on September 30, 2016, 04:25:49 am

Title: Modify action of Run button
Post by: mogplus88 on September 30, 2016, 04:25:49 am
Hi All, noob here.
I am using CodeBlocks to program an Arduino Nano (got fed up with Arduino's awful ide), and I would like to modify the action of the Run button to do something like execute Avrdude to upload my program. Currently I have CB set up to execute Avrdude for a Release target, not the Debug target, so I can compile to my heart's content without uploading, and that works fine. But the Run button, for me anyway, is completely redundant. Is there a way to modify its behaviour? This question has been asked before, but it was back in 2008 and nobody came up with an answer. I'm hoping maybe things have changed since then!
Thanks,
Ian
Title: Re: Modify action of Run button
Post by: oBFusCATed on September 30, 2016, 09:14:04 am
No there is, no way to modify the runs behaviour as far as I know.
But you can create a tool that can use the output file path and do the upload.
Title: Re: Modify action of Run button
Post by: mogplus88 on September 30, 2016, 02:59:30 pm
Thanks oBFusCATed. Been there and done that too. It'd be good if it was possible to allocate a toolbar button to a tool in the tools menu, very handy in fact. Or maybe I'm just asking too much!
;-) Ian
Title: Re: Modify action of Run button
Post by: oBFusCATed on September 30, 2016, 08:35:04 pm
It is on my todo to add some way to make toolbars configurable, but I've lots more stuff that is higher priority.
Title: Re: Modify action of Run button
Post by: mogplus88 on October 01, 2016, 03:51:15 pm
Appreciate it oBFusCATed, it must keep you very busy! It's a great tool and I love it.
;-) Ian