sunilvedula Posted April 5, 2008 Report Share Posted April 5, 2008 hi i have written a loop where it has to check for a particular window is opened or not and then continue with theloop else check for another window and then continue with that loop. it goes some thing lik this if window title " process chargeback" is running execute the loop else if window title " retrieval request" is running execute the loop ..... . . . endif endif....... This logic is not at all working and it never enter the loop (i think because it is not recognizing the window title) Also each window opens when the user selects a combo box and only one window opens at a time. Can someone help me out on this as i have a deadline by monday. i have completed the whole project and it is stuck here. Quote Link to comment Share on other sites More sharing options...
stan Posted April 7, 2008 Report Share Posted April 7, 2008 It's possible that the windows are child windows and are not recognized by Macro Express. You can try inserting a Variable Set String command - Set Value to Topmost Window Title. Then insert a Text Box Display command to display the contents of the variable. See which window title is being displayed. If a parent window title is displayed, then I would suggest using the Window Controls. Then use the If Control command for your logic statement. Quote Link to comment Share on other sites More sharing options...
sunilvedula Posted April 8, 2008 Author Report Share Posted April 8, 2008 thanks stan ! let me see if it is working and i will reply back once my experiment is over. Quote Link to comment Share on other sites More sharing options...
sunilvedula Posted April 9, 2008 Author Report Share Posted April 9, 2008 It's possible that the windows are child windows and are not recognized by Macro Express. You can try inserting a Variable Set String command - Set Value to Topmost Window Title. Then insert a Text Box Display command to display the contents of the variable. See which window title is being displayed. If a parent window title is displayed, then I would suggest using the Window Controls. Then use the If Control command for your logic statement. Hi stan, i tried the one u suggested. The problem is that the naming on the (there is only one window) window changes for every option i choose. so "if widow title is running" option is not working (for whatever reasons) hence i divided my program and for every window i have a condition set (loop kind of) i defined multiple macros. now each of this macro gets activated once the title window with tht opiton is selected. i have given activation from window title for each of the respective macros. It is working fine. but need to pilot test it (today i will be doing) to see if any errors occur. Quote Link to comment Share on other sites More sharing options...
patrickbarrett Posted April 17, 2008 Report Share Posted April 17, 2008 Hi stan, i tried the one u suggested. The problem is that the naming on the (there is only one window) window changes for every option i choose. so "if widow title is running" option is not working (for whatever reasons) hence i divided my program and for every window i have a condition set (loop kind of) i defined multiple macros. now each of this macro gets activated once the title window with tht opiton is selected. i have given activation from window title for each of the respective macros. It is working fine. but need to pilot test it (today i will be doing) to see if any errors occur. I would try a Switch/Case for this... First capture the window title with the "Variable Set String from Topmost Window Title", then open a Switch for that variable and create cases for each different window title it could be. Something like this: <TVAR2:01:06:><SWITCH:T1><CASE:Process Chargeback><ENDCASE><CASE:Retrieval Request><ENDCASE><DEFCASE><ENDCASE><ENDSWITCH> Quote Link to comment Share on other sites More sharing options...
alexlimbert Posted July 12, 2008 Report Share Posted July 12, 2008 If you're running Vista 64, window title recognition won't work, neither will all of the Macros that you've made to date that rely on window titles. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.