forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Send keystrokes to browser

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Oct 17, 2007 5:59 pm    Post subject: Send keystrokes to browser Reply with quote

Is there a way I can send keystrokes to a field on a browser such as a username or password field? I have tried window send and it is not working.

thanks

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Oct 23, 2007 8:45 pm    Post subject: Reply with quote

Do you want to open a website which will automatically login or something? In that case, you might be better of by creating the HTML page below with VDS and open it in your webbrowser. It will then automatically submit the form and the user will be logged in. Smile

Code:
<html>
<head>
   <script>
      function login()
      {
         document.getElementById("frmLogin").submit();
      }
   </script>
</head>
<body>
   <form action="http://www.your-url.com/login.php?do=login" method="post" id="frmLogin">
      <input type="hidden" name="extrafield" value="extravalue" />
      <input type="hidden" name="do" value="login" />
      <input type="hidden" name="username" value="Enter username here with the use of VDS" />
      <input type="hidden" name="password" value="Enter password here with the use of VDS" />
      <input type="submit" />
   </form>
   <script>
      login();
   </script>
</body>
</html>

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Oct 23, 2007 8:51 pm    Post subject: Reply with quote

Thanks, but no. I am trying to make an on-screen keyboard. I can get it to work with most apps, but not browsers. It doesn't send the keys to the field that the cursor is in... or any field at all on the page. I have tried to find the id of the browser element and send the keys that way, sometimes I can't and when I can, it doesn't work right. I'm a little frustrated.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group