husitong Posted January 12, 2012 Posted January 12, 2012 Hello, everyone How will a NET-button activation, and let it function properly Procedure known to activate the button I come from China because English is not good, use GOOGLE translation Such as title, see Annex 测试的DONET.rar edn.rar
husitong Posted January 12, 2012 Author Posted January 12, 2012 As the level of limited, pointing heroes
Mikeman27294 Posted January 12, 2012 Posted January 12, 2012 Do you mean that you want to click on a button in a GUI (Graphical User Interface) program made in a .net language?
husitong Posted January 12, 2012 Author Posted January 12, 2012 Do you mean that you want to click on a button in a GUI (Graphical User Interface) program made in a .net language?允许输入拉丁字符的拼音Not want to enable a button
Mikeman27294 Posted January 12, 2012 Posted January 12, 2012 When I translated the chinese writing, it said this:Allows you to enterthe LatinalphabetcharactersDo you mean you want to type latain text into a text box?
husitong Posted January 12, 2012 Author Posted January 12, 2012 When I translated the chinese writing, it said this:Allows you to enterthe LatinalphabetcharactersDo you mean you want to type latain text into a text box?Enable disabled button to click the button command
Mikeman27294 Posted January 12, 2012 Posted January 12, 2012 Ok, now I get exactly what you mean. I know how to do it to an AutoIT GUI, but I dont know how in another program. I will have a go though and let you know if I get it to work.
Mikeman27294 Posted January 12, 2012 Posted January 12, 2012 My guess would be to use GuiCtrlSetState($Control, @GUI_DISABLE) The control would be the control ID Of the button in an external program, if you can get it.
husitong Posted January 12, 2012 Author Posted January 12, 2012 id = WindowsForms10.BUTTON.app.0.378734a1 You can get it with Au3Info.exeControlEnable ( "Form1", "", 'WindowsForms10.BUTTON.app.0.378734a1' ) ;Invalid#Include <WinAPI.au3>$test = ControlGetHandle ( "Form1", "", 'WindowsForms10.BUTTON.app.0.378734a1' )If @error Then msgbox(0,0,"error")_WinAPI_EnableWindow($test, True) Is no way to use
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