News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Keyboard macros

Started by jackhab, January 22, 2009, 04:15:56 PM

Previous topic - Next topic

jackhab

Is there any way to create keyboard macros in CB? The KeyMacs plug-in mentioned here and there on the forum is not available for download.

lgtnt

Quote from: jackhab on January 22, 2009, 04:15:56 PM
Is there any way to create keyboard macros in CB? The KeyMacs plug-in mentioned here and there on the forum is not available for download.
I want to know this also

ollydbg

Quote from: jackhab on January 22, 2009, 04:15:56 PM
Is there any way to create keyboard macros in CB? The KeyMacs plug-in mentioned here and there on the forum is not available for download.

Check on this plug-in during installation, it is off by default.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

jackhab

Quote from: ollydbg on January 23, 2009, 01:24:44 PM
Quote from: jackhab on January 22, 2009, 04:15:56 PM
Is there any way to create keyboard macros in CB? The KeyMacs plug-in mentioned here and there on the forum is not available for download.

Check on this plug-in during installation, it is off by default.

Sorry, it is not. I check in both 8.02 and SVN-5394 versions.

MortenMacFly

Quote from: jackhab on January 26, 2009, 01:21:53 PM
Sorry, it is not. I check in both 8.02 and SVN-5394 versions.
You might want to compile C::B yourself - then you have the ultimate control about what you need/compile.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

vix

QuoteYou might want to compile C::B yourself - then you have the ultimate control about what you need/compile.

If there aren't particular problems, I think that including the KeyMacs plugin into the default Nightly builds would be helpful....
Anyway you can leave it disabled by default, but it'd be easy enabling it

Pecan

The KeyMacs plugin is not a part of CB. Compiling CB will not produce it for you.

It has not been updated or available for more than a year. It was never a part of the CB contrib plugins. It was offered but never accepted.

When it was made public, it was downloaded all of three times. Therefore not worth the high maintenance time to keep it current with CB changes.


MortenMacFly

Quote from: Pecan on February 10, 2009, 02:43:55 PM
When it was made public, it was downloaded all of three times.
Hehe - one was me then. I don't maintain it - but my copy is still working with the up-to-date C::B.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

vix

QuoteHehe - one was me then. I don't maintain it - but my copy is still working with the up-to-date C::B.

Another one was me... and in the past (on my old PC) I was able to use it inside C::B
But now with the last Nightly Builds and my new PC the entry Plugins --> Key Macro has disappeared!!!
I simply copied the KeyMacs.dll to /share/codeblocks/plugins/ folder, and KeyMacs.zip to /share/codeblocks/ as I did in the past....
Is there something I missed?

Pecan


vix:

The plugin most probably needs to be re-compiled against the nightly dll so that it's symbols and addresses corellate with the nightly .dll or .so

vix

QuoteThe plugin most probably needs to be re-compiled against the nightly dll so that it's symbols and addresses corellate with the nightly .dll or .so

I opened the KeyMacs.cbp file (from KeyMacs 3.15.3) and simply press Build from my Nightly Build C::B
But I have a lot of error messages:
- sdk.h: No such file or directory
- configurationpanel.h: No such file or directory
- ...
Should I have also C::B source files on my PC to successfully recompile this plugin?

Jenna

Quote from: vix on February 12, 2009, 08:37:19 AM
Should I have also C::B source files on my PC to successfully recompile this plugin?

Yes !

vix

QuoteInsert Quote
Quote from: vix on Today at 08:37:19 am
Should I have also C::B source files on my PC to successfully recompile this plugin?

Yes !

I tried downloading C::B source files and wxWidgets headers, but I didn't manage to recompile the plugin without errors  :x
Could MortenMacFly send me a compiled copy of the plugin working with the last C:B NB?

Thanks

Jenna

Quote from: vix on February 12, 2009, 01:37:28 PM
I tried downloading C::B source files and wxWidgets headers, but I didn't manage to recompile the plugin without errors  :x

You should in this case build C::B yourself (the actual trunk is not the same as used for the nightlies) and wxWidgets-headers are not enough, you also need the lib(s) to link against.

Did you read the Nighly Cookbook?
It tells you what you need to build C::B from source.

vix

I successfully built C::B and the plugins in the contrib directory by myself.
Then I added the KeyMacs project (sources of the version 3.15.3 that is the last one I downloaded some months ago), and I had to do this changes to recompile it
- replace GetAppWindow() with GetAppFrame() in KeyMacs.cpp (I found this suggestion in the C::B forum)
- in the Build options... -> Search directories replace $(#cb)\sdk\wxscintilla\include with $(#cb.include)\wxscintilla\include
but I noticed that the Build command created a dll of 6870kB (the one shipped with the sources is 468kB

Is there something wrong?