Macros for WordPad?

G

Guest

Is it possible to write macros for WordPad? I am somewhat familiar with VB
and VBA.
The idea is to assign a special character to a shortcut, such that, e.g.
entering Alt+z would enter a z with a dot (U+017C) or Alt+x would result in a
z with an accent (U+017A)? This is all in WordPad. See also my other posting
‘WordPad and special characters’ of yesterday.

Thanks
 
J

Jon

JanAdam said:
Is it possible to write macros for WordPad? I am somewhat familiar with VB
and VBA.
The idea is to assign a special character to a shortcut, such that, e.g.
entering Alt+z would enter a z with a dot (U+017C) or Alt+x would result
in a
z with an accent (U+017A)? This is all in WordPad. See also my other
posting
‘WordPad and special characters’ of yesterday.

Thanks

You could perhaps create global shortcuts to .vbs scripts, that say used
wshshell.SendKeys to send key combinations to your wordpad document
[place a shortcut to the script somewhere in the start menu, to make its
keyboard shortcut combination permanent.]
[right-click a shortcut > Properties to set a shortcut combination]

Jon
 
G

Guest

Thank you Jon, I will try to explore if further, however, I am not sure how
to intercept keyboard entries in real time on the OS level. I will have to
think about it and do some reading. Any hints/suggestions?
--
JanAdam


Jon said:
JanAdam said:
Is it possible to write macros for WordPad? I am somewhat familiar with VB
and VBA.
The idea is to assign a special character to a shortcut, such that, e.g.
entering Alt+z would enter a z with a dot (U+017C) or Alt+x would result
in a
z with an accent (U+017A)? This is all in WordPad. See also my other
posting
‘WordPad and special characters’ of yesterday.

Thanks

You could perhaps create global shortcuts to .vbs scripts, that say used
wshshell.SendKeys to send key combinations to your wordpad document
[place a shortcut to the script somewhere in the start menu, to make its
keyboard shortcut combination permanent.]
[right-click a shortcut > Properties to set a shortcut combination]

Jon
 
D

David Candy

Look at your other thread impatient one. I wasn't going to answer till Da Vinci's Inquest and Farscape finished.

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
JanAdam said:
Thank you Jon, I will try to explore if further, however, I am not sure how
to intercept keyboard entries in real time on the OS level. I will have to
think about it and do some reading. Any hints/suggestions?
--
JanAdam


Jon said:
JanAdam said:
Is it possible to write macros for WordPad? I am somewhat familiar with VB
and VBA.
The idea is to assign a special character to a shortcut, such that, e.g.
entering Alt+z would enter a z with a dot (U+017C) or Alt+x would result
in a
z with an accent (U+017A)? This is all in WordPad. See also my other
posting
‘WordPad and special characters’ of yesterday.

Thanks

You could perhaps create global shortcuts to .vbs scripts, that say used
wshshell.SendKeys to send key combinations to your wordpad document
[place a shortcut to the script somewhere in the start menu, to make its
keyboard shortcut combination permanent.]
[right-click a shortcut > Properties to set a shortcut combination]

Jon
 
G

Guest

Impatient, yah, I guess so - but grateful for sure. Thanks
--
JanAdam


David Candy said:
Look at your other thread impatient one. I wasn't going to answer till Da Vinci's Inquest and Farscape finished.

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
JanAdam said:
Thank you Jon, I will try to explore if further, however, I am not sure how
to intercept keyboard entries in real time on the OS level. I will have to
think about it and do some reading. Any hints/suggestions?
--
JanAdam


Jon said:
Is it possible to write macros for WordPad? I am somewhat familiar with VB
and VBA.
The idea is to assign a special character to a shortcut, such that, e.g.
entering Alt+z would enter a z with a dot (U+017C) or Alt+x would result
in a
z with an accent (U+017A)? This is all in WordPad. See also my other
posting
‘WordPad and special characters’ of yesterday.

Thanks

--
JanAdam

You could perhaps create global shortcuts to .vbs scripts, that say used
wshshell.SendKeys to send key combinations to your wordpad document
[place a shortcut to the script somewhere in the start menu, to make its
keyboard shortcut combination permanent.]
[right-click a shortcut > Properties to set a shortcut combination]

Jon
 
J

Jon

You could also perhaps look at the clipboard object within VB, which might
also help to get the special characters onto the clipboard in the first
place, ready for pasting eg via wshshell.sendkeys "^v"

Jon



JanAdam said:
Impatient, yah, I guess so - but grateful for sure. Thanks
--
JanAdam


David Candy said:
Look at your other thread impatient one. I wasn't going to answer till Da
Vinci's Inquest and Farscape finished.

--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
JanAdam said:
Thank you Jon, I will try to explore if further, however, I am not sure
how
to intercept keyboard entries in real time on the OS level. I will have
to
think about it and do some reading. Any hints/suggestions?
--
JanAdam


:


Is it possible to write macros for WordPad? I am somewhat familiar
with VB
and VBA.
The idea is to assign a special character to a shortcut, such that,
e.g.
entering Alt+z would enter a z with a dot (U+017C) or Alt+x would
result
in a
z with an accent (U+017A)? This is all in WordPad. See also my other
posting
‘WordPad and special characters’ of yesterday.

Thanks

--
JanAdam

You could perhaps create global shortcuts to .vbs scripts, that say
used
wshshell.SendKeys to send key combinations to your wordpad document
[place a shortcut to the script somewhere in the start menu, to make
its
keyboard shortcut combination permanent.]
[right-click a shortcut > Properties to set a shortcut combination]

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top