Results 1 to 3 of 3
  1.    #1  
    Hi,

    Im trying to help make an automated script for a webmail system. I seem to be using quite a few mouseclicks & I am not sure if there is an easier way to do this:

    I made this using the 1 column view.

    You go to the main page, then you need to click on Pepsi Bottling Group, then log in.

    This looks like a real mess though (my script)

    Code:
    # Pepsi Automation
    
    Run( "\Windows\iexplore.exe", "https://webmail.pepsico.com/welcome/index.html" )
    
    Sleep( 8000 )
    
    MouseClick( 311, 229 )
    
    Sleep( 1000 )
    
    MouseClick( 311, 229 )
    
    MouseClick( 311, 229 )
    
    MouseClick( 221, 79 )
    
    Sleep( 8000 )
    
    MouseClick( 152, 279 )
    
    MouseClick( 152, 279 )
    
    MouseClick( 311, 187 )
    
    MouseClick( 311, 187 )
    
    MouseClick( 311, 187 )
    
    MouseClick( 257, 121 )
    
    Sleep( 2000 )
    
    SendKeys( "Domain" )
    
    Sleep( 2000 )
    
    MouseClick( 106, 175 )
    
    Sleep( 2000 )
    
    SendKeys( "Username" )
    
    Sleep( 2000 )
    
    MouseClick( 116, 229 )
    	
    SendKeys( "password" )
    
    MouseClick( 256, 280 )
    
    MouseClick( 256, 280 )
    
    MouseClick( 310, 223 )
    
    Sleep( 1000 )
    
    MouseClick( 55, 98 )
  2. #2  
    MortScript probably isn't the best tool to perform automated logins on web pages. What you probably need to do is issue a Post http request that specifies the domain, userid and password in the post data. I suppose someone could write a program to send http requests and have MortScript call it.

    Sure you can do it the way you are doing it in MortScript, but it sure is clumsy. Also I'm curious why you don't start out going straight to https://csc.webmail.pepsico.com to save some steps.
  3. #3  
    If the page you login to (https://csc.webmail.pepsico.com/exchange) doesn't have any sort of validation, you can mimic the form and recreate what it sends to https://csc.webmail.pepsico.com/exchange quite easily. Look for ways of hacking Post scripts in HTML. You might be able to create a simple HTML page that you put on your device that you go to and auto-populates your user information, or you may be able to mimic the URL that it sends directly and bypass that (just have the URL saved as a favorite).

    Neither option would be secure.

Posting Permissions