How to simulate pressing a key
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 74 articles for 0.005 sec
Re: How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: netawater
Date: Sep 20, 2008 07:43

...: I do not want to interactive call a function but call it like pressing a key. I think you do, you just don't know it yet. :) You...thas (defun do-what-backspace-does () (interactive) (call-interactively (key-binding "\C-?"))) my aim is to binding a funtion to tab key in every mode: if cursor is at the end of ...
Show full article (0.82Kb) · Show article thread
Re: How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: netawater
Date: Sep 20, 2008 07:37

... not just call the function which key is binding for it may ... call a function but call it like pressing a key. for example, press tab in help-mode will cause forward-button function ... to binding a funtion to tab key in every mode: if cursor is ...^C^t is binding to tab key's function in mode-hook. ...binding "^C^t")) (M-TAB-func (key-binding "\M-\t"))) (if (looking-at ...
Show full article (2.72Kb) · Show article thread
Re: How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: Nikolaj Schumacher
Date: Sep 20, 2008 03:59

...> wrote: I do not want to interactive call a function but call it like pressing a key. I think you do, you just don't know it yet. :) You want to ... like thas (defun do-what-backspace-does () (interactive) (call-interactively (key-binding "\C-?"))) my aim is to binding a funtion to tab key in every mode: if cursor is at the end of ...
Show full article (0.63Kb) · Show article thread
RE: How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: Drew Adams
Date: Sep 19, 2008 23:19

...can not just call the function which key is binding for it may ... call a function but call it like pressing a key. for example, press tab in help-mode will cause forward-button function ...is to binding a funtion to tab key in every mode: if cursor is ...^C^t is binding to tab key's function in mode-hook. ...binding "^C^t")) (M-TAB-func (key-binding "\M-\t"))) (if (looking-at ...
Show full article (2.38Kb) · Show article thread
Re: How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: netawater
Date: Sep 19, 2008 19:50

... not just call the function which key is binding for it may ... want to interactive call a function but call it like pressing a key. for example, press tab in help-mode will cause forward-button function ... to binding a funtion to tab key in every mode: if cursor is ...^C^t is binding to tab key's function in mode-hook. (...binding "^C^t")) (M-TAB-func (key-binding "\M-\t")) ) (if (looking-at...
Show full article (1.51Kb) · Show article thread
How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: netawater
Date: Sep 19, 2008 08:12

I can not just call the function which key is binding for it may have uncertainty parameter, like tab's function forward-button has parameter, but lisp-indent-line does not. although execute-extended-command works perfect, but I can not use it in my elisp function. Thank you very much!
Show full article (0.29Kb)
RE: How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: Drew Adams
Date: Sep 19, 2008 08:05

> I can not just call the function which key is binding for it may have uncertainty parameter, like tab's function forward-button has parameter, but lisp-indent-line does not. although execute-extended-command works perfect, but I can not use it in my elisp function. I'm not sure I understand your question, but if I do, have a look at function `call-interactively'. It lets you ...
Show full article (0.57Kb)
Re: How send Function Keys using AppleScript     

Group: comp.sys.mac.comm · Group Profile · Search for How to simulate pressing a key in comp.sys.mac.comm
Author: J. Stewart
Date: Jun 28, 2007 15:50

... Gadgetman <stewart.gadget@gmail.com> said: I am trying to simulate pressing function keys on the Apple Mac OS X 10.4.9 and have ...> tell application "System Events" keystroke F9 key end tell I was expecting the Mac ... windows as it does if I manually press F9. Any ideas? tell application "System Events" to key code 101 -- Use ROT-13 for email ...
Show full article (0.55Kb)
RE: How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: Drew Adams
Date: Sep 20, 2008 09:00

> Sorry, I misunderstanded your call interactively's mean, I thought it need me input parameter interactively, sorry for my poor english level, call-interactively is a perfect method for my function. Thank you very much! No problem. I sympathize with the language difficulties. BTW, I've filed an Emacs bug (#1010) suggesting a slight change in the doc for `call-interactively', to ...
Show full article (0.99Kb) · Show article thread
Re: How to simulate pressing a key     

Group: gnu.emacs.help · Group Profile · Search for How to simulate pressing a key in gnu.emacs.help
Author: Thierry Volpiatto
Date: Sep 20, 2008 00:08

"Drew Adams" <drew.adams@oracle.com> writes: Calling the command interactively (call-interactively #'button)... Sorry, I meant (call-interactively #'forward-button). (forward-button +or-arg) go to the next/prec arg button and (push-button) active the button -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France
Show full article (0.34Kb) · Show article thread
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · next