I'm trying to move a window (it's the Volume Mixer actually) that I use a "run" command to bring up.
The window pops up in literally THE worst spot for the rest of the macro, so I worked for about an hour trying to figure out how to get it to move. Various combination of Handles/Window types, etc.
Finally, what worked best was the code I posted below which opens it, leave it open for a second or so, unsuccessfully tries to move it, closes it, THEN re-opens it and moves it. (that struck me as "wrong")...But even this is only working about 2 out of 3 times.
Is this a resource thing where for some reason the CPU is too busy and the move gets missed? Or is there a better way to code this?
Thanks,
rj
Code: Select all
Run>sndvol.exe
WaitReady>0
Let>WIN_USEHANDLE=0
Let>WF_TYPE=2
MoveWindow>Volume Mixer,1109,511
wait 1.0
CloseWindow>Volume Mixer
wait 0.2
Run>sndvol.exe
wait 0.5
Let>WIN_USEHANDLE=0
Let>WF_TYPE=2
MoveWindow>Volume Mixer,1109,511
wait 1.0