sveetas Posted April 9, 2013 Posted April 9, 2013 Hi . i need simple submit script. to login in website : web source: <form action="index.php?id=login" method="post"> username <input type="text" name="nick"><br> password: <input type="password" name="pass"><br> <input type="submit" value="Prisijungti"> </form> #include Local $loginas = InputBox("Loginas", "Cia irasome zaidimo logina", "LOGIN", ""); Local $passwd = InputBox("Slaptazodis", "CIa irasome slaptazodi", "", "*") Call ("signIn") Func signIn () Global $oIE = _IECreate ("http://dba.us.lt") Local $username = _IEGetObjByName ($oIE,"nick") Local $password = _IEGetObjByName ($oIE,"pass") _IEFormElementSetValue ($username,$loginas) _IEFormElementSetValue ($password,$passwd); EndFunc all function work .write pass and nick . but i dont know how press : submit function but have problem to press button and loggin sorry for me english
James Posted April 9, 2013 Posted April 9, 2013 Get out of here. This is examples, not General Support. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
sveetas Posted April 9, 2013 Author Posted April 9, 2013 (edited) Local $oForm = _IEFormGetObjByName($oIE, "ExampleForm")password:<input type="submit" value="Prisijungti">><br> not have name .to find? o i downt know .. Edited April 9, 2013 by sveetas
Xenobiologist Posted April 9, 2013 Posted April 9, 2013 #include $sUsername = "Username" $sPassword = "Password" $sUrl = "dba.us.lt" $oIE = _IECreate($sUrl, 0, 1, 0, 1) Sleep(2000) $oHWND = _IEPropertyGet($oIE, "hwnd") WinSetState($oHWND, "", @SW_MAXIMIZE) $oForm = _IEFormGetCollection($oIE, 0) $oUsername = _IEFormElementGetObjByName($oForm, 'nick') $oPassword = _IEFormElementGetObjByName($oForm, "pass") _IEFormElementSetValue($oUsername, $sUsername) _IEFormElementSetValue($oPassword, $sPassword) _IEFormSubmit($oForm) Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
Xenobiologist Posted April 9, 2013 Posted April 9, 2013 No problem. Next time please post questions in supoort forums as James mentioned. @Mods : Please move to support forum Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
wraithdu Posted April 9, 2013 Posted April 9, 2013 And what lesson have we learned here today? Being persistently stupid gets your way. Win one for the impatience of youth, I'm so proud. JLogan3o13, James, FireFox and 1 other 4
iamtheky Posted April 9, 2013 Posted April 9, 2013 and that the following forum rule is ignored if the bulk of the answers come from MVPs?Bypassing of security measures - log-in Mobius 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
Developers Jos Posted April 9, 2013 Developers Posted April 9, 2013 (edited) @Mods : Please move to support forumNah ... and maybe next time refrain from replying with people that are so impatient they can't be bothered to post in the correct forum.*click* Edited April 9, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts