Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/24/2018 in all areas

  1. wakillon

    Water Effects

    Browsing a Chinese AutoIt forum, i fall on a little pearl that i want to share with you ! I have already seen water effects example with autoit, but this one is very easy to create using waterctrl.dll Only BMP are supported. Position of Blob water can be set by coordinates and mouse movements (and clicks) when over bmp create traces on water. All files are embeded in script with BinaryToAu3Kompressor. WaterEffect.au3 Hope you like it !
    1 point
  2. Thanks for looking into that. As for Firefox, My company doesn't allow it as they can't secure it how they want. I did finally figure out how to get the IFrame id using _WE_ElementAction() $eFrame = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//iframe[@name='iframeResult']") ;Find the IFrame we need ConsoleWrite(@CRLF & "Finding Frame result (" & $eFrame & ")" & @CRLF & @CRLF) $ID = _WD_ElementAction($sSession, $eFrame, 'attribute', 'id') ;Get the @id to pass into the _WD_FrameEnter ConsoleWrite(@CRLF & "Finding The Frame id result (" & $ID & ")" & @CRLF & @CRLF) $sFrame = _WD_FrameEnter($sSession, $ID) ConsoleWrite(@CRLF & "Enter Frame result (" & $sFrame & ")" & @CRLF & @CRLF)
    1 point
  3. You should use an Edit control instead of an InputBox control, since Edit controls allows multi-line strings. This part, is not coded correctly: While 1     $Submit = GUIGetMsg()     Switch $Submit     Case (WHEN I CLICK THE SUBMIT BUTTON) You have to Switch all the messages sent from ALL the controls, and, to do so, you have to use the sample script that you find in almost every GUI* samples, and it is: While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $idButton ; Execute code when user presses the button Case... EndSwitch WEnd Try this, and let us know
    1 point
  4. The version of AutoIt you run needs a COM error handler to handle such an error. Example: #include <Excel.au3> Global $oExcel = _Excel_Open() Global $oWorkbook = _Excel_BookNew($oExcel) Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") $Column = _Excel_ColumnToLetter(2) If @error Then MsgBox(0, "ColumnToLetter", "Error " & @error & " processing _Excel_ColumnToLetter!") Else MsgBox(0, "ColumnToLetter", $Column) EndIf $Column = _Excel_ColumnToLetter($oWorkbook.Sheets("MySheetName").Range("MyRangeName").Column) If @error Then MsgBox(0, "ColumnToLetter", "Error " & @error & " processing _Excel_ColumnToLetter!") Else MsgBox(0, "ColumnToLetter", $Column) EndIf
    1 point
  5. No worries, didn't take offense I think the same, but you can always try and see, would be nice if they implement it
    1 point
  6. You need something like this t put before your click. _ExecuteInBackground _IEAction($oDiv,"click") Func _ExecuteInBackground()     Local $sCommand = _             'Local ' & _             '$Dummy1 = WinWaitActive("Choose File to Upload", "", 20), ' & _             '$Dummy2 = Sleep(1000), ' & _             '$Dummy3 = ControlSetText("Choose File to Upload", "", "Edit1", "C:\Path\To\File.doc;C:\Path\To\File1.doc"), ' & _             '$Dummy4 = ControlClick("Choose File to Upload", "", "Button1") ' & _             ''     $sCommand = '"' & StringReplace($sCommand, '"', '""') & '"'     ConsoleWrite($sCommand & @CRLF)     Run(@AutoItExe & ' /AutoIt3ExecuteLine ' & $sCommand) EndFunc   ;==>_ExecuteInBackground
    1 point
  7. From the INI Wiki file format Wiki: Keys may (but need not) be grouped into arbitrarily named sections. The section name appears on a line by itself, in square brackets ([ and ]). All keys after the section declaration are associated with that section. There is no explicit "end of section" delimiter; sections end at the next section declaration, or the end of the file. Sections may not be nested. As you can see, Sections are "optional", even if, in the standard INI format, they are used. I think that IniWrite() and IniRead() are two functions which have been created to manage INI files in their standard format. So, if you don't want to use them as they are usually used, use FileWrite() and FileRead() to access the file
    1 point
  8. jchd

    BASE64 decoding images

    It's the escape sequence for linefeed (0x0A). Replace "&#xA;" before base64-decode.
    1 point
  9. Yeah somehow the download link was broken... This should be good now
    1 point
×
×
  • Create New...