ContributionsMost RecentMost LikesSolutionsAccessing script variables from other scriptsI have 2 scripts in my project (well, actually, I have about 30, but 2 will do as an example) called "script1" and "script2", both of which are vbscript. I make extensive use of project variables, but in this instance have a need to declare a global variable in script1 and be able to access it from other scripts. So, if I declare my global varable in script1, will I be able to access that global variable from script2?Re: Multiple WaitWindow in order to get a specific windowHmmm.... That's a shame. I've now written a custom function in order to do this and get round that limitation. Thanks for the info.Multiple WaitWindow in order to get a specific windowHello, I have a need to get and use windows without it putting an error in the TestComplete log. The following will put an error in the log as the first window cannot always be found and may not be the correct one: Set oMessageBox = Sys.Process("mmc").Window("#32770", strTitle).WaitWindow("Static", "*" & strMessageTextFilter & "*", -1, 30000) I could do the following: Set oMessageBox1 = Sys.Process("mmc").WaitWindow("#32770", strTitle, -1, 30000) Set oMessageBox2 = oMessageBox1.WaitWindow("Static", "*" & strMessageTextFilter & "*", -1, 30000) But was wondering if I could do the following instead: Set oMessageBox1 = Sys.Process("mmc").WaitWindow("#32770", strTitle, -1, 30000).WaitWindow("Static", "*" & strMessageTextFilter & "*", -1, 30000) And wondered whether it would produce any problems, especially if the first window is not found? Thanks.