Click here to Skip to main content
15,878,970 members
Home / Discussions / C#
   

C#

 
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:
GeneralRe: Simulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Mike Ellison29-Jan-08 5:43
Mike Ellison29-Jan-08 5:43 
GeneralRe: Simulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Bekjong29-Jan-08 6:35
Bekjong29-Jan-08 6:35 
AnswerRe: Simulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Spacix One29-Jan-08 6:39
Spacix One29-Jan-08 6:39 
GeneralRe: Simulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Skippums29-Jan-08 7:56
Skippums29-Jan-08 7:56 
GeneralRe: Simulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Mike Curry - Canada29-Jan-08 9:55
Mike Curry - Canada29-Jan-08 9:55 
GeneralRe: Simulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
Skippums29-Jan-08 10:36
Skippums29-Jan-08 10:36 
GeneralRe: Simulating SHIFT+MOUSE_RIGHT_CLICK ? Pin
led mike29-Jan-08 11:02
led mike29-Jan-08 11:02 
QuestionORM and Obfuscation Pin
gentyjp29-Jan-08 4:10
gentyjp29-Jan-08 4:10 
GeneralRe: ORM and Obfuscation Pin
Mark Churchill29-Jan-08 18:12
Mark Churchill29-Jan-08 18:12 
Questionhow to display MsWord document in my app ? Pin
hdv21229-Jan-08 4:00
hdv21229-Jan-08 4:00 
AnswerRe: how to display MsWord document in my app ? Pin
Mike Ellison29-Jan-08 5:48
Mike Ellison29-Jan-08 5:48 
GeneralConnect to a printer with a C# service Pin
chrpet29-Jan-08 3:55
chrpet29-Jan-08 3:55 
GeneralRe: Connect to a printer with a C# service Pin
chrpet13-Feb-08 21:53
chrpet13-Feb-08 21:53 
Generalpdf library support unicode Pin
sepel29-Jan-08 3:10
sepel29-Jan-08 3:10 
GeneralRe: pdf library support unicode Pin
Justin Perez29-Jan-08 3:26
Justin Perez29-Jan-08 3:26 
GeneralRe: pdf library support unicode Pin
sepel29-Jan-08 3:53
sepel29-Jan-08 3:53 
GeneralRe: pdf library support unicode Pin
Justin Perez29-Jan-08 3:54
Justin Perez29-Jan-08 3:54 

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.