Sign in to follow this  
Followers 0
zzxxzzxx

Using ControlSend for Minimized Window (Games) without ControlID

17 posts in this topic

#1 ·  Posted (edited)

My script dun seem to work.

TrayTip("[ Defense ]", "F4 = Running" & @CRLF & "F10 = Start/Stop Macro" & @CRLF & "F11 = Exit Script", 3 , 16)

Global $Toggle

$s = 2 ; Skill Number On Keyboard
$skill = 4000 ; Skill Casting Interval (Milliseconds, Eg. 2000 = 2 seconds)
$wait = 12500 ; Meditation Casting Delay

HotKeySet ("{F4}",  "Dash"  )
HotKeySet ("{F10}", "Skill" )
HotKeySet ("{F11}", "Close" )

Opt ("MouseClickDownDelay", 1)
Opt ("MouseClickDelay", 1    )
Opt ("SendKeyDownDelay", 1   )
Opt ("SendKeyDelay", 1       )

Func Skill () ; Press Number, Then P
    $Toggle = Not $Toggle
    While ($Toggle)
        ControlSend ("9Dragons", "", "", "u" )
        Sleep (200)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep ($skill)
        ControlSend ("9Dragons", "", "", "{" & $s & "}")
        Sleep (3000)
        Send ("P", 1)
        Sleep (300)
        Send ("P", 1)
        Sleep (300)
        Send ("P", 1)
        Sleep ($wait)
    WEnd
EndFunc

Func Dash () ; Press Number, Then Hold Left ALT + LEFT Arrow, Then P
    Send ("{LEFT UP}")
    Send ("{LALT UP}")
    $Toggle = Not $Toggle
    While ($Toggle)
        Send ("6", 1)
        Sleep (200)
        Send ("6", 1)
        Sleep (200)
        Send ("{LEFT DOWN}")
        Send ("{LALT DOWN}")
        Sleep (60000)
        Send ("{LEFT UP}")
        Send ("{LALT UP}")
        Send ("P", 1)
        Sleep (500)
        Send ("P", 1)
        Sleep (500)
        Send ("P", 1)
        Sleep (15000)
    WEnd
EndFunc

Func Close ()
    Send ("{" & $s & " UP}")
    Send ("{LEFT UP}")
    Send ("{LALT UP}")
    Exit
EndFunc

While (1) ; Continuous Loop Of Program.
    Sleep (1)
WEnd
Edited by zzxxzzxx

Share this post


Link to post
Share on other sites



Does this game have gameguard or any other hack protector?

Share this post


Link to post
Share on other sites

yes, it does have gameguard, but there's a workaround for it.

i'm able to use Send() in focused window.

but what i need is to use ControlSend() in minimized mode.

Share this post


Link to post
Share on other sites

i've read thru quite afew threads on the same topic, but did not find much answers.

but when i used ControlSetText ("9Dragons", "", "", "u")

it changes the title from 9Dragons to u

Share this post


Link to post
Share on other sites

With gameguard it usually should not allow you to use automated key presses. It has direct access to hardware so it can detect if your pressing a key on the key board or just a DLL call.

Share this post


Link to post
Share on other sites

With gameguard it usually should not allow you to use automated key presses. It has direct access to hardware so it can detect if your pressing a key on the key board or just a DLL call.

Actually _PostMessage seems to work when it comes to gameguard.

Share this post


Link to post
Share on other sites

With gameguard it usually should not allow you to use automated key presses. It has direct access to hardware so it can detect if your pressing a key on the key board or just a DLL call.

ok, since i have to repeat myself.....

i HAVE and is still ABLE TO use Send() commands. there's a workaround for gameguard, be changing the file name.

will look into _Post Message, just hope it allows sending keystrokes to minimized program without ControlID.

Thks for the replies.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

O someone bypassed gameguard (not that hard). My bad thought you meant Send was a workaround for gameguard and I was like wtf I don't think so. But look into _PostMessage and if that doesn't work you may need to get the control ID of the OpenGL control if it has one.

Edited by Thatsgreat2345

Share this post


Link to post
Share on other sites

Ok I'm gonna be a goober here and ask....

How can I bypass gameguard?? I've tried the scripts here and none seem to work with the Send commands no matter how I compile it. If anyone would like to PM me some suggestions .. that would be great.. Thanks in advance....not being able to send auto-buffs is killing my fingers <_<:) .. tks guys.. !

Share this post


Link to post
Share on other sites

well, havent had time to read up & try _PostMessage

but if anyone have any idea on how to get it to work, pls post too. <_<

Share this post


Link to post
Share on other sites

Ok I'm gonna be a goober here and ask....

How can I bypass gameguard?? I've tried the scripts here and none seem to work with the Send commands no matter how I compile it. If anyone would like to PM me some suggestions .. that would be great.. Thanks in advance....not being able to send auto-buffs is killing my fingers <_<:) .. tks guys.. !

learn ASM, and use OllyDBG good luck.

Share this post


Link to post
Share on other sites

...hmmm never heard of that _PostMessage, someone know where I can find it? I don't event think it exists...

Share this post


Link to post
Share on other sites

...hmmm never heard of that _PostMessage, someone know where I can find it? I don't event think it exists...

Look up MSDN

Share this post


Link to post
Share on other sites

Here, uploaded a file containing your desired functions..

Will send keys to minimized windows & perform mouseclicks to minimized windows.

Enjoy,

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

First, I don't know what msdn is...

Here, uploaded a file containing your desired functions..

Will send keys to minimized windows & perform mouseclicks to minimized windows.

Enjoy,

Kurt

Thanks, I'll be trying this.

$hWnd --> This is the window handle or the window name??

Share this post


Link to post
Share on other sites

wheres the file? I could really use those functions too..thanks

Share this post


Link to post
Share on other sites

wheres the file? I could really use those functions too..thanks

I tried _PostMessage(), does not bypass gameguard.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0