Socialbumpupdotcom
January 24th, 2012, 07:17 PM
In order to understand the problem here is a example what im trying to do , I want to auto fill forms using (sendkeys and mouse clicks due to some reasons i can only use this method of send keys and mouse clicks) that means i can't access the text boxes in the applications and invoke button in app.
here is the pseudo code
At first the cursor gets moved to the text box start and mouse clicks then we paste the text there using sendkeys
clicktextbox and send message to the message box ; = >> Click text box , sendkeys("message");
Thread.Sleep(2000); //waiting so that message gets send
click Next button after this ; click next form button ;
above procedure / codes works perfectly fine when done not in loop , as soon we introduce the above procedure in loops the last "Next form" click don't work
is that my system speed issue ? or im doing any mistake while doing in a loop though i have tried allot of procedures to over come this as thread.sleep(long wait's 10 sec ) etc 4-5 times clicking of next button then sometimes it works - but again this can create problems while the app is running
here is the pseudo code
At first the cursor gets moved to the text box start and mouse clicks then we paste the text there using sendkeys
clicktextbox and send message to the message box ; = >> Click text box , sendkeys("message");
Thread.Sleep(2000); //waiting so that message gets send
click Next button after this ; click next form button ;
above procedure / codes works perfectly fine when done not in loop , as soon we introduce the above procedure in loops the last "Next form" click don't work
is that my system speed issue ? or im doing any mistake while doing in a loop though i have tried allot of procedures to over come this as thread.sleep(long wait's 10 sec ) etc 4-5 times clicking of next button then sometimes it works - but again this can create problems while the app is running