Contributions
Re: THICKNESS (incr/decr) is realized as ScrollBar. Each click: - or+ '1'
I can not assign different values. OBJECT PROPERTIES Window: wMAX = 0 (TC does not allow to change this value) wMIX = 0 (TC does not allow to change this value) wPosition = 0 ------------------- ------------------------------- So if I try to re-write the script manually like this: Sub Test6 Dim scrollBar Set scrollBar = Aliases.SimClient.dlg.ScrollBar scrollBar.wPosition = 0 scrollBar.wPosition = 5 scrollBar.wPosition = 10 scrollBar.wPosition = 20 End Sub It fails. OBJECT BROWSER: Failed to set the scroll bar position to 5. 0 was set instead of it. REMARKS: Minimum: 0 Maximum: 0. Aliases.SimClient.dlg.ScrollBar (Sys.Process("SimClient").Window("#32770", "ROTATE", 1).Window("ScrollBar", "", 1))843Views0likes0CommentsCHILD-WINDOW is ‘UNEXPECTED’
TC = 7.52-trail version. TC lang.= VBScript. Application=C++, using Codejock SoftWare. TASK: In Dialog ‘ROTATE’: Click COLOR-but to open the standard COLOR Dialog. Select color ‘RED’ in COLOR Dialog; click <OK> to close COLOR Dialog. (See attached pictures) Sub Test1 Dim dlgROTATE Set dlgROTATE = Aliases.SimClient.dlg dlgROTATE.btnColor.ClickButton ' It tries to select RED color in wrong dialog: Call dlgROTATE.Click(20, 76) dlgROTATE.btnOK.ClickButton End Sub Remarks for ‘Unexpected window’: Sys.Process("SimClient").Window("#32770", "Color", 1) How can I make COLOR Dialog ‘expected’?13KViews0likes1CommentTHICKNESS (incr/decr) is realized as ScrollBar. Each click: - or+ '1'
I test the BETA-version of Graphical Engineering Station (Black Box). TC = 7.52-trail version. TC lang.= VBScript. Application=C++, using Codejock SoftWare. As I can see, the functionality THICKNESS (increase/decrease) is realized as ScrollBar. Each click adds/subtracts ‘1’. Seeattached picture. But the script did not reflect any movement of the ScrollBar, so it does not affect the line-thickness. How can I fix this problem? Example: We’d like to change the line-thickness from 3 to 7. The following script does not work. Sub Test6 Dim scrollBar Set scrollBar = Aliases.SimClient.dlg.ScrollBar scrollBar.wPosition = 0 scrollBar.wPosition = 0 scrollBar.wPosition = 0 scrollBar.wPosition = 0 End Sub16KViews0likes3CommentsTC-7 cannot recognize DIFFERENT InputBoxes (when more than 1 InputBox in Dialog)
Hello, I test the BETA-version of Graphical Engineering Station (Black Box). TC = 7.52-trail version. TC lang.= VBScript. Application=C++, using Codejock SoftWare. TC does not recognize DIFFERENT Input-boxes in Dialog Windows (when I have more than one Input-box in Dialog). But TC can recognize other controls. Dialogs were written on C++ only. Example: we have a task to enter “1” into the 1 st input-box, and then enter “2” into the 2 nd input-box. TC has generated the following code: Sub Test1 Dim edit Set edit = Aliases.SimClient.dlg.Edit Call edit.Click(46, 11) edit.wText = "1" Call edit.Click(48, 11) edit.wText = "2" End Sub RESULT: “1” was entered into the 1 st input-box, and then “2” was entered into the 1 st input-box instead of “1”. ============================================================================= At the same time, other controls are OK (TC numbers them or uses their names). Example: we have the task to select an items in 2 list-boxes: Sub Test2 Dim dlgAnimation Set dlgAnimation = Aliases.SimClient.dlg Call dlgAnimation.ListBox2.ClickItem("[Electric]") Call dlgAnimation.ListBox.ClickItem("EL_AVR_EXC.bmp") End Sub ================================================== I wrote the manual script with the numbering of input-boxes: Sub Test3 Dim dlgROTATE Dim edit Set dlgROTATE = Aliases.SimClient.dlg Set edit = dlgROTATE.Edit Call edit.Click(61, 8) edit.wText = "1" Set edit = dlgROTATE.Edit1 Call edit.Click(29, 12) edit.wText = "2" End Sub But it does not work. Log-Report: 'Unable to find the object Edit1.' Could you, please, help me? Thank you in advance.13KViews0likes1Comment