Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- disableControl(controlText,windowName)
- {
- WinGet, ActiveControlList, ControlList,windowName
- Loop, Parse, ActiveControlList, `n
- {
- ;msgbox, %A_loopfield%
- ControlGetText,b, %A_LoopField%,windowName
- ;msgbox, %b%
- if B = controlText
- control,disable,,%A_loopfield%,windowName
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement