sendmessage to kalonline window

08/10/2009 10:13 natinet#1
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
08/10/2009 14:04 natinet#2
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
08/10/2009 14:16 MasterOfHunT#3
[Only registered and activated users can see links. Click Here To Register...]
08/10/2009 14:42 slayerdeath555#4
Quote:
Originally Posted by MasterOfHunT View Post
[Only registered and activated users can see links. Click Here To Register...]
dont fucking spam retard...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 fucking mounth
08/10/2009 14:48 natinet#5
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
08/10/2009 16:15 Xorg#6
@nati Making automatic mob killer/picker aka bot? :D
08/10/2009 16:37 natinet#7
yeah i know its detected ^^ i do get expelled
but the challenge is that i made it minimizeable ^^
and it works