Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: AskFileName WinPlace IntControl(63
Is there any way I haven't thought of to display this in a "nicer" location?
This seems to work to resize AskFileName:
It requires 2 WB scripts:
;SCRIPT #1 run("c:\program files\winbatch\system\winbatch.exe", "c:\temp\wplace.wbt") ;BoxOpen("","") types="All Files|*.*|WIL Files|*.wbt;*.mnu|Text Files|*.txt|" fn1=AskFileName("SelectFile", "C:\temp", types, "Sol.wbt", 0) Message("File selected was", fn1) Filecopy("c:\temp\junk.wbt", fn1, @true) ;SCRIPT #2 - WPLACE.WBT while 1 if !winexist("SelectFile") timedelay(1) else Winplace(250,250, @noresize, @noresize, `SelectFile`) break endif timedelay(1) endwhile ;;;;;;;;;;;;;;;;;;;;;;;;;
OR, if you do a BoxOpen("","") first to move the WinBatch window to the middle of the screen, then it will open up more or less centered, e.g.:
BoxOpen("Be alert!","The world needs more lertz.") fn=AskFileName(... BoxShut()
Article ID: W13040
Filename: AskFileName Window Location and Size.txt
File Created: 1999:08:11:14:03:40
Last Updated: 1999:08:11:14:03:40