Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 23:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Request] How send clicks on minimized

Discussion on [Request] How send clicks on minimized within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 35
Received Thanks: 9
[Request] How send clicks on minimized

How send clicks on minimized in Visual C# ?
operaopera is offline  
Old 10/11/2008, 14:26   #2
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 82
As far as i know, the handle has to be in focus.
ChingChong23 is offline  
Old 10/11/2008, 14:50   #3
 
elite*gold: 0
Join Date: Apr 2006
Posts: 23
Received Thanks: 4
Quote:
[DllImport("user32.dll")]
public static extern int FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
//FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Notepad", "Untitled - Notepad")) - Provides "window handle"?

private static IntPtr MakeLParam(int LoWord, int HiWord)
{
return (IntPtr)((HiWord << 16) | (LoWord & 0xffff));
}

[DllImport("user32.dll")]
public static extern bool PostMessage(int hWnd, uint Msg, int wParam, IntPtr lparam);
//Example Pending

FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Afx:400000:0:10011:0:0", "[Conquer2.0]"); // Get Conquer's Handle
PostMessage(wind, 0x201, 0, MakeLParam(int.Parse(txtX.Text), int.Parse(txtY.Text))); // LButton Down.
System.Threading.Thread.Sleep(500); // Prevent lag getting the clicks in the wrong order.
PostMessage(wind, 0x202, 0, MakeLParam(int.Parse(txtX.Text), int.Parse(txtY.Text))); // LButton Up.
Try messing with that code, should produce a mouse click at txtX / txtY's text box value.
Leo_2 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Send Keys to minimized PW-Window
07/21/2010 - Perfect World - 3 Replies
I want to learn how to send keys to a PW-Window, but it is minimized (because of the other functions my prog has).. i am programming in vb.net (i know.. not the best language but i am getting along with it quite good) so if anyone knows a simple function or can help me with this.. pls tell me :) greetz
Send key to minimized is there alternate to controlsend.
07/08/2010 - AutoIt - 6 Replies
Well I'm trying to convert alot of my programs so you can use when the programs minimized found mouseclickplus works well with things you can click on but I'm still lookin for an alternate way for controlsend.
[Request]SJSRO Autologin(Support minimized)
08/29/2009 - SRO Private Server - 2 Replies
Hello , anyone have an SJSRO Auto-loggin which support minimized client? i've tried two but they doesn't works.. thanks!
Source code to send clicks (Minimized)
09/09/2008 - CO2 Programming - 0 Replies
Well let an example of some functions in VB6 to send clicks and pfs to the screen. They work with the client miniminized or in background. It is a way that I have not seen used in the examples in the forum but I think it is the most effective. Unfortunately not comment on the code but the idea is this: Send messages BUTTONDOWN / BUTTONUP directly to the window handle control that contains the display or which contains buttons pf. not to the window pricipal Co ...
How do I: Click or Send Keys to a minimized window
04/08/2006 - General Coding - 6 Replies
I am making a bot for ConquerOnline, and I need to know how to send clicks or keys to a minimized window, like COPartner does. Thanks for any help.



All times are GMT +1. The time now is 23:14.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.