Register for your free account! | Forgot your password?

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

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

Advertisement



PostMessage / SendMessage (C#)

Discussion on PostMessage / SendMessage (C#) within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2006
Posts: 21
Received Thanks: 0
Thumbs up PostMessage / SendMessage (C#)

I am trying to send key presses & mouse presses to the conquer window using PostMessage in C# but Conquer doesn't seem to respond to anything I send it. I am able to send key presses correctly to windows calculator though.

Just wondering if anyone has had success using PostMessage / SendMessage and would be kind enough to share.

Is there any other way to send key presses / mouse clicks while the conquer window is minimized?

Thanks for any help
matt69 is offline  
Old 06/23/2013, 02:32   #2
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
You don't have to use Post/Send Message.




{ Angelius } is offline  
Old 06/23/2013, 12:47   #3
 
elite*gold: 0
Join Date: Aug 2006
Posts: 21
Received Thanks: 0
Quote:
Originally Posted by { Angelius } View Post
You don't have to use Post/Send Message.




Thanks for the reply

This isn't quite what I wanted because it takes the focus away from what is currently happening on the computer, for example, the box I am typing this comment in.

If my bot were to run at the same time constantly stealing focus then I wouldn't be able to use my computer at the same time.

I've heard about function hooking, would this allow me to perform some of the functions inside the conquer window without taking focus of the window e.g. sit/meditate/talk to npc etc

edit: just found a tutorial on it here! will be using that for now thanks for your help though
matt69 is offline  
Reply


Similar Threads Similar Threads
SendMessage or PostMessage ?
01/26/2013 - Perfect World - 4 Replies
How do i simulate keypress in C++ Builder ? SendMessage or PostMessage ? A Example would be really nice, im new to this all :o
[C#]Skype4COM SendMessage Bug
07/24/2012 - .NET Languages - 2 Replies
I'm using this code: skype.Attach(5, true); skype.SendMessage("CrazyGirl56", "hey"); It normally must send to "CrazyGirl56" but it sends to "crazygirl56". There is case problem. Who can help me?
SRO SendMessage API
02/26/2012 - SRO Coding Corner - 5 Replies
Hello. I want make simple clicker on vSRO. but I can't do so would only click on SRO I know I need to use SendMessage API but I do not know how to do it Can someone show me it on this code: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Start()
[Help] C# SendMessage()
05/11/2010 - CO2 Programming - 19 Replies
I'm currenty trying to use the SendMessage Function with CO. According to msdn I need to use this: static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam); My question is: How do I find the hWnd? What are the wParam and lParam? And what can I use as wParam and lParam? Any help will be greatly appreciated.
sendmessage?
12/26/2008 - CO2 Programming - 0 Replies
just wondering how it works in C# tried few tutorials with notepad in it and it doesnt send the letters/close it even it finds the window this is how i got it so far (pretty much copypasted, just to see how it works...) private static extern IntPtr FindWindow(string winClass, string WinName); private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); private static extern IntPtr PostMessage(IntPtr hWnd,...



All times are GMT +1. The time now is 11:15.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.