Jump to content

Using ControlSend for Minimized Window (Games) without ControlID


 Share

Recommended Posts

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
Link to comment
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.
Link to comment
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.

Link to comment
Share on other sites

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
Link to comment
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.. !

Link to comment
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.

Link to comment
Share on other sites

  • 2 weeks later...

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??

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...