Jump to content

pocolo

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by pocolo

  1. _CountRecords work only 1 field How to count number records : mysql_query("SELECT * FROM `abc` WHERE `a` = '123' AND `b` = '456' AND ...... ")
  2. <form action="http://www.wupload.com/account/login" id="loginWidgetForm" method="post"> <div class="content"> <div class="fields"> <div class="field required tText fEmail"> <label for="loginWidgetEmail">Username</label> <div class="elements"> <input type="text" name="email" id="loginWidgetEmail" /> <input type="hidden" name="redirect" value="/account/login" /> </div> </div> <div class="field required tPassword fPassword"> <label for="loginWidgetPassword">Password</label> <div class="elements"> <input type="password" name="password" id="loginWidgetPassword" /> </div> <div class="forgotPass"> <a href="http://www.wupload.com/account/forgot-password">Forgot Password?</a> </div> </div> <div class="field tMultiCheckbox fLoginOptions"> <div class="elements"> <label for="loginWidgetRememberMe"><input type="checkbox" name="rememberMe" id="loginWidgetRememberMe" value="1" /> Remember me</label> </div> </div> </div> </div> <div class="action"> <button type="submit" class="smallButton"><span>Login</span></button> </div> </form> $email ="" $pass= "" $oIE = _IECreate("http://www.wupload.com/account/login",0,1,0) If _IELoadWait($oIE) = 0 Then Return EndIf $oLoginForm = _IEFormGetCollection($oIE) For $i = 0 To @extended - 1 $oLoginForm = _IEFormGetCollection($oIE, $i) If StringRight($oLoginForm.action, StringLen("http://www.wupload.com/account/login")) = "http://www.wupload.com/account/login" Then ExitLoop Else $oLoginForm = -1 EndIf Next If $oLoginForm = -1 Then Return $oUsernameInput = _IEFormElementGetObjByName($oLoginForm, "email") $oPasswordInput = _IEFormElementGetObjByName($oLoginForm, "password") _IEFormElementSetValue($oUsernameInput,$email) _IEFormElementSetValue($oPasswordInput, $pass) _IEFormSubmit ($oIE) ; dont' work $oButtons = _IETagNameGetCollection ($oIE, "button") For $oButton In $oButtons If $oButton.type = "submit" And $oButton.class = "smallButton" Then _IEAction ($oButton, 'click') EndIf Next Why _IEAction not click button ?
  3. don't have solution?
  4. (iam not good at EN) I try write a small script , and put it on my VPS Windows - If i login VPS -> it works: - After logoff and try login again -> not work ( not control ? ) Pls help . . . . $x = 0 While $x < 10 Test() $x = $x+ 1 Sleep(10000) WEnd Func Test() If ProcessExists("winrar.exe") Then ProcessClose("winrar.exe") $WinRarDir = @ProgramFilesDir &"\WinRAR\WinRAR.exe" Run($WinRarDir) Sleep(2000) $title = "Compressed - WinRAR" ConsoleWrite("-Open Compressed WinRAR") WinWaitActive($title) WinActive($title) If WinActive($title) Then ControlFocus( $title, "", "[CLASS:SysListView32; INSTANCE:1]") $hwnd = ControlGetHandle( $title, "", "[CLASS:SysListView32; INSTANCE:1]") $index = _GUICtrlListView_FindText($hwnd,"zip") _GUICtrlListView_SetItemSelected($hwnd, $index) _GUICtrlListView_SetItemSelected($hwnd, $index) ;....... ;...... EndIf EndFunc
×
×
  • Create New...