How to send text in a xyplorer script?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
textpattern
Posts: 2
Joined: 02 Mar 2012 14:56

How to send text in a xyplorer script?

Post 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?

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How to send text in a xyplorer script?

Post by admin »

You cannot. Instead simply use this script:

Code: Select all

goto "?abc";

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: How to send text in a xyplorer script?

Post by Muroph »

this script should work

Code: Select all

focus "A";sendkeys "?";
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How to send text in a xyplorer script?

Post by admin »

FYI, sendkeys is not documented -- but yes, it should work.

Post Reply