Sign in to follow this  
Followers 0
Valuater

Getting the Control ID

3 posts in this topic

#1 ·  Posted (edited)

I am trying... believe me i have tried, i dont ask to often because i can usually find most answers myself

( and the last time i asked a dumb question ..... well, ouch )

anyways

I have found class name with Lxp, Smoke_N, Cyberslugs and others, posts

WinControlListGUI()

Func _getClasses($title)

Func _CtrlGetByPos($hWin, $sText = '', $iXPos = 0, $iYPos = 0, $iReturnType = 0)

ect... ect

and i am speaking in terms of Autoits GUI controls

i found i can get the handle with controlgetHandle ( ControlID )

any way... help is appreciated, i may have just overlooked something

an array return woud be the best

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites



http://www.autoitscript.com/forum/index.ph...st&p=219847

Notice the DLL call for GetDlgCtrlID.


[center]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.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Well, if you need the Control ID of a GUI why not just use AutoIt Window Info? I'm not quite sure how to do it without that except by loking at the GUI's script and getting it that way (the first control you create after GUICreate, is always 3, and then the following controls go 4, 5, 6 etc. in the order they are created by the script). Hope this helps?

EDIT: Smoke beat me :), listen to him he's smarter :P.

Edited by dandymcgee

- Dan [Website]

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