Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:53

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

Advertisement



sending key using user32.dll

Discussion on sending key using user32.dll within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,093
sending key using user32.dll

can anyone tell me how to do this with user32.dll ?
never used dll in autoit before lol but now i rly need it
wana send keys to cabal game ...
fear-x is offline  
Old 02/13/2012, 19:18   #2
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
Use and to call or

If you don't want to write your own functions: Here's a udf for PostMessage by KillerDeluxe:
jacky919 is offline  
Old 02/13/2012, 19:30   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,093
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?
fear-x is offline  
Old 02/13/2012, 19:41   #4
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
What function did you use for simulating mouseclicks?
jacky919 is offline  
Old 02/13/2012, 19:42   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,093
_PostMessage_Send($HWnD, "{0}", 10)

and

_PostMessage_Send($HWnD, "0", 10)
fear-x is offline  
Old 02/13/2012, 19:51   #6
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
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
jacky919 is offline  
Old 02/13/2012, 19:59   #7
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,093
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/****/CTRL work
but the numbers dont ;//
but this worked with controlsend not the udf
fear-x is offline  
Old 02/13/2012, 20:13   #8
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
Otherwise you could use the build in -function of AutoIt.
jacky919 is offline  
Old 02/13/2012, 20:19   #9
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,093
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 ive used pixel search before but its stupid to do that lol
fear-x is offline  
Old 02/13/2012, 20:37   #10
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
Reading some values out of the process
But I don't know Cabal...

Or use instead of PixelSearch. The third parameter can specify a window.
jacky919 is offline  
Old 02/13/2012, 20:39   #11
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,093
mind giving an example? im not good with process reading stuff either (memory stuff)
fear-x is offline  
Old 02/13/2012, 20:43   #12
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
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
jacky919 is offline  
Old 02/13/2012, 20:51   #13
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,093
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
fear-x is offline  
Old 02/13/2012, 21:10   #14
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
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.
jacky919 is offline  
Old 02/13/2012, 21:15   #15
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,093
eh any posible hints on how to search for monsters with CE? never ssearched for monsters with ce lolonly hp and such similar stuff
fear-x is offline  
Reply


Similar Threads Similar Threads
Not Sending
11/27/2010 - AutoIt - 10 Replies
Hi there, I am trying to Send or ControlSend to a program but it appears to be 'blocked'. Is there a way round this in Autoit? The logic and syntax are fine as it works OK sending to Notepad. Tearing my hair out :(
Frage zu User32
02/01/2009 - Guild Wars - 7 Replies
hi zusammen ich habe einen bot geschrieben, de rim Hintergrund läuft, alles geht bis auf das Idenden der Dinge. Das idend kit anklicken kann er, aber die Fähigkeit zu Idenden bleibt dann am richtigen Mauszeiger haften, und der bewegt sich ja nicht. Jetzt habe ich gehört, dies müsse man mit user32.dll machen. Könnte mir jemand erkären wie das geht?(bitte in kleinen Schritten) Oder falls es eine Alternative gibt diese zu erklären Danke im vorraus :handsdown::handsdown:
packet sending
03/31/2008 - RF Online - 4 Replies
now i know how to bypass rf online and now i can run WPE PRO w/o getting detected by fireguard.any1 can help me w/ this packet sniffing?coz i get confused on what packet to capture and send to the server.thanks
sending
02/17/2008 - Say Hello - 1 Replies
Hello!
user32
10/08/2007 - Kal Online - 2 Replies
hey , ich bin nog noob am c++ etc , ich war ein tutorial von microsoft volgen und dan wan ich mach build ich bekom diese error: http://aycu36.webshots.com/image/30315/2000187167 438133152_rs.jpg ich bin sjohn suchen am internet aber ich kan gahn nichts vinden :s kan jiemand mich helpfen bitte freundliche grussen



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


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.