Re: Dialog vs dialog (mfc)
Hello thanks again,
all works fine, using sendinput or keyboard_event.
but hitting a new problem......
the editcontrol of dailog -B- can handle only 5 chars. (Then it hops to the NEXT button)
so when I shoot over "bunny" the edit control is full.
when I shoot over "horse" at this time, funny things are happening, this what I
described earlier. And the bunny is still there. So how do I clear the content
of the editcontrol before I can send over the "horse".
tried SetWindowtext(""), not satisfied (maybe in combination with ...)
regards,
ger
Re: Dialog vs dialog (mfc)
Since you are essentially automating the application, I would approach the problem from an automation point of view.
I would use Active Accessability to manipulate the controls (button clicks, tab clicks, selecting items and so on). For edit boxes I would use SendInput.
Sending characters to perform window navigation isn't reliable (as you have found out).
Re: Dialog vs dialog (mfc)
@Arjay,
That is going to be difficult, new challenge........
anyway.
Do you have any examples on the UIAutomation, not necessary related to my problem.
the ones I found are C#
on the other hand do I really have to go that far, as I only have to reset tab order.
the state on the initdialog, and/or clear the editcontrol.
thanks,
ger
Re: Dialog vs dialog (mfc)
Hi All,
to circum navigate the UIautomation....
did some digging, using sendinput() or the keyb_event()
will do the job.
But there is one small item...
I need an init state, like the one on initdialog.
so I found out, I need to find the BS_DEFAULT button!
how can this be comp.
If, I can use GetButtonStyle()
how do I implement this?
regards,
ger