Jump to content
Sign in to follow this  
thepocky

Error, Include FF.au3

Recommended Posts

Hi,
 
please excuse my poor English .

I test currently autoıt and FF.au3 . Unfortunately, I 'm already at a simple example script following error message:

Here again, the output from the log:

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Bjoern\Desktop\AutoIT - Scripts\Pennergame_v1.au3" /UserParams    
+>15:42:55 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0   Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0407)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\Bjoern\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Bjoern\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.12.0)  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\Bjoern\Desktop\AutoIT - Scripts\Pennergame_v1.au3
! Au3check doesn't support input files encoded as UTF8 with BOM: C:\Program Files (x86)\AutoIt3\Include\FF.au3
"C:\Users\Bjoern\Desktop\AutoIT - Scripts\Pennergame_v1.au3"(3,55) : error: _FFStart(): undefined function.
 _FFStart("http://ff-au3-example.thorsten-willert.de/")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\Bjoern\Desktop\AutoIT - Scripts\Pennergame_v1.au3"(5,19) : error: _FFIsConnected(): undefined function.
If _FFIsConnected()
~~~~~~~~~~~~~~~~~~^
"C:\Users\Bjoern\Desktop\AutoIT - Scripts\Pennergame_v1.au3"(7,26) : error: _FFClick(): undefined function.
    _FFClick("img", "tag", 5)
    ~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\Bjoern\Desktop\AutoIT - Scripts\Pennergame_v1.au3"(11,51) : error: _FFXpath(): undefined function.
    $sObj = _FFXpath("//img[@alt='test_bild_3']","",9)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\Bjoern\Desktop\AutoIT - Scripts\Pennergame_v1.au3"(15,17) : error: _FFWindowClose(): undefined function.
    _FFWindowClose()
    ~~~~~~~~~~~~~~~^
C:\Users\Bjoern\Desktop\AutoIT - Scripts\Pennergame_v1.au3 - 6 error(s), 0 warning(s)
!>15:42:55 AU3Check ended. Press F4 to jump to next error.rc:2
+>15:42:55 AutoIt3Wrapper Finished.
>Exit code: 2    Time: 0.4751

Here is the example script:

#Include <FF.au3>

 _FFStart("http://ff-au3-example.thorsten-willert.de/")

If _FFIsConnected() Then

    _FFClick("img", "tag", 5) ; clicks on the 5th image

    Sleep(1000)

    $sObj = _FFXpath("//img[@alt='test_bild_3']","",9) ; get the image with the alt-text test_bild_3 ...
    _FFClick($sObj) ; ... and click on it

    Sleep(1000)
    _FFWindowClose()
Else
    MsgBox(0,"Error:", "Can't connect to FireFox!")
EndIf

Has anyone ever had this trouble?

thanks,

björn

Share this post


Link to post
Share on other sites

Is FF.au3 in the AutoIt include directory under C:Program FileAutoIt?

Edited by guinness

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...