vtuls Posted April 19, 2007 Posted April 19, 2007 im busy making an auto Re Install for my home installations when my pc needs to be reinstalled.but i want to give myself the choise if i install a download program or not, so my question is if you can enable and disable a control just like you can in visual basic.please help? a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
WeMartiansAreFriendly Posted April 19, 2007 Posted April 19, 2007 (edited) im busy making an auto Re Install for my home installations when my pc needs to be reinstalled. but i want to give myself the choise if i install a download program or not, so my question is if you can enable and disable a control just like you can in visual basic. please help? #include <GUIConstants.au3> GuictrlSetState() $GUI_ENABLE, $GUI_DISABLE or controlenabled(), controldisable() opt('wintitlematchmode',4) send('#r') sleep(1000) ControlDisable('Run','','Button2') sleep(3000) ControlEnable('Run','','Button2') Edited April 19, 2007 by mrRevoked Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
vtuls Posted April 19, 2007 Author Posted April 19, 2007 thanks the commands work! $GUI_ENABLE and $GUI_Disable do work i did have figured out that the command is actualy:GuictrlSetState(........, $GUI_DISABLE)and ...... means the variable that stands for the control. a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
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