> > Anyway, it works for me, too. But it is kind of slow and unreliable 
> > sometimes. IMO sending lots of keys always leads to unpredictable 
> > results due to timing problems, especially when you have 
> input-boxes 
> > with auto-completion.

This is a little script file that I've put together for use with your File
open dialog setups. 

------------------------
; Thanks to Mockey for the idea on this. This will switch to network paths
; and avoid errors with MS Office apps with autocomplete in the file name
field
; and will make long paths be entered in much faster.

; Released 1/4/05 by David Troesch [EMAIL PROTECTED]

; Installation:
; Put the filedialog.powerpro into your scripts folder.

; Requirements:
; MiscPlugin found in the PPlugins.zip file at http://ppro.pcrei.com or
; http://groups.yahoo.com/group/power-pro/files/Plug-ins_and_add-ons/

; Usage: 
; Setup a regular File/Open dialog using the usual method
; as shown in the powerpro help | Index | dialogs open/save | 
; Sending folder names to open/save dialogs. The standard method
; for sending paths to the filedialog window is:
;     *keys {to folder}c:\pathname
; Using this script file, you will replace that command with:
;    .filedialog (?"c:\pathname")
; 


local fold = Arg(1)
wait.for(activewindow("filedialog"))
win.sendkeys("{to filedialog}%n")
local txt = MiscPlugin.GetFocus(4)
local han = MiscPlugin.GetFocus(2)
win.settext(han, fold)
keys {to filedialog}{enter}{enter}
wait 1
win.settext (han, txt)
------------------------

David Troesch  |  Atlanta, GA  |  ICQ# 2333123
Protect your privacy rights. http://www.eff.org
Funstuff: If it wasnt for C, we would be using BASI, PASAL, LIPPER and OBOL!



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to