|
By the way i found a url that show a code retrieve text
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/d52b9825-dd13-4fd4-bfa8-722114f2ba44/
thanks for everything i have...
|
|
|
|
|
WM_GETTEXT? Really? How did you deduce that this person is working in native code and not .NET?
led mike
|
|
|
|
|
led mike wrote: How did you deduce that this person is working in native code and not .NET?
Intuition. As you can see from his/her last reply I was correct.
|
|
|
|
|
Giorgi Dalakishvili wrote: Intuition.
Wow. Nice work!
led mike
|
|
|
|
|
in fact i am newby so i couldnt understand by seeing WM_GETTEXT on his answer. i just needed more help.
Thanks...
thanks for everything i have...
|
|
|
|
|
Can i have an example of getting text from another application form running as separate process
If so please help me and I'll be very thankful to you if you provide me a C# 2003/2005 project
I will be waiting for your reply
|
|
|
|
|
it takes the button names on calculator
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace apiGetText
{
public partial class Form1 : Form
{
private const int WM_GETTEXT = 0x000D;
private const int WM_SETTEXT = 0x000C;
private const int WM_GETTEXTLENGTH = 0x000E;
[DllImport("User32.dll")]
public static extern uint GetMenuItemID(int hMenu, int nPos);
[DllImport("User32.dll")]
public static extern int FindWindow(
String lpClassName,
String lpWindowName);
[DllImport("user32.dll")]
private static extern int FindWindowEx(
int parentHandle,
int childAfter,
string className,
string windowTitle);
[DllImport("User32.dll")]
public static extern Int32 SendMessage(
int hWnd, // handle to destination window
int Msg, // message
IntPtr wParam, // first message parameter
StringBuilder lParam);
[DllImport("User32.dll")]
public static extern Int32 SendMessage(
int hWnd, // handle to destination window
int Msg, // message
IntPtr wParam, // first message parameter
IntPtr lParam); // second message parameter
private void button1_Click(object sender, EventArgs e)
{
int calculatorHwnd;
int btnHwndGrp;
// youcan find SciCalc on spy++ --- > findwindow ----> classname
calculatorHwnd = FindWindow("SciCalc", "Calculator");
btnHwndGrp = FindWindowEx(calculatorHwnd, 0, "BUTTON", null);
int length = SendMessage(btnHwndGrp, WM_GETTEXTLENGTH, (IntPtr)0, (IntPtr)0);
if (length > 0)
{
StringBuilder sb = new StringBuilder(length);
SendMessage(btnHwndGrp, WM_GETTEXT, (IntPtr)(length + 1), sb);
//this shows the text
MessageBox.Show(sb.ToString());
}
}
}
}
thanks for everything i have...
|
|
|
|
|
I am now at office : I will try at home :
Thanks A Lot For Helping
|
|
|
|
|
Good luck !)
thanks for everything i have...
|
|
|
|
|
Thanks
I have achieve the goal by using the example you have provided but i need help your in following problem explained in image link
untitled.JPG
|
|
|
|
|
there are an error on the path
thanks for everything i have...
|
|
|
|
|
Click on the link in previous reply a new window will open
the press enter after the url or press GO button . it will work
i will be waiting for you help
thanks
|
|
|
|
|
anyway you can send the picture to my email
it says this,
HTTP1.1 STATUS 403 Remote Access to this object forbidden This file cannot be directly accessed from a remote site, but must be linked through the Brinkster Member's site.
thanks for everything i have...
|
|
|
|
|
how i can get your email address
i am not able to view email address in your profile
|
|
|
|
|
Hi All
please in need add a Query Designer to my application so the user can create an insert statement with joins if anyone can help thanks.
Mohammad Al Hoss
Development To Me Is A Pleasure more than a Job
|
|
|
|
|
Did you try searching to see what is already available? There is at least query builder here on codeproject. There is EasyQuery.NET[^] for those you are lazy to do a simple search and prefer to pay.
|
|
|
|
|
Giorgi Dalakishvili wrote: EasyQuery.NET
That looks pretty cool.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
First some background: I'm developing an application that monitors another application. This another application (let's name it AUT - Application Under Test) is launched from my application and it records the state of the application. The AUT is a third party software so I have absolutely no control over its code.
Right now I'm launching the application and I'm recording the initial state of the AUT. I now want to be able to tell if another window opens, for whatever reason, and record its state.
In Java every Swing and AWT event goes through the Event Dispatch Thread, and I can do what I want by installing a AWTEventListener and check when a WindowEvent of type WINDOW_OPENED is thrown.
Any idea how can I do this?
|
|
|
|
|
|
Thanks that really helped.
I thought I could do this using only C# code without recurring to hooks.
Thanks again!
|
|
|
|
|
You are welcome
|
|
|
|
|
Have a struct:
struct propStruct
{
private int TheIndex;
public int theIndex
{
get
{
return TheIndex;
}
set
{
TheIndex = value;
}
}
private string Addr1;
public string addr1
{
get
{
return Addr1;
}
set
{
Addr1 = value;
}
}
....
}
On MainForm I have an ArrayList, Props, filled with propStruct.
On another form I have a SORTED combobox:
cboProperty.DataSource = MainForm.Props;
cboProperty.DisplayMember = "addr1";
cboProperty.ValueMember = "theIndex";
ValueMember is always the same value as SelectedIndex, which of course is wrong, due to sorting.
Tried converting propStruct to a class, but same result.
Nigel
|
|
|
|
|
Hi Guys. I'm working in Crystal Repors in VS 2005.
I don't know how to add two number in my report.
Example:{DataTable_BaoCaoBanHang.01} + {DataTable_BaoCaoBanHang.02}
DataTable_BaoCaoBanHang.01,DataTable_BaoCaoBanHang.02--data type are Int16
Please to help me
if you cound not try then
msgbox("you will lose")
else
msgbox("you can change yourself")
end if
|
|
|
|
|
In your crystal report field explorer,
right click on the Formula Fields
create a new formula
it will ask for the formula name
select use editor
in the Formula Workshop,
drag the desired column to add, and select the appropriate operator
then select Save and Close
your formula will be created and you can simply drag and drop it to
your report.
Hope this helps
Life - Dreams = Job
TheCardinal
CTC-RDG
|
|
|
|
|
Thanks for replay to me. So can i ask you a question??I have a table in Database Access so i want to convert all data with font to SQL 2005. I import already data but about Font i can't not convert.Can you help me solve this problem.
if you cound not try then
msgbox("you will lose")
else
msgbox("you can change yourself")
end if
|
|
|
|