Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Macro/keystroke sender to (background process)

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Wed Nov 07, 2007 12:06 pm    Post subject: Macro/keystroke sender to (background process) Reply with quote

I'm sure this has been taken up before, but how much i search i just get results of shitstory, yeah, maplestory.

So could anyone just hit me up with a macro/keystroke sender which runs in the background (ex. i can do other stuff while using the macro)?

It does NOT have to be bypassed, that's something i can do myself if i have to.

Thank you very much.

_________________

CLICK TO HAX MAPLESTORAY ^ !!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Wed Nov 07, 2007 12:17 pm    Post subject: Re: Macro/keystroke sender to (background process) Reply with quote

Spawnfestis wrote:
I'm sure this has been taken up before, but how much i search i just get results of shitstory, yeah, maplestory.

So could anyone just hit me up with a macro/keystroke sender which runs in the background (ex. i can do other stuff while using the macro)?

It does NOT have to be bypassed, that's something i can do myself if i have to.

Thank you very much.



You can use autoit to do that, But if you are doing other things it will effect it as well.
You may have to program one on your own to do what your wanting.
Back to top
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Wed Nov 07, 2007 12:43 pm    Post subject: Re: Macro/keystroke sender to (background process) Reply with quote

Labyrnth wrote:

You can use autoit to do that, But if you are doing other things it will effect it as well.
You may have to program one on your own to do what your wanting.


Really? Magic!

I would just need a program that does not have to be forced "on view" to be functional, no other requirements, oh yeah, it can't be tied to maplestory.

Otherwise, no requirements, and oh, i forgot to tell you that i do not need any color recognizer.

Thanks for the reply anyways.

_________________

CLICK TO HAX MAPLESTORAY ^ !!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Wed Nov 07, 2007 1:00 pm    Post subject: Reply with quote

force the macro to send message events to a handle, not a window and it can be minimized or whatever, you can do other stuff at the same time.
_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Wed Nov 07, 2007 1:15 pm    Post subject: Reply with quote

SXGuy wrote:
force the macro to send message events to a handle, not a window and it can be minimized or whatever, you can do other stuff at the same time.


Mind telling me the program you are thinking of?..

_________________

CLICK TO HAX MAPLESTORAY ^ !!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Wed Nov 07, 2007 1:33 pm    Post subject: Reply with quote

anything you like, whatever you decide to write your macro in.
i dont mean any specific macro program.

If you want to write it in autoit, then you focus it to the windows handle id and use somthing like post message to send keys.

Heres an example of sending MouseClicks to a minimized game window.

Code:
Func _MouseClickPlus($Window, $Button = "left", $X = "", $Y = "", $Clicks = 1)
  Local $MK_LBUTTON       =  0x0001
  Local $WM_LBUTTONDOWN   =  0x0201
  Local $WM_LBUTTONUP     =  0x0202
 
  Local $MK_RBUTTON       =  0x0002   
  Local $WM_RBUTTONDOWN   =  0x0204
  Local $WM_RBUTTONUP     =  0x0205

  Local $WM_MOUSEMOVE     =  0x0200
 
  Local $i                = 0
 
  Select
  Case $Button = "left"
     $Button     =  $MK_LBUTTON
     $ButtonDown =  $WM_LBUTTONDOWN
     $ButtonUp   =  $WM_LBUTTONUP
  Case $Button = "right"
     $Button     =  $MK_RBUTTON
     $ButtonDown =  $WM_RBUTTONDOWN
     $ButtonUp   =  $WM_RBUTTONUP
  EndSelect
 
  If $X = "" OR $Y = "" Then
     $MouseCoord = MouseGetPos()
     $X = $MouseCoord[0]
     $Y = $MouseCoord[1]
  EndIf
 
  For $i = 1 to $Clicks
     DllCall("user32.dll", "int", "SendMessage", _
        "hwnd",  WinGetHandle( $Window ), _
        "int",   $WM_MOUSEMOVE, _
        "int",   0, _
        "long",  _MakeLong($X, $Y))
       
     DllCall("user32.dll", "int", "SendMessage", _
        "hwnd",  WinGetHandle( $Window ), _
        "int",   $ButtonDown, _
        "int",   $Button, _
        "long",  _MakeLong($X, $Y))
       
     DllCall("user32.dll", "int", "SendMessage", _
        "hwnd",  WinGetHandle( $Window ), _
        "int",   $ButtonUp, _
        "int",   $Button, _
        "long",  _MakeLong($X, $Y))
  Next
EndFunc




Func _MakeLong($LoWord,$HiWord)
  Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF))
EndFunc


Save that as an au3 script, call it Mouseclickplus.au3

Then write your autoit script as normal but use

Code:
#include <Mouseclickplus.au3>


As one of the libaries to import.

To call the function you would use

Code:
_MouseClickPlus( "Diablo II", "left", 525 - $borderwidth, 585 - $TitleHeight )


Things you will need to edit, are Window names., i,e this example says Diablo II.

As you can see, it calls user32.dll and the functions it wishes, i.e mouse buttons.

You would need to edit those to use the Send Command, which is SendInput.

Once thats done, you would call the function by saying

Code:
Send (_MouseClickPlus)

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Wed Nov 07, 2007 2:06 pm    Post subject: Reply with quote

Hmm, I'm not very familiar with AutoIT...

I know what you are saying, thanks for all the tips, if i can't find any faster way around it i will look into it in the weekend. Thanks.

If someone already have something like SXGuy posted but for keypresses you could post it, and i will rewrite it.

Thanks and, hopefully it'll work.

Now I'm off to do my homework, bye.

_________________

CLICK TO HAX MAPLESTORAY ^ !!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
thecoolguy
Cheater
Reputation: 0

Joined: 06 Nov 2007
Posts: 41

PostPosted: Wed Nov 07, 2007 4:52 pm    Post subject: Reply with quote

This helps me thanks
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Wed Nov 07, 2007 5:39 pm    Post subject: Reply with quote

Links to the site you can learn allot from reading. Just like myself and SxGuy.

http://www.autoitscript.com/forum/index.php?showtopic=7112&hl=mouseclickplus
http://www.autoitscript.com/forum/index.php?showtopic=51628&hl=mouseclickplus
http://www.autoitscript.com/forum/index.php?showtopic=43190&hl=mouseclickplus
Back to top
View user's profile Send private message
FerrisBuellerYourMyHero
Master Cheater
Reputation: 0

Joined: 14 Feb 2007
Posts: 401
Location: Inside your <kernel>

PostPosted: Wed Nov 07, 2007 5:48 pm    Post subject: Reply with quote

Spawnfestis wrote:
Hmm, I'm not very familiar with AutoIT...

I know what you are saying, thanks for all the tips, if i can't find any faster way around it i will look into it in the weekend. Thanks.

If someone already have something like SXGuy posted but for keypresses you could post it, and i will rewrite it.

Thanks and, hopefully it'll work.

Now I'm off to do my homework, bye.


Id recommend not doing anything in Autoit! as its not a real programming language...

figure out how to bypass PostMessageA's 5 byte hook, and you can use any programming language you want to send messages to any window!

but I don't know why your trying to make something like this? give some details and I can help you more, what are you trying to make a bot or what?

_________________
You know, life moves pretty fast. If you don't stop and look around once in a while, You could miss it!

Back to top
View user's profile Send private message MSN Messenger
AdamWest
Master Cheater
Reputation: 0

Joined: 05 Jul 2007
Posts: 354
Location: Quahog, Rhode Island

PostPosted: Wed Nov 07, 2007 6:11 pm    Post subject: Re: Macro/keystroke sender to (background process) Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=150485


nubz

_________________

"I myself am made entirely of flaws, stitched together with good intentions." - Augusten Burroughs
Back to top
View user's profile Send private message AIM Address
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Wed Nov 07, 2007 6:15 pm    Post subject: Reply with quote

Quote:
FerrisBuellerYourMyHero


What in your mind defines a "real" programming language?
Just because it doesnt have the bells and whistles of c++?

If it can be interpreted by a computer it is a language.
What i think you meant to say is use a preferred standard language, since that would make more sense.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Wed Nov 07, 2007 6:25 pm    Post subject: Re: Macro/keystroke sender to (background process) Reply with quote

AdamWest wrote:
http://forum.cheatengine.org/viewtopic.php?t=150485


nubz


The funny thing is, is that I doubt you know how it works. Rolling Eyes

Anyways, if it is for anything DirectX, you could also hook direct input and mess with the keyboard.
Back to top
View user's profile Send private message
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Thu Nov 08, 2007 3:27 am    Post subject: Reply with quote

FerrisBuellerYourMyHero wrote:
Spawnfestis wrote:
Hmm, I'm not very familiar with AutoIT...

I know what you are saying, thanks for all the tips, if i can't find any faster way around it i will look into it in the weekend. Thanks.

If someone already have something like SXGuy posted but for keypresses you could post it, and i will rewrite it.

Thanks and, hopefully it'll work.

Now I'm off to do my homework, bye.


Id recommend not doing anything in Autoit! as its not a real programming language...

figure out how to bypass PostMessageA's 5 byte hook, and you can use any programming language you want to send messages to any window!

but I don't know why your trying to make something like this? give some details and I can help you more, what are you trying to make a bot or what?



Autoit not being a real language is debatable, for a start, the source is written in C, which is clearly availible for anyone who wants it.

So all autoit is, is a list of command variables made from functions written in C, so is it a real language? Yes its C#/C++ Smile

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites