Jump to content
Sign in to follow this  
vtuls

enable end disable'ing a control

Recommended Posts

vtuls

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? :shocked:


a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)

Share this post


Link to post
Share on other sites
WeMartiansAreFriendly

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? :shocked:

#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 by mrRevoked

Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

Share this post


Link to post
Share on other sites
vtuls

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. :shocked:


a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.