EmEditor (text editor) Forum Index Enhancement Suggestions about Macros
Wait for key press, get Key | Register To Post |
| Flat | Previous Topic | Next Topic |
| Poster | Thread |
|---|---|
| Stefan | Posted on: 2/23/2013 11:54 am |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 257 |
Wait for key press, get Key .
Hi Yutaka I need a feature to get the key an user has pressed. I want to omit the usual InputBox() dialog. Example script: varK = GetKey(); alert('You have pressed ' + varK); OR - select a word - execute macro - macro is waiting for a key press selText = document.selection.Text; varK = ""; while(varK==""){ varK = GetKey(); wait 200ms; } document.selection.Text = varK + selText + varK The point is: no dialog involved! Or perhaps useful for while(varK.length < 5){ varK = varK + GetKey(); } . |
| Flat | Previous Topic | Next Topic |
| Subject | Poster | Date |
|---|---|---|
| » |
Stefan | 2/23/2013 11:54 am |
| |
Stefan | 2/24/2013 3:48 am |
| |
Yutaka | 2/24/2013 9:39 am |
| |
Stefan | 2/27/2013 9:45 am |
| |
Yutaka | 2/27/2013 10:00 am |
| |
Stefan | 2/27/2013 10:57 pm |
| Register To Post | |


