Akshay07 Posted February 12, 2010 Posted February 12, 2010 Hi all,I would like to disable the use of a specific buttton of an external application while the script is doing something else.I found this:Enables or disables mouse and keyboard input to the specified button_GUICtrlButton_Enable($hWnd[, $fEnable = True])So I looked for a way to get the button handle and I found this:GUICtrlGetHandle ( controlID)Problem: I don't know how to find the controlID of this button.I found this but it doesn't work. Any hint?
ResNullius Posted February 13, 2010 Posted February 13, 2010 If it's a external application that is not an AutoIt app, you're better served by ControlDisable(), ControlEnable(), etc.
Akshay07 Posted February 17, 2010 Author Posted February 17, 2010 (edited) Thanks, but I still have the ControlId problem. Au3info doesn't show anything, that's my main issue. Edited February 17, 2010 by Akshay07
Zedna Posted February 17, 2010 Posted February 17, 2010 Look at ControlGetHandle() Resources UDF ResourcesEx UDF AutoIt Forum Search
Akshay07 Posted February 18, 2010 Author Posted February 18, 2010 On 2/17/2010 at 9:21 PM, 'Zedna said: Look at ControlGetHandle()Thanks, but this still requires to know the ControlID.
Yoriz Posted February 18, 2010 Posted February 18, 2010 look in the helpfile under Function ref > Window management > controlsA 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. use ControlGetHandle() with one of the above methods GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.
Zedna Posted February 18, 2010 Posted February 18, 2010 (edited) I recommend to use CLASSNN, you can see it in Au3Info under Control Tab. Edited February 18, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Akshay07 Posted February 18, 2010 Author Posted February 18, 2010 Thank you very much to both of you, I will look into this and let you know if it works (it might take some time but I will make sure to keep you informed).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now