tag:blogger.com,1999:blog-675425438758050748.post835480631158674773..comments2021-05-24T18:18:44.098-07:00Comments on Deprecate This: Visual Studio » BRIEF keyboard emulation implemented in VS2010 AddIn (downloadable project)Mark McGintyhttp://www.blogger.com/profile/03273527549623425484noreply@blogger.comBlogger46125tag:blogger.com,1999:blog-675425438758050748.post-75505210116479197202016-08-09T12:48:06.854-07:002016-08-09T12:48:06.854-07:00Anyone got this to work with VS2015??Anyone got this to work with VS2015??Anonymoushttps://www.blogger.com/profile/18112947936275256780noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-53170363522915104002015-05-03T02:46:42.356-07:002015-05-03T02:46:42.356-07:00Benny,
Thanks for letting me know.
Sadly Visual...Benny, <br /><br />Thanks for letting me know.<br /><br />Sadly Visual Studio has what I consider to be a bug (MS says it's by design, but IMHO that doesn't make it not a flaw.) Even though you designate key mappings for the text editor only, my addin code is still called when you type in things like the find window, or HTML WYSIWYG editor, and ActiveDocument still resolves to the source window you were in.<br /><br />So for example, in the find window, pressing DEL deletes characters from your source code at the last cursor location, and the movement arrows move the cursor in your source editor, not the find input. It totally sucks!<br /><br />I work around it by selecting whatever I want to remove plus one character and then retyping that one character, but honestly I'm not sure why I stick with it, you can really do some random damage to your code if not careful. (Undo will fix it.)<br /><br />How MS could consider this BS behavior rational or intuitive I'm uncertain. Designating a key mapping for a specific type of input window ought to work right, and ActiveDocument should always reflect the input that is actually active! But they seemed less than highly interested in my opinion... such is life I suppose.<br />Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-17596950860053061352015-05-03T01:44:49.909-07:002015-05-03T01:44:49.909-07:00Thank you Mark !
Slickedit used to make a VS plug...Thank you Mark !<br /><br />Slickedit used to make a VS plugin but they stopped that project, wish they would do that again, I like Slickedit but I have to stick with VS editor because of Resharper.<br /><br />Anonymoushttps://www.blogger.com/profile/06833612489000364388noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-86733909627560220442015-05-02T23:14:04.858-07:002015-05-02T23:14:04.858-07:00Sorry about that man, my bad, the problem has been...Sorry about that man, my bad, the problem has been corrected. I should probably publish the project on Git, so it isn't at risk og being broken the next time I rejigger my hosting... one of these days.Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-4794573330705206512015-05-02T21:08:20.865-07:002015-05-02T21:08:20.865-07:00The download links are dead, please help !The download links are dead, please help !Anonymoushttps://www.blogger.com/profile/06833612489000364388noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-49362083347639753142013-11-30T22:00:12.062-08:002013-11-30T22:00:12.062-08:00Good job, thanks Mark! So basically the same proc...Good job, thanks Mark! So basically the same process as it was going from 2010 to 2012... I wonder why, specifically, the binary must be rebuilt? The project references a specific version of EnvDTE, I'd think the binary would be upwardly compatible... [shrug] go figure...Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-49322368580099648262013-11-29T14:39:15.836-08:002013-11-29T14:39:15.836-08:00VS2013 Instructions:
Recompile the solution in 20...VS2013 Instructions:<br /><br />Recompile the solution in 2013, generate a new release DLL.<br /><br />Modify the BRIEF.AddIn file and change the version lines (2 locations) to 12:<br /><br />12.0<br /><br />Create the Addins folder yourself in 2013, once you do VS will find the Brief addin.<br /><br />%USERPROFILE%\Documents\Visual Studio 2013\Addins<br /><br />So on mine that maps to:<br /><br />C:\Users\mmcgregor\Documents\Visual Studio 2013\AddIns<br /><br />In VS2013 go into Tools/Options and under "Environment/Add-In Security" add a new path pointing to the above location. <br /><br />Close VS2013 and copy your newly build DLL and your modified .Addin file to the newly created folder above..<br /><br />Startup VS2013 and configure your keyboard mappings as normal.Anonymoushttps://www.blogger.com/profile/18112947936275256780noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-82566196417650441092013-11-01T15:06:34.066-07:002013-11-01T15:06:34.066-07:00Thanks for the kind words and you're welcome. ...Thanks for the kind words and you're welcome. Always a comfort to hear from others when you're one of the last of a dying breed (although precisely why that might be remains a mystery to me.) :-)<br /><br />As for your issue, apparently your keyboard implements num keypad + and - in a non-standard way, probably as if they were part of the regular keyboard? Those keys cannot be mapped (not to mention being entirely impractical even if you could map them.)<br /><br />Does it allow num keypad * to be mapped? If so it seems strange... but in reality changes nothing. You might want to try to contact the vendor to let them know their implementation blows-out the spec... sadly, from my experience, pissing up a rope tends to be equally [un]productive.<br /><br />Sorry man!<br /><br />-MMMark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-52673437367666789852013-11-01T10:23:48.557-07:002013-11-01T10:23:48.557-07:00This is awesome. Like many others here, I have am...This is awesome. Like many others here, I have am old school and love Brief Editor Commands, great job and thank you very much.<br /><br />But, I am having an issue with trying to assign the + and - from the numeric keypad from my keyboard. I am using a wireless keyboard connected to a laptop using W8. When I hit the - or the + from the keypad, nothing happens.<br /><br />Can anyone tell me how I can assign the - and the + from the keypad?Anonymoushttps://www.blogger.com/profile/00905698785133317090noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-5674543995698202592013-09-02T16:11:31.730-07:002013-09-02T16:11:31.730-07:00Great link, I've had to deal with this securit...Great link, I've had to deal with this security feature a number of times, but didn't know about dir /r or filename:alternate_stream, only the button on the property sheet. So thanks!<br /><br />Seems like something VS should check for when loading AddIns, doesn't it? A more forthcoming error message would surely be nice... I guess a serious AddIn would come packaged in an installer... Maybe I should publish the source only -- not that you can load a project file with this stream any more than an AddIn, but the problem is more apparent/less of a black box.<br /><br />I wonder why the block doesn't apply to .cmd files? Makes that stream utility a little risky to have in your path, doesn't it?<br /><br />Anyways, we dinosaurs have to stick together if we want to survive... hmm that's probably what those other dinosaurs said, and look where it got them? Wait they had tiny pea-brains, just after the last one ate the second-to-last I bet it thought, "well, that was unfortunate, guess I'll go jump in a tar pit to preserve this awkward moment for a zillion years." <br /><br />Where as we, with the awesome expanse of wetware we have on board... yeah, where was that tar pit again? :-)Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-74946470327467323792013-09-02T11:46:41.975-07:002013-09-02T11:46:41.975-07:00Well I've learnt something new today. I had no...Well I've learnt something new today. I had no idea what "downloaded from the Internet" might be when applied to a file in Windows, so Google to the rescue and now I do. In<br />http://www.howtogeek.com/70012/what-causes-the-file-downloaded-from-the-internet-warning-and-how-can-i-easily-remove-it/ <br />there is a nice picture of the General tab of the properties page for such a file. And ... Yes, both your files have this attribute. Removing them, and performing the file shuffle described in the "for reasons unknown" paragraph above, has fixed my problem.<br /><br />Thankyou Mark, you have saved another dinosaur! Awesome indeed!<br />Colin Wattershttps://www.blogger.com/profile/13627546160958920494noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-61325496216130282352013-09-02T09:33:00.689-07:002013-09-02T09:33:00.689-07:00Maybe the "downloaded from the Internet"...Maybe the "downloaded from the Internet" access block flag is set, right-click the .DLL and check properties. Check regular NTFS permissions on both files while you're at it, please.<br /><br />-MMMark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-38376218057365219332013-09-02T06:13:56.076-07:002013-09-02T06:13:56.076-07:00Hi Mark
I too am forced to use VS2012. Your addin...Hi Mark<br /><br />I too am forced to use VS2012. Your addin worked a treat on VS2010 but I am having similar problems to Abbas in trying to use the 2012 version. <br /><br />I have down-loaded and installed your latest update from the VS2012 link above. <br /><br />In my case however, VS starts and gives a Message box saying "The Add-in 'BRIEF' failed to load or caused an exception." ... "Error Message Error number: 80131515".<br /><br />I am using VS2012 Premium version 11.0.50727.1 RTMREL. Any ideas?<br /><br />Kind regards<br /><br />Colin<br />Colin Wattershttps://www.blogger.com/profile/13627546160958920494noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-36253359194886445052013-08-30T10:32:39.234-07:002013-08-30T10:32:39.234-07:00Abbas, any luck?Abbas, any luck?Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-3761295207926750392013-08-28T23:47:49.045-07:002013-08-28T23:47:49.045-07:00I don't remember needing to run regasm, but as...I don't remember needing to run regasm, but as I think of it, I bet VS did it for me when I built the project. It's probably worth a try.<br /><br />The rest of these are shots in the dark, in no particular order...<br /><br />1. Search your drive for brief.*, make sure there's only one copy of the files, and that it's the correct one.<br /><br />2. Make sure the folder in which the BRIEF files reside, is specified as a VS addin folder (Tools -> Options -> Environment -> AddIn Security.)<br /><br />3. Make sure all instances of VS are closed, and that only one instance is used for the following tests.<br /><br />4. Delete the BRIEF files, or change their extensions, then restart VS -- does that remove BRIEF from the AddIn manager? If not find out where it's loading from.<br /><br />5. If the last step did remove BRIEF, quit VS, restore the files and start VS with the /ResetAddIn BRIEF.Connect.BRIEFAltA command line parameter.<br /><br />6. Check these notes copied from above:<br /><br />If you have already installed an older version and wish to upgrade, you'll want to export your keyboard settings only, then execute devenv.exe /ResetAddin BRIEF.Connect.BRIEFAltA, then import the keyboard settings you just exported. That will update the supported commands to include any new ones, and will save you from having to remap the required keys (you'll only have to map the newly added ones.)<br /><br />Note: For reasons unknown I had to delete the AddIn files, start and exit VS, then copy the files and start it again, before the AddIn functions were included in the list [of functions that can be mapped to keys.] Why that might be necessary, I haven't a clue -- what made me think to try it (after re-examining the code I had just added) I couldn't tell you either... Apparently something internal needed it to be gone completely before it could be back... go figure.<br /><br /> Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-83747003748525339342013-08-28T22:06:32.073-07:002013-08-28T22:06:32.073-07:00It's not still working. Do you have any idea?It's not still working. Do you have any idea?Abbashttps://www.blogger.com/profile/02298089016898566895noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-7629884147141355052013-08-28T10:50:56.260-07:002013-08-28T10:50:56.260-07:00Oops no, sorry about that. I just uploaded the fi...Oops no, sorry about that. I just uploaded the files, a link is at the top of this blog post.Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-84958447128996907222013-08-27T20:42:07.490-07:002013-08-27T20:42:07.490-07:00Have you uploaded the build for VS 2012?Have you uploaded the build for VS 2012?Abbashttps://www.blogger.com/profile/02298089016898566895noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-15873136892355002322013-08-21T08:30:21.811-07:002013-08-21T08:30:21.811-07:00I will upload the build I'm using after my mee...I will upload the build I'm using after my meetings.Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-34874376092580982992013-08-21T07:37:12.977-07:002013-08-21T07:37:12.977-07:00It is appeared in Add-in Manager but It has not be...It is appeared in Add-in Manager but It has not been available in Keyboard mapping scheme.(Tools -> Options -> Environment -> Keyboard.)Abbashttps://www.blogger.com/profile/02298089016898566895noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-51469589725295617792013-08-21T02:36:57.379-07:002013-08-21T02:36:57.379-07:00You will need to create the folder "%USERPROF...You will need to create the folder "%USERPROFILE%\Documents\Visual Studio 2012\Addins" *and* add it to VS2012 addin folders (Tools -> Options -> Environment -> AddIn Security.)<br /><br />That should make it work, if not, let me know.<br /><br />-MMMark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-27195922257439866102013-08-20T19:58:37.709-07:002013-08-20T19:58:37.709-07:00Hi Mark McGinty ,
Can you please upload your work...Hi Mark McGinty ,<br /><br />Can you please upload your working version of BRIEF keyboard emulation for Visual Studio 2012. It is not working for me.<br /><br />Thanks.Abbashttps://www.blogger.com/profile/02298089016898566895noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-39425377175089162702013-08-16T18:00:38.537-07:002013-08-16T18:00:38.537-07:00Hi Dave,
Can you please upload your working versi...Hi Dave,<br /><br />Can you please upload your working version of BRIEF keyboard emulation for Visual Studio 2012. It is not working for me.<br /><br />Thanks.Abbashttps://www.blogger.com/profile/02298089016898566895noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-84076180572611857552013-07-08T22:43:20.778-07:002013-07-08T22:43:20.778-07:00Is there one?
I submitted a problem report to Mic...Is there one?<br /><br />I submitted a problem report to Microsoft, about keystroke mappings escaping their defined scope... they said it was by design...<br /><br />So I'm probably done beating this dead horse.Mark McGintyhttps://www.blogger.com/profile/03273527549623425484noreply@blogger.comtag:blogger.com,1999:blog-675425438758050748.post-49153127285835083172013-07-08T22:21:30.812-07:002013-07-08T22:21:30.812-07:00How about the new 2013 beta? :)How about the new 2013 beta? :)Anonymoushttps://www.blogger.com/profile/18112947936275256780noreply@blogger.com