Page 1 of 1

How to send text in a xyplorer script?

Posted: 06 Mar 2012 09:14
by textpattern
I recently use xyplorer! It's wonderful.
I want to write a script to easy my work: focus the address bar and type some words.

i.e. I want to search files like "abc.txt". I send "ctrl+alt+a" to focus address bar and I type "?abc" to search the files.
It is boring to type "ctrl+alt+a" each time. I wish to make a script to easy the work. The keymap with script is like:
? -> ::focus address bar; send "?"
So I can just type one "?" to starting search directly. No more type "ctrl+alt+a" again and again.
I know "focus address bar" has a command id:#1014.
But I can't find a command named "send" or "send_text". So I can't send "?" to address bar.

Is there a "send" command in xyplorer. or someone can tell me how to send text in the script?

Re: How to send text in a xyplorer script?

Posted: 13 Mar 2012 13:46
by admin
You cannot. Instead simply use this script:

Code: Select all

goto "?abc";

Re: How to send text in a xyplorer script?

Posted: 13 Mar 2012 15:56
by Muroph
this script should work

Code: Select all

focus "A";sendkeys "?";

Re: How to send text in a xyplorer script?

Posted: 13 Mar 2012 17:43
by admin
FYI, sendkeys is not documented -- but yes, it should work.