Good Afternoon, Hello and How do you do?

Author Message
shangbaby

  • Total Posts : 3
  • Scores: 0
  • Reward points : 0
  • Joined: 11/13/2011
  • Status: offline
Good Afternoon, Hello and How do you do? Wednesday, November 16, 2011 7:18 AM (permalink)
0
So Here is the code that I am using to open my Login page. It opens but does not populate with my login via 'sendkey' function. Is there a step I am missing? Thanks for all your help
<HTML>
<BODY>

<INPUT id=button1 name=button1 type=button value=Button>

<SCRIPT LANGUAGE="VBScript">

sub button1_onclick()

strProgramPath = "C:\AESEnginuity\Shared\BIN\AESEnginuity.exe"

set objShell = createobject("Wscript.Shell")
objShell.Run strProgramPath
WScript.Sleep 100
objShell.AppActivate.Focus "LAOCHMIS V.4.4.6.0", True
objShell.SendKeys "username{TAB}", True       
WScript.Sleep 100
objShell.SendKeys "password{TAB}{TAB}{ENTER}", True

end sub
</SCRIPT>

</BODY>
</HTML>
 
#1
    rasimmer

    • Total Posts : 2363
    • Scores: 163
    • Reward points : 0
    • Joined: 3/19/2009
    • Location: Cedar Rapids, IA
    • Status: offline
    Re:Good Afternoon, Hello and How do you do? Thursday, November 17, 2011 5:44 AM (permalink)
    0
    .SendKeys is really not a good solution.  Look into AutoIT for automation like this.
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9