Register for your free account! | Forgot your password?

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

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

Advertisement



C# Programming Help

Discussion on C# Programming Help within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2006
Posts: 13
Received Thanks: 0
I hope someone out there can answer my question

I am trying to send the F10 key to the conquer window from my application. Using Spy++ it is coming through exactly as when i actually press the F10 key on the conquer window. The only issue is that the message being sent from my application does not produce any response.

Code:
PostMessage(
 * * myProcesses[currentCO].MainWindowHandle, * * * //window handle
 * * 0x105, * * * //the WM_SYSKEYUP message
 * * System.Convert.ToInt32(Keys.F10), * * * //the F10 key
 * * 3225681921 * * *//the additional infromation ScanCode ect...
);
That line produces the same message in Spy++ but i get nothing -.-

Also, while pressing the key on the CO window, Spy++ only detects a WM_SYSKEYUP message. Is this correct? I have tried it both ways. Different additional info for the down key.

Am i sending the message to the wrong handle?

Can anyone give me any clues. pls

Thanks.
beta.services is offline  
Old 07/09/2007, 19:26   #2
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,580
what i did was find the window handle of the F(x)-buttons and then do a SendMessage to that handle with WM_LMOUSEDOWN and WM_LMOUSEUP as parametre
phize is offline  
Old 07/14/2007, 15:19   #3
 
elite*gold: 0
Join Date: Jul 2006
Posts: 13
Received Thanks: 0
thanks, i'll try that now and let you know how it worked out.
beta.services is offline  
Old 07/15/2007, 04:12   #4
 
evanxxxm's Avatar
 
elite*gold: 20
Join Date: Oct 2006
Posts: 2,707
Received Thanks: 2,525
from what i learn about CO earlier
i believe u cant use a program to send F# series
personally, i tried it with AutoHotKey and AutoIt before
both of them doesnt work, but another way of go around this is:
according to AutoHotKey code, there is a command called "controlclick". it wont move ur mouse at all, but still right/left click where ever u set ur X,Y is.
example:
ControlClick, x110 y750,ahk_id %id%,,RIGHT
this will right click 110,750 (F1) in CO, it works even with minimize or background mode.
evanxxxm is offline  
Reply


Similar Threads Similar Threads
CO Programming
06/14/2009 - Conquer Online 2 - 7 Replies
How do yall make all of these modifications and edits to the game i wana learn and try to make a few myself
[How to programming] C++
05/16/2009 - C/C++ - 16 Replies
How to Programming Einleitung/ Vorwort ~~~~~~~~~~~~~~~~~~~ Mir ist es ganz egal, wem ihr die Schuld gebt, wenn ihr irgendwas anstellt. Ich hab diesen Text geschrieben, damit "Unwissende" selbst ihre Tools schreiben und verstehen, wie diese aufgebaut sind. Ich stelle keine Quelltexte!
Programming help
04/16/2009 - CO2 Programming - 8 Replies
I have no prior experience in the C# coding language or any other coding language for that matter. So I am asking for your help e*PvP I would like to learn the basic's of C# coding, nothing advanced just so I can start off a server and experiment(it wont be public it will just be for testing purposes). Right now I have Hybrids basic server source. Specifically it would be great if someone with experience with that source would help me. Thanks.



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


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.