Understanding Input Events Like onKeyPress and onClick Within EmEditor
Understanding Input Events Like onKeyPress and onClick Within EmEditor
November 23, 2008 at 5:12 pm #6656
Participant
I don’t know if there is a way to trigger a macro with a mouse click, but you can trigger a macro using a keyboard shortcut. You can also use a single keyboard shortcut to trigger multiple choices for the user, so you do not have to restrict your macro to doing just one “action”.
The following example uses the document.selection and the CreatePopupMenu function inside a jsee macro. The popup menu gives the user multiple choices before displaying the result.
var vtext = document.selection.Text;
var result = '';
var menu = CreatePopupMenu();
menu.Add("look north", 1);
menu.Add("look south", 2);
menu.Add("look east", 3);
result = menu.Track(0);
if(result != 0) {
result = (menu.GetText(result));
Window.alert([result,vtext].join(' '));
Also read:
- [Updated] In 2024, Double Delight Endless Looping of YouTube Videos for TVs
- [Updated] In 2024, Windows Movie Maker A Toolkit for YouTube Videographers
- Decoding Crypto Trends: Expert Techniques for Interpreting Candlestick Charts Using YL Solutions
- Ensuring Regularity in Eating Habits - Introducing the PetSafe Auto-Feeder Six Serve Model
- In 2024, The Best 8 VPN Hardware Devices Reviewed On Honor Magic 6 | Dr.fone
- Personalize Your Playlists Anywhere - FB's Mini-Panel Feature, Spotify!
- Recover Deleted or Corrupted Windows System Files with Ease - Expert Advice From YL Software
- Sing Your Heart Out with the Latest Additions to Our Karaoke Library - Special Early Access for Subscribers of Karaoke Cloud Pro!
- Step-by-Step Tutorial on Utilizing Windows Defender for Enhanced Security - YL Software Insights
- Strategies for Syncing Zoom Meetings Across Devices
- Try the Latest Karaoke Pro Software - Free Demo of Karaoki v0.9.7978 by Pioneer DJ
- Title: Understanding Input Events Like onKeyPress and onClick Within EmEditor
- Author: Jason
- Created at : 2024-12-26 17:59:58
- Updated at : 2024-12-29 19:05:44
- Link: https://win-great.techidaily.com/understanding-input-events-like-onkeypress-and-onclick-within-emeditor/
- License: This work is licensed under CC BY-NC-SA 4.0.