Jump to content

Recommended Posts

Posted

Is there a way that i can get the classname of a window jut like it does a Au3Info tool...

I know that there is a function WinGetClassList(), but it return all classnames of IDs from current window, and i need the classname of a window itself. Sometimes this list not include the classname of a window at all, and on the same window Au3Info tool show the classname :whistle: .

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted (edited)

go to help menu (autoit) search "AutoIt Window Information Tool" from there go to :

Window Titles and T... or

AutoIt Window Info... or

Controls

and searching mouse came up with a list of some stuff that could help too

and from those there are ALOT of links and stuff that you can learn from

Edited by toothyXdip
---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝''''''╝╝║'''......''''''''''''''''''''''''''''''---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝
Posted

  Quote

go to help menu (autoit)

Where can i find this help menu? its a joke? well, i don't get it!

Please, if you can help me, please do so, if not, why to post somthing that can not help :whistle:

P.S

I meant that i need this info not using some tools, i want to do this using my script.

Thanx anyway for trying to help :)

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • Moderators
Posted

MsgBox(64, 'info', _WinGetClass(WinGetTitle('')))

Func _WinGetClass($hWnd)
    If IsHWnd($hWnd) = 0 And WinExists($hWnd) Then $hWnd = WinGetHandle($hWnd)
    Local $aGCNDLL = DllCall('User32.dll', 'int', 'GetClassName', 'hwnd', $hWnd, 'str', '', 'int', 4095)
    If @error = 0 Then Return $aGCNDLL[2]
    Return SetError(1, 0, '')
EndFunc

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

SmOke_N

Wow! Thanks man, you the best!

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

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
  • Recently Browsing   0 members

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