General discussion

Locked

How can I pass a paramater "Yes" to a sy

By nrc1 ·
How can I pass a paramater "Yes" to a system generated msgbox, so after that user will not be pressing "Yes" key on every time. thanks
Reply me on guru@tough.com

This conversation is currently closed to new comments.

13 total posts (Page 2 of 2)   Prev   01 | 02
Thread display: Collapse - | Expand +

All Comments

Collapse -

How can I pass a paramater "Yes" to a sy

by X-Cyber In reply to How can I pass a paramate ...

If you have the MessageBoxs Handle or ClassName and Caption you can Use:

Prnt = FindWindow("ClassName", "Caption")
Chld = FindWindowEx(Prnt,
0, "Button", "Yes")
SendMessage Chld, WM_KEYDOWN, VK_SPACE, 0
SendMessage Chld, WM_KEYUP, VK_SPACE, 0

If you know the Handle then you do not need the first code line, then start with the second line and where says Prnt on the second line put the MessageBoxs Handle

Collapse -

How can I pass a paramater "Yes" to a sy

by nrc1 In reply to How can I pass a paramate ...

The question was auto-closed by TechRepublic

Collapse -

How can I pass a paramater "Yes" to a sy

by nrc1 In reply to How can I pass a paramate ...

This question was auto closed due to inactivity

Back to Web Development Forum
13 total posts (Page 2 of 2)   Prev   01 | 02

Related Discussions

Related Forums