B
Broeden
Hi All,
Is it possible to simulate a buttonclick in a CF2.0 application from
another application using FindWindow and PostMessage. I have been
trying to achive this for a while, without success. For test I have
done following
To get the WindowClassName and ButtonId I have done following in the
mainform of a application with a button named Button2:
StringBuilder className = new StringBuilder(255);
GetClassName(this.Handle, className, 255);
textBox1.Text = className.ToString();
int ButtonId = GetDlgCtrlID(button2.Handle);
textBox2.Text = ButtonId.ToString();
If I run this code on a PC I get.
className: WindowsForms10.Window.8.app.0.378734a
ButtonId: 590398
If I run it on a Handheld I get
className: #NETCF_AGL_BASE
ButtonId: 0
I'm not sure if this is useful information. Am I trying to do
something thats not possible?
/Broeden
Is it possible to simulate a buttonclick in a CF2.0 application from
another application using FindWindow and PostMessage. I have been
trying to achive this for a while, without success. For test I have
done following
To get the WindowClassName and ButtonId I have done following in the
mainform of a application with a button named Button2:
StringBuilder className = new StringBuilder(255);
GetClassName(this.Handle, className, 255);
textBox1.Text = className.ToString();
int ButtonId = GetDlgCtrlID(button2.Handle);
textBox2.Text = ButtonId.ToString();
If I run this code on a PC I get.
className: WindowsForms10.Window.8.app.0.378734a
ButtonId: 590398
If I run it on a Handheld I get
className: #NETCF_AGL_BASE
ButtonId: 0
I'm not sure if this is useful information. Am I trying to do
something thats not possible?
/Broeden