sending key using user32.dll

02/13/2012 18:49 fear-x#1
can anyone tell me how to do this with user32.dll ?
never used dll in autoit before lol but now i rly need it :D
wana send keys to cabal game ...
02/13/2012 19:18 jacky919#2
Use [Only registered and activated users can see links. Click Here To Register...] and [Only registered and activated users can see links. Click Here To Register...] to call [Only registered and activated users can see links. Click Here To Register...] or [Only registered and activated users can see links. Click Here To Register...]

If you don't want to write your own functions: Here's a udf for PostMessage by KillerDeluxe: [Only registered and activated users can see links. Click Here To Register...]
02/13/2012 19:30 fear-x#3
thnx works but how come it doesnt work like umm .. how toexplain here

when ingame i open chatbox to enter text ...i run the script it inputs the value there
but if i want the script to click a quick slot 1 for example it wont do it... ;/

how to do that? any idea?
02/13/2012 19:41 jacky919#4
What function did you use for simulating mouseclicks?
02/13/2012 19:42 fear-x#5
_PostMessage_Send($HWnD, "{0}", 10)

and

_PostMessage_Send($HWnD, "0", 10)
02/13/2012 19:51 jacky919#6
Quote:
...script to click a quick slot 1 for...
Oh, I thought you meant mouseclicks with click. :)

It's possible that you are to fast in clicking the button. You could try to incease the delay a bit (third parameter)

something like this:
PHP Code:
_PostMessage_Send($HWnD"0"100
02/13/2012 19:59 fear-x#7
just tryed it and it still doesnt send it(tryed up to 1000ms)
its cabal btw but p.server...xtrap not gg..

any idea what could be wrong? simple Send() works fine but i dont want the window to eb active lol

just tested other buttons.,.. and every other button like ENTER/SPACE/SHIT/CTRL work
but the numbers dont ;//
but this worked with controlsend not the udf
02/13/2012 20:13 jacky919#8
Otherwise you could use the build in [Only registered and activated users can see links. Click Here To Register...]-function of AutoIt.
02/13/2012 20:19 fear-x#9
it wont send the "0 => 9" values either :///
maybe there is something else to put instead of PostMessage SendMessage in the dll call phrase

umm maybe you know how i could do pixel search in a minimized window?

or if you know cabal.. then how could i find a monster to target..when window is minimized :D ive used pixel search before but its stupid to do that lol
02/13/2012 20:37 jacky919#10
Reading some values out of the process ;)
But I don't know Cabal...

Or use [Only registered and activated users can see links. Click Here To Register...] instead of PixelSearch. The third parameter can specify a window.
02/13/2012 20:39 fear-x#11
mind giving an example? im not good with process reading stuff either (memory stuff) :D
02/13/2012 20:43 jacky919#12
Quote:
Originally Posted by jacky919
Reading some values out of the process
But I don't know Cabal...

Or use PixelGetColor instead of PixelSearch. The third parameter can specify a window.
Read my appendix :p
02/13/2012 20:51 fear-x#13
i will try pixelget color
but umm do you know how to read monsters around you (from PID )
and maybe find their position around you and then show its position in msgbox :)
maybe you have a clue ... ur smarter than me anyway on this stuff :D
02/13/2012 21:10 jacky919#14
You could use CheatEngine to find pointers, but what you have to search for is to game specific, so I can't tell you...
Also the PID is only the identifier of the process, the value you will read off the memory.
02/13/2012 21:15 fear-x#15
eh any posible hints on how to search for monsters with CE? :D never ssearched for monsters with ce lolonly hp and such similar stuff