OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14-04-2010, 14:17
dchinell
Guest
 
Posts: n/a
Default Assign a keyboard shortcut to a special character

We often want to insert "true" minus signs in paragraph or artistic text. I have lashed together this code:

Sub InsertMinus()

On Error Resume Next
ActiveShape.Text.Selection.Replace Text:=ChrW(8722)

End Sub

But this only works if one is editing in the drawing window. I'd prefer to be able to create a "universal" keyboard shortcut for the minus sign that also works in the Edit Text window.

I've experimented with QuickCorrect but this seems awkward and doesn't allow me to use keyboard combinations we've already established for use in Word.

Any clues?

Bear
Reply With Quote
  #2  
Old 18-04-2010, 16:41
knowbodynow knowbodynow is offline
Senior Member
 
Join Date: Mar 2006
Location: Hatsukaichi near Hiroshima
Posts: 434
Default

Hi, why not use something like AutoHotKey?

http://www.autohotkey.com/
http://lifehacker.com/software/keybo...key-159785.php

Chris
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Characters to the right of a special character norbert_ds CorelDRAW/Corel DESIGNER VBA 3 03-05-2007 20:59
Problem with shortcut key and macro knowbodynow Macros/Add-ons 3 10-03-2006 05:15
keyboard driver switching daniello General 3 22-10-2005 12:08
HP 8550 print special character problem petu CorelDRAW/Corel DESIGNER VBA 0 21-07-2005 22:04
Auto keyboard switch - WHERE is it? corel9master CorelDRAW/Corel DESIGNER VBA 3 31-03-2004 13:06


All times are GMT -5. The time now is 05:46.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com