blackwolfvn82
asked on
How to sendkeys backspace to tWEBBROWSER?help me please
procedure TForm1.Button7Click(Sender : TObject);
begin
form3.WebBrowser1.SetFocus
sendkeystotitle('search',S K_SHIFT_DN +SK_TAB+SK _SHIFT_UP+ SK_PGDN+SK _TAB+SK_TA B+SK_TAB+S K_TAB+SK_T AB+'614035 '+SK_ENTER );
sleep(2000);
sendkeystotitle('search',S K_BKSP);
end;
//SEARCH: is the caption of my form
this command is sucsesful
sendkeystotitle('search',S K_SHIFT_DN +SK_TAB+SK _SHIFT_UP+ SK_PGDN+SK _TAB+SK_TA B+SK_TAB+S K_TAB+SK_T AB+'614035 '+SK_ENTER );
but why this command sendkeystotitle('search',S K_BKSP); is not successfull.My webbrowser doesn't go back to the previous page
Ā
thanks very much
begin
form3.WebBrowser1.SetFocus
sendkeystotitle('search',S
sleep(2000);
sendkeystotitle('search',S
end;
//SEARCH: is the caption of my form
this command is sucsesful
sendkeystotitle('search',S
but why this command sendkeystotitle('search',S
Ā
thanks very much
ASKER
sorry but My webbrowser still doesn't go back to the previous page
If you just want to navigate the browser back it would be easier to use the following line:
Form3.WebBrowser1.GoBack;
Form3.WebBrowser1.GoBack;
ASKER
but can you explain why i can't use the function:
sendkeystotitle('search',S K_BKSP);
sendkeystotitle('search',S
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try replacing sendkeystotitle('search',S
SendMessage(form3.WebBrows
SendMessage(form3.WebBrows
SendMessage(form3.WebBrows