Scripting wish: don't wait for closing dialog

Features wanted...
Post Reply
Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Scripting wish: don't wait for closing dialog

Post by Stefan »

Once i had an wish to initially fill in the IP-path in the normal c/m/b dialog:
http://www.xyplorer.com/xyfc/viewtopic. ... 134#p37134
admin wrote:
Stefan wrote:[...]
----
2)
using DP i like to use the "normal" copy/move/backup -dialogs... (...+F7)
...could there be an optional option to initially fill the path field of this c/m/b -dialog
with the current "other" panel path ?
[...]
2) Why not simply use the commands under Panes menu?




So i attempted to do this with an script.
But no success because the script wait before doing the next step till the #221 dialog is closed.

Is there an better way doing this?
Or is there room for scripting improvement to don't wait for closing dialog but do next step immediately?

Code: Select all

"Copy to other pane"
 Focus "PI";
 $a = <curpath>;                // store IP path
 Focus "PI";

           // first test
           //#221;
           //sendkeys "$a";     // input IP path


          // second test
 $clipboardold = "<clipboard>"; // store current <clipboard> content 
 copytext $a;                   // copy other-pane-path to <clipboard>
 #221;                          // open CopyTo dialog
 sendkeys "^v";                 // input <clipboard> content into CopyTo dialog
 copytext $clipboardold;        // set old <clipboard> content back

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

Re: Scripting wish: don't wait for closing dialog

Post by admin »

sendkeys is not supported. :P

You get your "IP" path soon (thanks to TheQwerty's cool idea...)

Post Reply