--- In [email protected], sgp <[EMAIL PROTECTED]> wrote:
>
> swzoh wrote:
> 
> > PostMessage(256,13)
> 
> Sean, what does this do? Apparently nothing here.
> And how did you find out the parameters?

This is WM_KEYDOWN message, and 13 is the vkcode of Enter key. So, it
simulates the pressing Enter key. However, I ignored the last lparam
and accompanying WM_KEYUP message as it worked fine without them in my
case.
To be precise, it should be (28 is the scancode of Enter):

PostMessage(0x100, 13, 1 | 28 << 16)
PostMessage(0x101, 13, 1 | 28 << 16 | 3 << 30)

However, I suspect it's not the cause, the find file window was not
loaded completely when the message was sent. I suggest to change the
Wait condition, e.g.,
anywindow to visiblewindow or activewindow
or add futher wait.for(1000) etc.

Sean

Reply via email to