Jump to content

Coder07

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Coder07

  1. <form action='index.php' method='post'> Username: <input type='text' name='username' size='25' /><br /> Password: <input type='password' name='password' size='25' /><br /> <input type='submit' name='ok' value='Submit' /> </form> for this example, you can do $submit = _IEGetObjByName($bro, "ok") _IEAction($submit, "click") you can go with "_IEGetObjById" if button has an <input ID="blabla"> btw if u are using Win7, Win8 or Win8.1 you can check this out: '?do=embed' frameborder='0' data-embedContent>>
  2. recently, i was getting IE UDF errors when i was using functions like '_IEAction($object,"click")' in Win8. i searched forum and saw people that had same issues with me. i installed xp in virtualbox and tried my script there. woala! it is working. then i found this solve: - press ALT in IE to see top menus. - go to Tools > Compatibility View Settings > open "set Compatibility View for all web sites" (i dont know its english exactly) if u do that, you can use IE UDF in win7, win8 and win8.1 with no problem.
  3. i dont know why u used stringreplace thing but first of all you must open excel sheet: #include <Excel.au3> #include <Array.au3> Local $Openmessage = "Please, open Excel template for One4Al." Local $var = FileOpenDialog($Openmessage, @DesktopDir & "\", "Images (*.xlsx;*.xls)", 1) If @error Then MsgBox(4096, "", "No File(s) chosen") Else $oExcel = _ExcelBookOpen($var) Local $aArray = _ExcelReadSheetToArray($oExcel) ;Using Default Parameters _ArrayDisplay($aArray, "Array using Default Parameters") $aArray = _ExcelReadSheetToArray($oExcel, 2) ;Starting on the 2nd Row _ArrayDisplay($aArray, "Starting on the 2nd Row") $aArray = _ExcelReadSheetToArray($oExcel, 1, 2) ;Starting on the 2nd Column _ArrayDisplay($aArray, "Starting on the 2nd Column") $aArray = _ExcelReadSheetToArray($oExcel, 1, 1, 5) ;Read 5 Rows _ArrayDisplay($aArray, "Read 5 Rows") $aArray = _ExcelReadSheetToArray($oExcel, 1, 1, 0, 2) ;Read 2 Columns _ArrayDisplay($aArray, "Read 2 Columns") $aArray = _ExcelReadSheetToArray($oExcel, 2, 3, 4, 5) ;Starting on the 2nd Row, 3rd Column, Read 4 Rows and 5 Columns _ArrayDisplay($aArray, "Starting on the 2nd Row, 3rd Column, Read 4 Rows and 5 Columns") $aArray = _ExcelReadSheetToArray($oExcel, 1, 1, 0, 0, True) ;Using Default Parameters, except Shifting Column (True) _ArrayDisplay($aArray, "Array with Column shifting") EndIf
  4. create an txt file (may be encrypted) contains version of exe. and compare with ur local exe, if version of exe in ftp greater than local's, get ftp exe ^^
  5. i dont like only the way that we create and organize GUIs. creating a multiple GUI is a pain in the ass. (at least for me ^^ )
  6. you saved my life. Thnx a lot! i'm newbie at SRE. Can i tell that that code works like this: 1- Group and convert any horizontal line feed to @CRLF. 2- Remove @CRLF if it is located at beginning or ending of file. ? i was using these: Func __RemoveExtraLines($string) Local $i, $s = "", $split $split = StringSplit($string, @CRLF, 0) For $i = 1 To $split[0] If $split[$i] = @CR Or $split[$i] = @CRLF Or $split[$i] = "" Or $split[$i] = @LF Then ContinueLoop $s = $s & $split[$i] & @CRLF Next $s = StringReplace($s, @CRLF, "", -1) Return ($s) EndFunc ;==>__RemoveExtraLines waste of time but it works too ^^ @Never say never your code works too if string doesn't have (for example) @CRLF + @CR in a row.
  7. i dont search if this available but i made a string reverse function Func SR($string) $n = StringLen($string) $reversed = "" For $i = 1 To $n Step +1 $reversed = $reversed & StringLeft(StringTrimLeft($string,$n-$i),1) Next Return $reversed EndFunc MsgBox(0,"",SR("hello"))
×
×
  • Create New...