gzd Posted November 13, 2007 Share Posted November 13, 2007 Suppose i have main window with a button. When i press the button a new window with a button opens. how do i write code that operates the button in the second window? The main window has the following format: whille1 Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $cSubmit ... What i miss is how to insert this switch into the second window without causing an infinite loop Thanks Link to comment Share on other sites More sharing options...
Monamo Posted November 13, 2007 Share Posted November 13, 2007 Suppose i have main window with a button.When i press the button a new window with a button opens.how do i write code that operates the button in the second window?The main window has the following format:whille1 Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $cSubmit ...What i miss is how to insert this switch into the second window without causing an infinite loopThanksI'd suggest taking a look at using the "Advanced" parameter for GUIGetMsg(). Here's an example of usage. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
gzd Posted November 14, 2007 Author Share Posted November 14, 2007 I'd suggest taking a look at using the "Advanced" parameter for GUIGetMsg(). Here's an example of usage.It works. Thanks a lot. Link to comment Share on other sites More sharing options...
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