Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 12:34

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

Advertisement



sendmessage to kalonline window

Discussion on sendmessage to kalonline window within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
sendmessage to kalonline window

hi...
i try to send a message to the kalonline window: (p is the window handle)
PHP Code:
SendMessage(p,(int) Messages.WM_LBUTTONDOWN, (IntPtr)300, (IntPtr)300);
SendMessage(p,(int) Messages.WM_LBUTTONUP, (IntPtr)300, (IntPtr)300); 
and when i try it- it works fine (it clicks on a point that doesnt seem to be 300/300...)
now i try to change the coordinates of the message...and it doesnt work
any one got an idea? and why isnt it clicking on the right point?
(its not in full screen mode!)
thanks
natinet is offline  
Old 08/10/2009, 14:04   #2
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
ok after some research....
here is my currect code:
PHP Code:
         IntPtr lParam = (IntPtr)((pp.Y<<32) | (pp.X<<32)); // The coordinates
            
IntPtr wParam IntPtr.Zero;
            const 
uint downCode 0x201// Left click down code
            
const uint upCode 0x202;
            
SendMessage(p, (int)downCodewParamlParam);
            
SendMessage(p, (int)upCodewParamlParam); 
but yet--its walking to different places that i dont it wll go
but:interesting thing is that sometimes its walking to places outside range ^^

so...got any idea? maybe i need to concider the resolution? how?
thanks
natinet is offline  
Old 08/10/2009, 14:16   #3
 
elite*gold: 0
Join Date: Apr 2008
Posts: 142
Received Thanks: 6
MasterOfHunT is offline  
Old 08/10/2009, 14:42   #4
 
elite*gold: 0
Join Date: Apr 2009
Posts: 182
Received Thanks: 8
Quote:
Originally Posted by MasterOfHunT View Post
dont ******* spam ******...if he ask for advices try to help him or if you dont know (what i guess you dont have idea bout c++) shout your ******* mounth
slayerdeath555 is offline  
Old 08/10/2009, 14:48   #5
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
ok...thanks for the derense slayerdeath
anyway it was resolved!
here is the solution if you are interested ^^:
the convertion of screen coordinates to lparam is done like that:
lparam=IntPtr(pp.Y * 0x10000 + pp.X);
thanks ^^
Mahatma or any1- #close
natinet is offline  
Thanks
1 User
Old 08/10/2009, 16:15   #6
 
Xorg's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 87
Received Thanks: 3
@nati Making automatic mob killer/picker aka bot?
Xorg is offline  
Old 08/10/2009, 16:37   #7
 
natinet's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 175
Received Thanks: 8
yeah i know its detected ^^ i do get expelled
but the challenge is that i made it minimizeable ^^
and it works
natinet is offline  
Reply


Similar Threads Similar Threads
C++ SendMessage Problem
08/02/2010 - C/C++ - 1 Replies
Also ich versuche gerade in C++ einen kleinen Spammer zu programmieren habe aber leider ein Problem. Mein Code: #include <iostream> #include <windows.h> #include <string> using namespace std;
delphi sendmessage
07/27/2010 - General Coding - 3 Replies
hallo leute ich hab mal eine frage ob mir jemand kurz erläutern könnte wie ich mit sendmessage eine mausbewegung in einem minimierten fenster ausgebe ich habe embarcadero rad studio 2010 hier ist der bisherige "source": uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm)
[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,...
how do i sendmessage a password box
05/11/2007 - Conquer Online 2 - 11 Replies
HI, I'm trying to sendmessage the password to the password box. It gives me the *** in the box but when i click the enter button it gives me the wrong password error. any help would be appreciated



All times are GMT +2. The time now is 12:34.


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