I've been writing something which has to cater for four individual windows each running the same software. I've added a dialog to my script which asks the user to select a "brand" which I then use to call SetFocus using the dialog result as the window handle. This doesn't seem to be working consistently and now I'm wondering if it ever worked when I only had it coded for a single window (I probably always had the focus on the window to start with).
I run the dialog and capture the return variable :
Code: Select all
Show>Dialog1,modalResult
GetDialogProperty>Dialog1,MSComboBox1,Text,BrandWindow
Code: Select all
SetFocus>BrandWindow
Thanks in advance for any help guys.