Click here to Skip to main content
15,911,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: ActiveX Autocad Pin
Christian Graus31-May-05 21:46
protectorChristian Graus31-May-05 21:46 
GeneralRe: ActiveX Autocad Pin
Reanalyse31-May-05 22:09
Reanalyse31-May-05 22:09 
GeneralRe: ActiveX Autocad Pin
Joel Lucsy2-Jun-05 15:34
Joel Lucsy2-Jun-05 15:34 
GeneralRe: ActiveX Autocad Pin
Newbie_Toy2-Jun-05 16:45
Newbie_Toy2-Jun-05 16:45 
GeneralRe: ActiveX Autocad Pin
Joel Lucsy3-Jun-05 2:37
Joel Lucsy3-Jun-05 2:37 
GeneralRe: ActiveX Autocad Pin
Newbie_Toy3-Jun-05 17:17
Newbie_Toy3-Jun-05 17:17 
GeneralRe: ActiveX Autocad Pin
Joel Lucsy6-Jun-05 3:42
Joel Lucsy6-Jun-05 3:42 
GeneralWindowsLocation and Mouse CoOrds. Pin
Akrynite31-May-05 16:01
Akrynite31-May-05 16:01 
So I'm making an application that alters another Windows program. I want to do it buy synthesizing mouseclicks. I have that aspect working, what I need to do now is determine the location. I'm using GetWindowLocation, However the values it returns are kind of absurd. SO I'll post my code(stolen mostly from another post) and if anyone can figure out where I went wrong...
<br />
[DllImport("user32.dll")]<br />
private static extern bool GetWindowPlacement(IntPtr hWnd, ref WindowPlacement placement);<br />
public struct WindowPlacement{<br />
	public uint length;<br />
	public uint flags;<br />
	public uint showCmd;<br />
	public POINT ptMinPosition;<br />
	public POINT ptMaxPosition;<br />
	public RECT rcNormalPosition;<br />
}<br />
public struct POINT{<br />
public long x;<br />
public long y;<br />
}<br />
public struct RECT{<br />
	public long left;<br />
	public long top;<br />
	public long right;<br />
	public long buttom;<br />
}

That's my structure definitions.
I call it like this
<br />
WindowPlacement Place;<br />
GetWindowPlacement(Handle, ref Place);<br />


Ok so there it is, the values return seem pretty absurd. Negative numbers 15 digits long and such, nothing I can make a mousepointer move to without errors. Anyhelp would be great.
jake
GeneralRe: WindowsLocation and Mouse CoOrds. Pin
Christian Graus31-May-05 16:23
protectorChristian Graus31-May-05 16:23 
Generalstand alone application Pin
ABBASI_RA31-May-05 15:20
ABBASI_RA31-May-05 15:20 
GeneralRe: stand alone application Pin
Miguel Andrés31-May-05 15:25
Miguel Andrés31-May-05 15:25 
GeneralSyntax colorizing a textbox Pin
HRiazi31-May-05 14:19
HRiazi31-May-05 14:19 
GeneralRe: Syntax colorizing a textbox Pin
Christian Graus31-May-05 15:32
protectorChristian Graus31-May-05 15:32 
GeneralRe: Syntax colorizing a textbox Pin
Robert Rohde31-May-05 20:32
Robert Rohde31-May-05 20:32 
GeneralRe: Syntax colorizing a textbox Pin
nemopeti31-May-05 23:13
nemopeti31-May-05 23:13 
GeneralOutlook settings in C# Pin
Christian Graus31-May-05 14:11
protectorChristian Graus31-May-05 14:11 
GeneralRe: Outlook settings in C# Pin
minhpc_bk31-May-05 21:49
minhpc_bk31-May-05 21:49 
GeneralRe: Outlook settings in C# Pin
Christian Graus31-May-05 21:55
protectorChristian Graus31-May-05 21:55 
GeneralProcess start-close notifications in C# Pin
Miguel Andrés31-May-05 14:04
Miguel Andrés31-May-05 14:04 
GeneralRe: Process start-close notifications in C# Pin
Christian Graus31-May-05 14:09
protectorChristian Graus31-May-05 14:09 
GeneralRe: Process start-close notifications in C# Pin
Miguel Andrés31-May-05 15:23
Miguel Andrés31-May-05 15:23 
GeneralRe: Process start-close notifications in C# Pin
Christian Graus31-May-05 15:31
protectorChristian Graus31-May-05 15:31 
Generalmissing some things Pin
Tom Wright31-May-05 12:19
Tom Wright31-May-05 12:19 
GeneralRe: missing some things Pin
Judah Gabriel Himango31-May-05 13:10
sponsorJudah Gabriel Himango31-May-05 13:10 
GeneralHave Problem while invoking a method in C# Web Services Pin
grace_at_canada31-May-05 10:36
grace_at_canada31-May-05 10:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.