Sign in to follow this  
Followers 0
Ray

Syntax question.

6 posts in this topic

Need help using special descriptions to identify Control ID.

In the help documents, it is shown:

A special description can be used as the controlID parameter used in most of the Control...() functions . This description can be used to identify a control by the following properties:

ID - The internal control ID. The Control ID is the internal numeric identifier that windows gives to each control. It is generally the best method of identifying controls. In addition to the AutoIt Window Info Tool, other applications such as screenreaders for the blind and Microsoft tools/APIs may allow you to get this Control ID

TEXT - The text on a control, for example "&Next" on a button

CLASS - The internal control classname such as "Edit" or "Button"

CLASSNN - The ClassnameNN value as used in previous versions of AutoIt, such as "Edit1"

REGEXPCLASS - Control classname using a regular expression

X \ Y \ W \ H - The position and size of a control.

INSTANCE - The 1-based instance when all given properties match.

Could someone show me an example on how to format a ControlSend function to use the X \ Y \ W \ H parameters?

ie. ControlSend ( "title", "text", "[X:xxx; Y:yyy; W:www; H:hhh]", "String")

Any help showing how to use this feature would be greatly appreciated.

Thanks

Share this post


Link to post
Share on other sites



Need help using special descriptions to identify Control ID.

In the help documents, it is shown:

A special description can be used as the controlID parameter used in most of the Control...() functions . This description can be used to identify a control by the following properties:

ID - The internal control ID. The Control ID is the internal numeric identifier that windows gives to each control. It is generally the best method of identifying controls. In addition to the AutoIt Window Info Tool, other applications such as screenreaders for the blind and Microsoft tools/APIs may allow you to get this Control ID

TEXT - The text on a control, for example "&Next" on a button

CLASS - The internal control classname such as "Edit" or "Button"

CLASSNN - The ClassnameNN value as used in previous versions of AutoIt, such as "Edit1"

REGEXPCLASS - Control classname using a regular expression

X \ Y \ W \ H - The position and size of a control.

INSTANCE - The 1-based instance when all given properties match.

Could someone show me an example on how to format a ControlSend function to use the X \ Y \ W \ H parameters?

ie. ControlSend ( "title", "text", "[X:xxx; Y:yyy; W:www; H:hhh]", "String")

Any help showing how to use this feature would be greatly appreciated.

Thanks

Hi,

blablabla :) i see you've read sticky...and do some search in forum...

Directory Autoit3\Au3info.exe and you can get control ID of window


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi,

blablabla :) i see you've read sticky...and do some search in forum...

Directory Autoit3\Au3info.exe and you can get control ID of window

Thanks for the fast reply, FireFox.

I'm actually needing help understanding how to use the Special Descriptions feature as stated in my original post, not in finding the controlID. I've written scripts using each of the special descriptions shown in the help file and most worked for me but I'm unable to get a working script using the X \ Y \ W \ H description. That's what I need help with.

Ray

Edited by Ray

Share this post


Link to post
Share on other sites

try this example:

Run('notepad.exe')
WinWait('[Class:Notepad]')

ControlSend('[Class:Notepad]', '', '[X:0;Y:0]', 'sending some text using the position of the control')

ps: I got the pos of the control with Au3info.exe

Share this post


Link to post
Share on other sites

try this example:

Run('notepad.exe')
WinWait('[Class:Notepad]')

ControlSend('[Class:Notepad]', '', '[X:0;Y:0]', 'sending some text using the position of the control')

ps: I got the pos of the control with Au3info.exe

Thank you, oMBra.

Your example did work. And, I'm happy to see that it worked without having to use all four position parameters (X, Y, W, and H.)

again, thank you.

Ray

Share this post


Link to post
Share on other sites

Thank you, oMBra.

Your example did work. And, I'm happy to see that it worked without having to use all four position parameters (X, Y, W, and H.)

again, thank you.

Ray

Thanks it helped me.

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