Capture Application Highlight

  • Thread starter Thread starter aolson
  • Start date Start date
A

aolson

Hello,
I am doing some coding in PeopleCode and the application designer
doesnt have anything to easily comment out code. I know a little
vb.net and c# and am wondering if it is possible to have a process
running or build a custom menu of sorts to do some of these simple
things? Example, when I highlight some code in the application
designer do a key combo or click a button on my custom menu and have
it perform an append on the highlighted text? What do you think,
could it be done?
Thanks for any info you can provide.
 
Hello,
I am doing some coding in PeopleCode and the application designer
doesnt have anything to easily comment out code.  I know a little
vb.net and c# and am wondering if it is possible to have a process
running or build a custom menu of sorts to do some of these simple
things?  Example, when I highlight some code in the application
designer do a key combo or click a button on my custom menu and have
it perform an append on the highlighted text?   What do you think,
could it be done?
Thanks for any info you can provide.

Unless the designer supports plugins written in .NET, I don't think
you'll have an easy way of doing this. For good response time and
dependability, you'd almost have to have an API for the designer,
keyboard hooks and other things would be hard to write and even harder
to test.

One other possibility, which would be a large project, would be to
write a language extension for Visual Studio to support PeopleCode.
I've never tried to do this, but I know that it can be down through
the Visual Studio Extensibility model.

Besides that, you could look at tools such as AutoHotKey to set up
some macros to help you out. This would be the least powerful, but
also the easiest and cheapest to create.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 
Back
Top