PDA

View Full Version : make it auto type username password enter



superman12345
07-05-2006, 01:22 AM
ok now that i figured out how to put webpages in the listbox
i want to make it so when you click on the webpage (forum)
it will automatic login
i will make it go to the url of the login page
then i just need ams to type username tab password enter

yosik
07-05-2006, 08:10 AM
Way back, the "SUPER" user "Worm" built a Keystroke.Dll which could send virtual keystrokes. (I think it was back at version 4 of AMS.)
I am attaching the Dll here.
You could do as follows:

1. Suppose you have 2 Input Objects (named username and pass) and the user has typed his data in them.

2. Put the Dll into your Docs folder

3. Selecting the webpage (onDoubleClick in your ListBox Object), you would put the following actions:

--Get user Data
username = Input.GetText("username");
password = Input.GetText("pass");

--Format it into a new string variable
string2go = username.."{TAB}"..password.."{ENTER}";

--Set your selected URL
selectedsite = ListBox.GetSelected("yourListBox");

-- Load your selected URL into your WebObject
Web.Load("yourWebObject",selectedsite[1]);

--Call Keystrokes.Dll function, using the above variable
DLL.CallFunction(_SourceFolder.."\\Docs\\KEYSTROKES.DLL" , "KeyStroke", "\""..string2go.."\"", DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);

Hope that helps.

Yossi

superman12345
07-05-2006, 02:43 PM
sounds confusing lol