Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
QuestionSearching for Carriage Return in string? Pin
econner3-Sep-04 19:15
econner3-Sep-04 19:15 
AnswerRe: Searching for Carriage Return in string? Pin
mav.northwind3-Sep-04 21:01
mav.northwind3-Sep-04 21:01 
GeneralRe: Searching for Carriage Return in string? Pin
Werdna4-Sep-04 10:04
Werdna4-Sep-04 10:04 
GeneralRe: Searching for Carriage Return in string? Pin
mav.northwind4-Sep-04 23:20
mav.northwind4-Sep-04 23:20 
QuestionHow To Send Info To One's Email Address. Pin
WartHog0003-Sep-04 15:36
WartHog0003-Sep-04 15:36 
AnswerRe: How To Send Info To One's Email Address. Pin
mav.northwind3-Sep-04 21:09
mav.northwind3-Sep-04 21:09 
GeneralSending Keyboard Events Pin
Alex Leshinsky3-Sep-04 14:31
Alex Leshinsky3-Sep-04 14:31 
GeneralRe: Sending Keyboard Events Pin
Alex Leshinsky4-Sep-04 9:06
Alex Leshinsky4-Sep-04 9:06 
I found a way to move the mouse:
const int MOUSEEVENTF_LEFTDOWN = 0x02;
const int MOUSEEVENTF_LEFTUP = 0x04;
[DllImport("user32")] public static extern int SetCursorPos(int x, int y) ;
[DllImport("user32")] public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
private void button1_Click(object sender, System.EventArgs e)	{
	SetCursorPos(200,200);
	mouse_event(MOUSEEVENTF_LEFTDOWN,0, 0, 0, 0);
	mouse_event(MOUSEEVENTF_LEFTUP,0, 0, 0, 0);
}


can this be modified to broadcast keys?
GeneralRe: Sending Keyboard Events Pin
Stefan Troschuetz5-Sep-04 2:18
Stefan Troschuetz5-Sep-04 2:18 
GeneralRe: Sending Keyboard Events Pin
Alex Leshinsky4-Sep-04 9:17
Alex Leshinsky4-Sep-04 9:17 
GeneralRe: Sending Keyboard Events Pin
EssOEss4-Sep-04 20:35
EssOEss4-Sep-04 20:35 
GeneralRe: Sending Keyboard Events Pin
Anonymous4-Sep-04 21:17
Anonymous4-Sep-04 21:17 
GeneralRe: Sending Keyboard Events Pin
Anonymous4-Sep-04 21:27
Anonymous4-Sep-04 21:27 
GeneralRe: Sending Keyboard Events Pin
EssOEss6-Sep-04 5:09
EssOEss6-Sep-04 5:09 
GeneralToolBar and toolBarButton Problem Pin
Inquire2you3-Sep-04 14:09
Inquire2you3-Sep-04 14:09 
GeneralRe: ToolBar and toolBarButton Problem Pin
Mr. Rogers4-Sep-04 12:15
Mr. Rogers4-Sep-04 12:15 
GeneralRe: ToolBar and toolBarButton Problem Pin
Inquire2you6-Sep-04 9:56
Inquire2you6-Sep-04 9:56 
GeneralRe: ToolBar and toolBarButton Problem Pin
Mr. Rogers6-Sep-04 10:56
Mr. Rogers6-Sep-04 10:56 
GeneralGlobal Keyboard Hook Pin
Alex Leshinsky3-Sep-04 13:45
Alex Leshinsky3-Sep-04 13:45 
GeneralRe: Global Keyboard Hook Pin
Alex Leshinsky3-Sep-04 20:59
Alex Leshinsky3-Sep-04 20:59 
Generalimage viewer with flash plugin Pin
Pyro Joe3-Sep-04 13:37
Pyro Joe3-Sep-04 13:37 
GeneralUsing HLSL with Managed DirectX Pin
WillemM3-Sep-04 7:45
WillemM3-Sep-04 7:45 
GeneralRe: Using HLSL with Managed DirectX Pin
Nick Parker3-Sep-04 8:01
protectorNick Parker3-Sep-04 8:01 
GeneralRe: Using HLSL with Managed DirectX Pin
Heath Stewart3-Sep-04 8:22
protectorHeath Stewart3-Sep-04 8:22 
GeneralRe: Using HLSL with Managed DirectX Pin
WillemM3-Sep-04 8:41
WillemM3-Sep-04 8:41 

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.