Click here to Skip to main content
15,912,207 members
Home / Discussions / C#
   

C#

 
QuestionUse Wizard Tools or Code everything? Pin
blooper0229-Jan-08 14:34
blooper0229-Jan-08 14:34 
AnswerRe: Use Wizard Tools or Code everything? Pin
Mark Churchill29-Jan-08 18:20
Mark Churchill29-Jan-08 18:20 
GeneralRe: Use Wizard Tools or Code everything? Pin
blooper0230-Jan-08 22:19
blooper0230-Jan-08 22:19 
GeneralRe: Use Wizard Tools or Code everything? Pin
Mark Churchill31-Jan-08 0:11
Mark Churchill31-Jan-08 0:11 
Questionreversing gethashcode() Pin
haseeb_saeed29-Jan-08 9:12
haseeb_saeed29-Jan-08 9:12 
GeneralRe: reversing gethashcode() Pin
pmarfleet29-Jan-08 9:30
pmarfleet29-Jan-08 9:30 
AnswerRe: reversing gethashcode() Pin
Guffa29-Jan-08 9:32
Guffa29-Jan-08 9:32 
GeneralRe: reversing gethashcode() Pin
Ennis Ray Lynch, Jr.29-Jan-08 9:37
Ennis Ray Lynch, Jr.29-Jan-08 9:37 
GeneralWebbrowser control + com visable functions Pin
Spacix One29-Jan-08 6:29
Spacix One29-Jan-08 6:29 
GeneralRe: Webbrowser control + com visable functions Pin
led mike29-Jan-08 6:58
led mike29-Jan-08 6:58 
GeneralRe: Webbrowser control + com visable functions Pin
Spacix One29-Jan-08 7:53
Spacix One29-Jan-08 7:53 
GeneralRe: Webbrowser control + com visable functions Pin
led mike29-Jan-08 8:26
led mike29-Jan-08 8:26 
GeneralRe: Webbrowser control + com visable functions Pin
Not Active29-Jan-08 8:29
mentorNot Active29-Jan-08 8:29 
GeneralRe: Webbrowser control + com visable functions Pin
Spacix One29-Jan-08 9:40
Spacix One29-Jan-08 9:40 
GeneralRe: Webbrowser control + com visable functions Pin
Not Active29-Jan-08 14:32
mentorNot Active29-Jan-08 14:32 
GeneralRe: Webbrowser control + com visable functions Pin
Spacix One30-Jan-08 4:52
Spacix One30-Jan-08 4:52 
GeneralRe: Webbrowser control + com visable functions Pin
Not Active30-Jan-08 5:01
mentorNot Active30-Jan-08 5:01 
GeneralRe: Webbrowser control + com visable functions Pin
Spacix One30-Jan-08 5:39
Spacix One30-Jan-08 5:39 
GeneralRe: Webbrowser control + com visable functions Pin
Not Active30-Jan-08 5:46
mentorNot Active30-Jan-08 5:46 
GeneralHelp with User Validation Pin
MumbleB29-Jan-08 5:52
MumbleB29-Jan-08 5:52 
GeneralRe: Help with User Validation Pin
led mike29-Jan-08 5:58
led mike29-Jan-08 5:58 
GeneralRe: Help with User Validation Pin
MumbleB29-Jan-08 6:29
MumbleB29-Jan-08 6:29 
GeneralRe: Help with User Validation Pin
Giorgi Dalakishvili29-Jan-08 6:04
mentorGiorgi Dalakishvili29-Jan-08 6:04 
GeneralRe: Help with User Validation Pin
led mike29-Jan-08 6:38
led mike29-Jan-08 6:38 
QuestionSimulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Mike Curry - Canada29-Jan-08 5:09
Mike Curry - Canada29-Jan-08 5:09 
I am unable to figure out how to simulate a SHIFT+MOUSE_RIGHT_CLICK, I tried several samples without any luck, here is some of the code I am using to try and get it to work...

<br />
[DllImport("USER32.DLL")]<br />
public static extern int SendMessage(IntPtr hwnd, int<br />
msg, int character, int count);<br />
<br />
[Flags]<br />
public enum MouseEventFlags<br />
{<br />
LEFTDOWN = 0x00000002,<br />
LEFTUP = 0x00000004,<br />
MIDDLEDOWN = 0x00000020,<br />
MIDDLEUP = 0x00000040,<br />
MOVE = 0x00000001,<br />
ABSOLUTE = 0x00008000,<br />
RIGHTDOWN = 0x00000008,<br />
RIGHTUP = 0x00000010<br />
} <br />
<br />
--- THE ACTUAL CODE ---<br />
<br />
// position the mouse <br />
SetCursorPos(ox + xx, oy + yy);<br />
<br />
// hold down shift<br />
win32.SendMessage(phwnd, 0x0100, 0xA0, 0); // left shift<br />
<br />
// click the mouse<br />
mouse_event((uint)MouseEventFlags.RIGHTDOWN, 0, 0, 0, 0);<br />
mouse_event((uint)MouseEventFlags.RIGHTUP, 0, 0, 0, 0);<br />
<br />
// release shift<br />
win32.SendMessage(phwnd, 0x0101, 0xA0, 1); // left shift<br />
<br />


Looking for help, suggestions or a "Hey, your doing this wrong you tool!"

Best,
Confused | :confused: Mike Confused | :confused:

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.