Jump to content

enable end disable'ing a control


 Share

Recommended Posts

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

Link to comment
Share on other sites

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()
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...