Jump to content

Wondering if autoit can SubClass or Subtype


 Share

Recommended Posts

hi again i was wondering if subclassing a hWnd or control on a hWnd is possible from autoit?

or maybe even SuperClassing? anyone has any advice or help or examples it would be a greate help.. :o

ive been doing some reading and have a nice list of API's that have been semi tested and i would like to start putting them to use with a game ive been playing B) this game has some of the craziest protectection ive ever seen...(some of which i describe in nufflienes thread andsome one elses DDMA... Bah... but ive already managed to getHandles and Bot to a certain extent but if i could SubClass or better yet superclass the windows and find the swing msg and hit msg i plan to Spam them to each coord on the screen and pwn the game that way :D

made a mad attempt at it but i still cant get the basics to work properly :)

any help would be uterrly appreciated :graduated:

Func GetClassInfo( $hInstance, $lpClassName, $lpWndClass)
    $ret = DllCall("User32.dll", "int", "GetClassInfo", "int",$hInstance, "str",$lpClassName, "ptr",$lpWndClass)
If @error Then
        SetError(1)
        Return 0
    EndIf
Return $ret
EndFunc
;typedef struct {
;   UINT style;
 ;  WNDPROC lpfnWndProc;
  ; int cbClsExtra;
  ; int cbWndExtra;
  ; HINSTANCE hInstance;
  ; HICON hIcon;
  ; HCURSOR hCursor;
  ; HBRUSH hbrBackground;
  ; LPCTSTR lpszMenuName;
  ; LPCTSTR lpszClassName;
;} WNDCLASS, *PWNDCLASS;
 $WNDCLASS = "uint;int;int;int;ptr;ptr;ptr;char[128];char[128];"
$sWNDCLASS = DllStructCreate($WNDCLASS)
$pWNDCLASS = DllStructGetPtr( $sWNDCLASS )
$Handle = WinGetHandle("Google")
GetClassInfo($Handle, "IEFrame", $pWNDCLASS)
sleep(5000)
MsgBox(0, "", $sWNDCLASS)
Edited by WSCPorts
http://www.myclanhosting.com/defiasVisit Join and contribute to a soon to be leader in Custumized tools development in [C# .Net 1.1 ~ 2.0/C/C++/MFC/AutoIt3/Masm32]
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...