Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change the Look in directory of an open OpenSaveDialog
#1
Supposed that an OpenSaveDialog is open waiting for user input.
Is there any way to change at this time the initial directory using a macro? In other words is it possible to set the value in the "Look in" or "Save in" window when the dialog is already open?
#2
Probably not, because the combo is not editable. You can only select one of items from the drop down list by typing first character. (on XP).

Code:
Copy      Help
int h=wait(60 win("Open" "#32770" "qm")); err ret
act id(1137 h) ;;1137 is 'Look in' combo box id on XP
key "E" ;;selects eg E:\. Can select only one of the drop down list items.

If needs to run the above code from the macro that calls OpenSaveDialog, use mac to run it.

Code:
Copy      Help
mac "FunctionWithTheAboveCode"
if(!OpenSaveDialog(0 _s)) ret


Forum Jump:


Users browsing this thread: 1 Guest(s)