AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to check whether any control or menu is enabled or disab

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Jul 09, 2008 7:46 am    Post subject: how to check whether any control or menu is enabled or disab Reply with quote

Hi ,
I am totally new to this autohotkey so may be this question is silly , but is there any way to check whether any control or menu item is enabled or disabled ???
want an urgent reply ..
thnxx in advance
Back to top
Guest






PostPosted: Wed Jul 09, 2008 7:51 am    Post subject: Reply with quote

use ControlGet. Enabled
Back to top
Guest






PostPosted: Wed Jul 09, 2008 8:29 am    Post subject: Reply with quote

thnxx alot for quick reply..
but I have some other problem since i have to check menus and submenus.. but since the CNN is same for a single tool bar i.e same for all menus and submenus...
so what can be done in that case ???
Back to top
heresy



Joined: 11 Mar 2008
Posts: 291

PostPosted: Wed Jul 09, 2008 8:40 am    Post subject: Reply with quote

Menu is not 'Control', Use GetMenuItemEnabled() by Mustang
_________________
Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Jul 09, 2008 9:29 am    Post subject: Reply with quote

thnxx allot... its wrking ..
only small but unique problem is thr--
suppose one sub menu is first disabled.. that time its returning 0
thzz fine... now through that .ahk file only if such task is done that makes that sub menu enabled and again i m checking its value.. still its coming 0 ,
if i manually goes to that menu and just see it once and now if i check its status then its coming 1 ...
so it seems that its value is not getting refreshed if it remains in that .ahk
file only..
can ny one giv solution to this problem ???
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group