Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

script to enter username and password


  • Please log in to reply
6 replies to this topic
jsm
  • Members
  • 110 posts
  • Last active: Jun 18 2016 09:23 AM
  • Joined: 30 Apr 2010
hi all
can anyone help me write a script so say i press a hot key F1
a browser opens say in
<!-- m -->https://memberservic... ... =/myusage/<!-- m -->
enters your username and password and enters the site.
I know there's no point reinventing the wheel as there's a great program out there to do it called roboform
but it's the learning experance i'me after
thanks in advance

garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005
not optimized example, must left mouse-click to first input
;-- easy login, left click username-input when page loaded --
;------------------------------------------------------------
#persistent
SetKeyDelay,25,5
AA=garry1234@gmxxxx.ch
BB=12345678

Settitlematchmode,2
FXA=https://memberservices.optuszoo.com.au/login/
IXE=%A_programfiles%\Mozilla Firefox\firefox.exe

Run,%IXE% %FXA%,,max

KeyWait, LButton, D
sleep,1000

send,%AA%
sleep,1000
send,{TAB}
sleep,1000
send,%BB%
sleep,500
send,{TAB}
sleep,500
send,{ENTER}
ExitApp


a4u
  • Guests
  • Last active:
  • Joined: --
Here's another example:
; enter username & password

username =

password = 



[color=OrangeRed]clipboard[/color] =

( [color=DarkRed]LTrim[/color] Join

	javascript:

		form=document.forms['login'],

			form.username.value='%username%',

			form.password.value='%password%',

			form.submit()

)



[color=DarkRed]Run[/color],  https://memberservices.optuszoo.com.au/login/?target=/myusage/

[color=DarkRed]MsgBox[/color], 262208, WebPage Loading, [color=DarkRed]Click[/color] OK when page is loaded...

[color=DarkRed]Send[/color], !d

[color=DarkRed]Sleep[/color], 100

[color=DarkRed]Send[/color], ^v{enter}


TLM
  • Administrators
  • 3864 posts
  • Last active:
  • Joined: 21 Aug 2006

Here's another example:

; enter username & password
username =
password = 

[color=OrangeRed]clipboard[/color] =
( [color=DarkRed]LTrim[/color] Join
	javascript:
		form=document.forms['login'],
			form.username.value='%username%',
			form.password.value='%password%',
			form.submit()
)

[color=DarkRed]Run[/color],  https://memberservices.optuszoo.com.au/login/?target=/myusage/
[color=DarkRed]MsgBox[/color], 262208, WebPage Loading, [color=DarkRed]Click[/color] OK when page is loaded...
[color=DarkRed]Send[/color], !d
[color=DarkRed]Sleep[/color], 100
[color=DarkRed]Send[/color], ^v{enter}

The multiline javascript fails on paste and brings up an empty JavaConsole.
Anyway to reformat for single line?

Thnx

edit:

a little ot
Posted Image
this made me vomit in my mouth a bit..
That logo is satanic..

Posted Image

don't duplicate, iterate!


a4u
  • Guests
  • Last active:
  • Joined: --

The multiline javascript fails on paste and brings up an empty JavaConsole.
Anyway to reformat for single line?

The LTrim Join should cause this to be a single line ( MsgBox, %clipboard% ). As far as pasting, I'd assume that's an issue because of the browser. The idea is to hit Ald+D to get into the URL Address Bar, then paste & hit enter. ( it could be possible that the browser is picky on the javascript, since not all browsers are the same )

Lucas123
  • Guests
  • Last active:
  • Joined: --
Hello
I have this code so far, but some of the pages prompt for username and password how do I enter the username and password?

<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  
<script type="text/javascript" src="cycle%201_files/jquery.js"></script>
  
<script type="text/javascript" charset="utf-8">
    
var sites = [
      "http://www.google.co.za",
      "http://www.google.co.za",
      "http://www.google.co.za", 
"http://www.google.co.za"
    ];
    
var currentSite = sites.length;
    
    $(document).ready(function () {
      var $iframe = $("iframe").attr("src","http://www.google.com");
      
setInterval(function() 
{

        (currentSite == 0) ? currentSite = sites.length - 1 : currentSite = currentSite -1;
        
$iframe.attr("src",sites[currentSite]);
      
}, 300000);
    
});
  </script>  
  <style type="text/css" media="screen">
    iframe {
      height: 100%;
      width: 100%;
      border: none;
    }
  </style>
</head>
<body>
  <iframe src="cycle%201_files/ord.htm"></iframe>


</body></html>


TheInbisibleMan
  • Members
  • 1 posts
  • Last active: Dec 13 2014 04:03 AM
  • Joined: 08 Dec 2014

Can you do a League of Legends one?

(And if you can an in-game fast chat)