Contributions
ClickButton method doesn´t work
Recently I discovered a few situations when the ClickButton method doesn´t work. The button object exists, it´s enabled and visible but ClickButton only places the mouse cursor over the button but nothing else happens - no clicking occurs. Running the test again also doesn´t help - still the same. The only thing that helps is restarting the tested application (VB6 app), but after a few successful clicks on the same button, the situation repeats. There is a workaround: checking the state of application some 2 seconds after the click was performed and in case nothing changed, repeat the click, but this is no a systematic approach and it only messes up my code. Has anyone experienced similar problems?14KViews0likes2CommentsObject Tree Refresh
Hi, I wonder if there´s a way to control the object tree refresh process. The refresh apparently occurs after opening some window or after certain time period (even if there´s no script running). My tested application has a lot of controls and many windows so the refresh slows down the tested application significantly. I wolud like to refresh the object tree on my command when suitable. Is this possible?18KViews0likes1CommentProblem with PictureObj.Stretch(Width, Height)
HI, I want use this picture methods "stretch" PictureObj.Stretch(Width, Height) in TestComplete5 with VBscript like this: Set ObrazokObj = Sys.Desktop.Picture ObrazokObj.Stretch(800,800) ObrazokObj.SaveToFile("D:\plocha.png") But I cant run the script, because I got this error: Syntax error At " ObrazokObj.Stretch(800,800) O" error 100:Syntax error while processing ",". I don't understand why, can you pls write me how Can I change this methods of picture ? or other oportunity how to reduce size of image ? (I dont want use PictureObj.size)11KViews0likes3CommentsRe: Incomplete keyboard input
Thank you, when I added Czech language it works, but "Žilina" writed as "žilina". So I tried remove Czech language (Slovak language was always added ) and set in Advanced > Extend support of advanced text services to all programs. And it works perfect.3KViews0likes0CommentsRe: Incomplete keyboard input
HI, when I try it in notepad it dosent work too. I used this metod: Set w1 = Sys.Process("notepad").Window("Notepad", "*").Window("Edit") Call w1.Keys("Žilina") If I use txtZaciatok.wText="Žilina", it works but I want to simulate work user, so I want use this method: (write letter by letter) Set Okno=Form("P_JazdyX") Call TypeTo(Okno,"Usi.Frame2.txtZaciatok","Žilina") when TypeTo is: Sub TypeTo(Parent, Objekt, Text) Set O=Object(Parent, Objekt) O.Keys(Text):q end sub I have problem with this only on Windows XP.3KViews0likes0CommentsIncomplete keyboard input
Hi, I have problems with writing a string to the form which is coded in VB6. When i want to write "Žilina" it send a warning: Incomplete keyboard input > Some characters cannot be interpreted as keystrokes in the string 'Žilina'. See the description of the Keys function in the help system. The string which is finaly in the form is "ilina" The letter "Ž" is in Slovak language. The code of my program is here : Set Proces=GetProcess("intro") Set Okno=Form("P_JazdyX") Call TypeTo(Okno,"Usi.Frame2.txtZaciatok","Žilina") In Windows Vista - Slovak language I havent problem with this, and it works great. But problem is with Windows XP English. Small letter "ž" it write without problems too. Can you help me please ?13KViews0likes8Comments