Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

FF.au3 (V0.6.0.1b-10)


  • Please log in to reply
597 replies to this topic

#581 13lack13lade

13lack13lade

    Polymath

  • Active Members
  • PipPipPipPip
  • 203 posts

Posted 24 January 2014 - 12:23 AM

@mootius:

The function _FF_Call is for executing JavaScripts:

FFEx.au3

 

@13lack13lade:

You can interact with them e.g. with _FFXpath and _FFClick.

 

Look please on the examples: _FFClick and _FFXpath

 

The XPath can you copy from FireBug.

 

Hey, got firebug, not sure how to interact with the buttons since they all have the same class name, no id, no tags, nothing this is what it says when i view source code of the object im trying to click on

 

<div class="html-face">Location</div>

 

using firebug to copy xpath i get :

/html/body/div/div/div[2]/div/div[4]/div/div[2]/div/div[2]/div/div/div/div[3]/div/div[2]/div/div[3]/div/div[2]/div/div[5]/table/tbody/tr/td/table/tbody/tr/td[3]/div/div/div/div/div

 

how do i use any of this to click on the button? :(









#582 Stilgar

Stilgar

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 423 posts

Posted 24 January 2014 - 02:54 PM

Hey, got firebug, not sure how to interact with the buttons since they all have the same class name, no id, no tags, nothing this is what it says when i view source code of the object im trying to click on

 

<div class="html-face">Location</div>

 

using firebug to copy xpath i get :

/html/body/div/div/div[2]/div/div[4]/div/div[2]/div/div[2]/div/div/div/div[3]/div/div[2]/div/div[3]/div/div[2]/div/div[5]/table/tbody/tr/td/table/tbody/tr/td[3]/div/div/div/div/div

 

how do i use any of this to click on the button? :(

_FFClick(_FFXPath("/html/body/div/div/div[2]/div/div[4]/div/div[2]/div/div[2]/div/div/div/div[3]/div/div[2]/div/div[3]/div/div[2]/div/div[5]/table/tbody/tr/td/table/tbody/tr/td[3]/div/div/div/div/div") )

That's all



#583 13lack13lade

13lack13lade

    Polymath

  • Active Members
  • PipPipPipPip
  • 203 posts

Posted 28 January 2014 - 12:34 AM

oh, haha here i am trying to over complicate it..  i gave it a crack and the website errored something about cache then permission denied then logged me out... 

 

 lineNumber: 11841
 columnNumber: 28812: Permission denied to access property 'type'.
 
 
Autoit returns the following:
 
_FFConnect: Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
__FFSend: FFau3.xpath=null;try{FFau3.xpath=FFau3.WCD.evaluate("/html/body/div/div/div[2]/div/div[4]/div/div[2]/div/div[2]/div/div/div/div[2]/div/ul/li[2]/a",FFau3.WCD,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;}catch(e){'_FFXPath_Error: '+e;};
__FFRecv: - {toString: function() {...}, target: "", download: "", ping: "", rel: "", hreflang: "", type: "", ...}
__FFSend: try{FFau3.simulateEvent(FFau3.xpath,'MouseEvents','click');}catch(e){'_FFCmd_Err';};
 
__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1
__FFRecv: 
_FFClick ==> No match: $sElement: FFau3.xpath
>Exit code: 0    Time: 4.903

Edited by 13lack13lade, 28 January 2014 - 02:29 AM.


#584 gishi

gishi

    Seeker

  • Normal Members
  • 1 posts

Posted 08 February 2014 - 04:18 PM

For give me I'm new to the ff.au3 library but how would i go about getting a list of id's class's or name's from a specific element then retrieve the inner text from each element returned.

like this

<div id="conainer"> <div id="box1"> some text </div> <div id="box2"> some text </div> <div id="box3"> some text </div> </div>

Edited by gishi, 08 February 2014 - 04:21 PM.


#585 Arclite86

Arclite86

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 14 February 2014 - 08:18 AM

I have added the UDF and the firefox addon and the AddOn MozRepl

AutoIt         
>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\joesoef pc\Desktop\autoit\firefox.au3" /UserParams     +>09:14:18 Starting AutoIt3Wrapper v.2.1.4.4 SciTE v.3.3.7.0 ;  Keyboard:00020409  OS:WIN_81/  CPU:X64 OS:X64    Environment(Language:0413  Keyboard:00020409  OS:WIN_81/  CPU:X64 OS:X64) >Running AU3Check (3.3.10.2)  from:C:\Program Files (x86)\AutoIt3 +>09:14:18 AU3Check ended.rc:0 >Running:(3.3.10.2):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\joesoef pc\Desktop\autoit\firefox.au3"     --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop __FFStartProcess ==> General Error: Error reading registry entry for FireFox. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\*CurrentVersion*\Main\PathToExe Error from RegRead: 1 _FFConnect: OS: WIN_81 WIN32_NT 9600 _FFConnect: AutoIt: 3.3.10.2 _FFConnect: FF.au3: 0.6.0.1b-10 _FFConnect: IP: 127.0.0.1 _FFConnect: Port:   4242 _FFConnect: Delay:  2ms _FFConnect: Socket:     732 _FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 __FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1 __FFSendJavaScripts: Sending functions to FireFox .......... done _FFLoadWait: . loaded in 11ms __FFWaitForRepl ==> MozRepl Exception +>09:14:20 AutoIt3.exe ended.rc:0 +>09:14:20 AutoIt3Wrapper Finished.. >Exit code: 0    Time: 3.010  

And this is the simple script i try to run:

#include <FF.au3> _FFStart("http://www.youtube.com/")

im using firefox version:27.0.1

 

can somebody please help me



#586 SupaNewb

SupaNewb

    Seeker

  • Active Members
  • 17 posts

Posted 14 February 2014 - 10:37 PM

Here is a half a$$ script I wrote to check ff and mozrepl status (it is only reliable if firefox.exe is installed in default location).

I just use "get status" button. Hope it is helpful to you.

AutoIt         
  1. #Region    ;************ Includes ************
  2. #include <GUIConstantsEx.au3>
  3. #include <Misc.au3>
  4. #include <GuiEdit.au3>
  5. #include <File.au3>
  6. #include <WinAPIEx.au3>
  7. #include <APIConstants.au3>
  8. #EndRegion    ;************ Includes ************
  9.  
  10.  
  11. If _Singleton("Mozrepl Manager.exe", 1) = 0 Then
  12.     MsgBox(0, "Mozrepl Manager is already running! ", " Using multiple copies of this script is unsupported! ")
  13.     Exit
  14. Opt("MustDeclareVars", 1)
  15. Opt("TrayIconDebug", 1)
  16. HotKeySet("{END}", "__MyExit")
  17. Global $MSG
  18. Global $FireFoxInst = False, $FMOZREPLINST = False, $FMOZREPAUTOSTART = False
  19. Global $HMAINGUI = GUICreate("Mozrepl Manager", 540, 150, -1, -1)
  20. Global $ECONSOLE = GUICtrlCreateEdit("", 1, 30, 540, 120, -1)
  21. Global $BREPLSTATUS = GUICtrlCreateButton("Get Status", 4, 4, 60, 20)
  22. Global $BINSTALLMOZREPL = GUICtrlCreateButton("Install Mozrepl", 68, 4, 74, 20)
  23. Global $BFIREFOXSTATUS = GUICtrlCreateButton("Firefox Exists", 146, 4, 70, 20)
  24. $FireFoxInst = __FIREFOXEXISTS()
  25.     $MSG = GUIGetMsg(1)
  26.     Select
  27.         Case $MSG[0] = $GUI_EVENT_CLOSE And $MSG[1] = $HMAINGUI
  28.             __MYEXIT()
  29.         Case $MSG[0] = $BREPLSTATUS And $MSG[1] = $HMAINGUI
  30.             __REPLSTATUS()
  31.         Case $MSG[0] = $BINSTALLMOZREPL And $MSG[1] = $HMAINGUI
  32.             __INSTALLMOZREPL()
  33.         Case $MSG[0] = $BFIREFOXSTATUS And $MSG[1] = $HMAINGUI
  34.             __FIREFOXEXISTS()
  35.     EndSelect
  36. Func __INSTALLMOZREPL()
  37.     ShellExecute("https://addons.mozilla.org/firefox/downloads/file/205776/mozrepl-1.1.2-fx.xpi?src=dp-btn-primary", "", "", "open")
  38. EndFunc   ;==>__INSTALLMOZREPL
  39. Func __REPLSTATUS()
  40.     Local $AFILELIST, $LISTERROR, $RETURN, $VAR, $BOOL
  41.     If Not $FireFoxInst = True Then
  42.         _GUICtrlEdit_AppendText($ECONSOLE, " Firefox is not installed at the directory: " & @AppDataDir & "\Mozilla" & @CRLF)
  43.         _GUICtrlEdit_AppendText($ECONSOLE, " First install Firefox" & @CRLF & " This program only supports Firefox installed on your boot drive" & @CRLF)
  44.         Return
  45.     EndIf
  46.     Local $DEFAULTNAME, $ARR = _FileListToArray(@AppDataDir & "\Mozilla\Firefox\Profiles", "*", 2)
  47.     If IsArray($ARR) Then
  48.         For $I = 1 To $ARR[0]
  49.             $VAR = StringInStr($ARR[$I], ".default")
  50.             If $VAR > 0 Then
  51.                 $DEFAULTNAME = $ARR[$I]
  52.                 _GUICtrlEdit_AppendText($ECONSOLE, "Found default profile folder" & @CRLF & "Default Profile: " & $DEFAULTNAME & @CRLF)
  53.                 ExitLoop
  54.             EndIf
  55.         Next
  56.     EndIf
  57.     _GUICtrlEdit_AppendText($ECONSOLE, "Searching  " & @AppDataDir & "\Mozilla\Firefox\Profiles\" & $DEFAULTNAME & " for prefs.js" & @CRLF)
  58.     $ARR = _FileListToArray(@AppDataDir & "\Mozilla\Firefox\Profiles\" & $DEFAULTNAME, "prefs.js")
  59.     Local $PREFFILE
  60.     If IsArray($ARR) Then
  61.         For $I = 1 To $ARR[0]
  62.             If $ARR[$I] = "prefs.js" Then
  63.                 _GUICtrlEdit_AppendText($ECONSOLE, "Found prefs.js" & @CRLF)
  64.                 $PREFFILE = $ARR[$I]
  65.                 ExitLoop
  66.             EndIf
  67.         Next
  68.         If Not $PREFFILE = "prefs.js" Then
  69.             _GUICtrlEdit_AppendText($ECONSOLE, "prefs.js not found. You will have to install The Mozrepl Addon with Firefox." & @CRLF)
  70.             Return
  71.         EndIf
  72.     EndIf
  73.     $VAR = _FileReadToArray(@AppDataDir & "\Mozilla\Firefox\Profiles\" & $DEFAULTNAME & "\" & $PREFFILE, $ARR)
  74.     If $VAR = 0 Then
  75.         If @error = 1 Then _GUICtrlEdit_AppendText($ECONSOLE, " Error opening prefs.js" & @CRLF)
  76.         If @error = 2 Then _GUICtrlEdit_AppendText($ECONSOLE, " Error reading prefs.js" & @CRLF)
  77.         Return
  78.     EndIf
  79.     If IsArray($ARR) Then
  80.         Local $STRING
  81.         _GUICtrlEdit_AppendText($ECONSOLE, "Checking if Mozrepl is installed" & @CRLF)
  82.         $VAR = ""
  83.         For $I = 1 To $ARR[0]
  84.             $VAR = StringInStr($ARR[$I], "mozrepl")
  85.             If $VAR > 0 Then
  86.                 $FMOZREPLINST = True
  87.                 _GUICtrlEdit_AppendText($ECONSOLE, "Mozrepl is installed already" & @CRLF)
  88.                 For $J = 1 To $ARR[0]
  89.                     $STRING = StringInStr($ARR[$J], 'user_pref("extensions.mozrepl.autoStart", true);')
  90.                     If $STRING > 0 Then
  91.                         $FMOZREPAUTOSTART = True
  92.                         _GUICtrlEdit_AppendText($ECONSOLE, "Mozrepl is already set to auto start" & @CRLF)
  93.                         Return
  94.                     EndIf
  95.                 Next
  96.                 If $STRING = 0 Then
  97.                     $FMOZREPAUTOSTART = False
  98.                     _GUICtrlEdit_AppendText($ECONSOLE, "Mozrepl is not set to auto start" & @CRLF)
  99.                     Local $FILE = FileOpen(@AppDataDir & "\Mozilla\Firefox\Profiles\" & $DEFAULTNAME & "\" & $PREFFILE, 1)
  100.                     If Not $FILE > -1 Then
  101.                         $BOOL = FileWrite($FILE, 'user_pref("extensions.mozrepl.autoStart", true);')
  102.                         If $BOOL = 1 Then
  103.                             $FMOZREPAUTOSTART = True
  104.                             _GUICtrlEdit_AppendText($ECONSOLE, "Mozrepl is now set to auto start" & @CRLF)
  105.                             Return
  106.                         EndIf
  107.                     Else
  108.                         _GUICtrlEdit_AppendText($ECONSOLE, "Error occurred trying to open prefs.js" & @CRLF)
  109.                         _GUICtrlEdit_AppendText($ECONSOLE, "Alternately, you could open Firefox/Tools/Mozrepl then select activate on start up." & @CRLF)
  110.                         Return
  111.                     EndIf
  112.                 EndIf
  113.                 ExitLoop
  114.             EndIf
  115.         Next
  116.         If $VAR = 0 Then
  117.             $FMOZREPLINST = False
  118.             _GUICtrlEdit_AppendText($ECONSOLE, "Mozrepl not found" & @CRLF)
  119.         EndIf
  120.     EndIf
  121. EndFunc   ;==>__REPLSTATUS
  122. Func __FIREFOXEXISTS()
  123.     Local $VAR = DirGetSize(@AppDataDir & "\Mozilla\Firefox", 3)
  124.     If $VAR = -1 And @error = 1 Then
  125.         _GUICtrlEdit_AppendText($ECONSOLE, " Firefox is not installed at the directory: " & @AppDataDir & "\Mozilla" & @CRLF)
  126.         _GUICtrlEdit_AppendText($ECONSOLE, " First install Firefox" & @CRLF & " This program only supports Firefox installed on your boot drive" & @CRLF)
  127.         $FireFoxInst = False
  128.         Return $FireFoxInst
  129.     EndIf
  130.     If $VAR >= 0 Then
  131.         _GUICtrlEdit_AppendText($ECONSOLE, "Firefox is installed at the directory: " & @AppDataDir & "\Mozilla\Firefox" & @CRLF)
  132.         $FireFoxInst = True
  133.         Return $FireFoxInst
  134.     EndIf
  135. EndFunc   ;==>__FIREFOXEXISTS
  136. Func __MYEXIT()
  137.     GUIDelete($HMAINGUI)
  138.     Exit
  139. EndFunc   ;==>__MYEXIT

  • heavengrace likes this

#587 Rickname

Rickname

    Wayfarer

  • Active Members
  • Pip
  • 65 posts

Posted 16 February 2014 - 09:38 AM

Same problem as

Arclite86

 

I did EVERYTHING PERFECT :

 

Started MozRep, set it as auto start, put FF.au3 and FFEx.au3 in the Includes directory and included thme in my project, and then tested a little example script from the example menu of this UDF and same ERRORS as Arclite86 :(((
 



#588 Rickname

Rickname

    Wayfarer

  • Active Members
  • Pip
  • 65 posts

Posted 16 February 2014 - 10:31 AM

Ok I managed the above, I don't know how but somehow, BUT I have ANOTHER BIG problem ! :

 

I included the FF UDF but it still gives me "undefined function" error !
 

The funny part is, that actually it includes the file because if I put a Msgbox() function in the UDF , it runs the function so it reads the UDF but it does'nt recognises the declared functions from it globally

 

Can you explain this ??


Edited by Rickname, 16 February 2014 - 10:32 AM.


#589 BrewManNH

BrewManNH

    באָבקעס מיט קודוצ׳ה

  • MVPs
  • 9,530 posts

Posted 16 February 2014 - 02:35 PM

Post your script that isn't working, otherwise we'd be guessing what you did wrong.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to an XP machine, and I'm not going to.

 

How to ask questions the smart way!

 

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.
Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.
_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.
GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips. Latin Square password generator

 

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.


#590 SupaNewb

SupaNewb

    Seeker

  • Active Members
  • 17 posts

Posted 16 February 2014 - 07:53 PM

Test #1

AutoIt         
#cs ================================================================     Title: NewScript.au3                2/16/2014 2:03:58 PM     Author: SupaNewb     AutoIt Version: 3.3.10.2     SciTE Version 3.3.7     Mozrepl Version 1.1.2     Firefox Version 27.0.1 #ce ================================================================ #include <FF.au3> _FFStart("http://www.youtube.com/") ;Console output: >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\SupaNewb\Desktop\NewScript2.au3" /UserParams +>14:14:06 Starting AutoIt3Wrapper v.2.1.4.4 SciTE v.3.3.7.0 ;  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86    Environment(Language:0409  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86) >Running AU3Check (3.3.10.2)  from:C:\Program Files\AutoIt3 ! Au3check doesn't support input files encoded as UTF8 with BOM: C:\MyAutoit\MyIncludes\FF.au3 "C:\Users\SupaNewb\Desktop\NewScript2.au3"(12,35) : error: _FFStart(): undefined function. _FFStart("http://www.youtube.com/") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Users\SupaNewb\Desktop\NewScript2.au3 - 2 error(s), 0 warning(s) !>14:14:06 AU3Check ended. Press F4 to jump to next error.rc:2 +>14:14:06 AutoIt3Wrapper Finished.. >Exit code: 2    Time: 0.595

Test #2

AutoIt         
#cs ================================================================     Title: NewScript.au3                2/16/2014 2:04:52 PM     Author: SupaNewb     AutoIt Version: 3.3.10.2     SciTE Version 3.3.7     Mozrepl Version 1.1.2     Firefox Version 27.0.1 #ce ================================================================ #region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Run_Au3Check=n #endregion ;**** Directives created by AutoIt3Wrapper_GUI **** ;http://www.autoitscript.com/forum/topic/157309-include-errors-after-upgrading-to-33100/ #include <FF.au3> _FFStart("http://www.youtube.com/") ;Console output: >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\SupaNewb\Desktop\NewScript3.au3" /UserParams +>14:18:07 Starting AutoIt3Wrapper v.2.1.4.4 SciTE v.3.3.7.0 ;  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86    Environment(Language:0409  Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86) >Running:(3.3.10.2):C:\Program Files\AutoIt3\autoit3.exe "C:\Users\SupaNewb\Desktop\NewScript3.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop __FFStartProcess: ""C:\Program Files\Mozilla Firefox\firefox.exe" -new-window "http://www.youtube.com/"  "-repl 4242 " _FFConnect: OS: WIN_7 WIN32_NT 7601 Service Pack 1 _FFConnect: AutoIt: 3.3.10.2 _FFConnect: FF.au3: 0.6.0.1b-10 _FFConnect: IP: 127.0.0.1 _FFConnect: Port:   4242 _FFConnect: Delay:  2ms _FFConnect: Socket:     616 _FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.1; rv:27.0) Gecko/20100101 Firefox/27.0 __FFSendJavaScripts: Sending functions to FireFox .......... done _FFLoadWait: . loaded in 11ms [object XrayWrapper [object HTMLDocument]] - {flashFilesList: {...}, videoFilesList: {...}, location: {...}, logo: {...}, logoutForm: {...}, movie_player: function() {...}, masthead_child: function() {...}, ...} +>14:18:12 AutoIt3.exe ended.rc:0 +>14:18:12 AutoIt3Wrapper Finished.. >Exit code: 0    Time: 5.020

I am guessing this is the 'undefined Function error'. I had no issues until upgrading Autoit version 3.3.8.1 to version 3.3.10.2.

Strange though, if I paste the entire UDF (FF.au3) in any of my scripts then it works like a charm(without turning off Au3check).

 



#591 Danp2

Danp2

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 604 posts

Posted 16 February 2014 - 11:27 PM

Test #1

>Running AU3Check (3.3.10.2)  from:C:\Program Files\AutoIt3 ! Au3check doesn't support input files encoded as UTF8 with BOM: C:\MyAutoit\MyIncludes\FF.au3

 

This is your issue. Try opening and saving the file with a different encoding method.


  • heavengrace likes this

#592 Arclite86

Arclite86

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 17 February 2014 - 12:47 PM

I've now installed the 3.3.8.1 version because i cant get the 3.3.10.2.version set to work, i am still getting a an error but its not that big any more there seems to be a problem with the mozilla firefox location:

 

This is where the mozilla firefox is located:

 

20i8745.jpg

 

 

And this is the error i get:

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\joesoef pc\Desktop\autoit\firefox.au3" /UserParams     +>13:41:36 Starting AutoIt3Wrapper v.2.1.4.4 SciTE v.3.3.7.0 ;  Keyboard:00020409  OS:WIN_81/  CPU:X64 OS:X64    Environment(Language:0413  Keyboard:00020409  OS:WIN_81/  CPU:X64 OS:X64) >Running AU3Check (1.54.22.0)  from:C:\Program Files (x86)\AutoIt3 +>13:41:36 AU3Check ended.rc:0 >Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\joesoef pc\Desktop\autoit\firefox.au3"     --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop __FFStartProcess ==> General Error: Error reading registry entry for FireFox. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\*CurrentVersion*\Main\PathToExe Error from RegRead: 1 +>13:41:36 AutoIt3.exe ended.rc:0 +>13:41:36 AutoIt3Wrapper Finished.. >Exit code: 0    Time: 0.636

I dont know exactly how to solve this, should I create a new map in the "HKEY_LOCAL_MAHCINE\SOFTWARE\Wow6432Node\Mozilla Firefox" named *CurrentVersion* like its been shown in the error and than create  a Main map?  How can i solve this so autoit can locate firefox?



#593 Danp2

Danp2

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 604 posts

Posted 17 February 2014 - 01:40 PM

Somewhere along the way, a backslash has been accidentally removed from the ff.au3 code. To solve the issue, change this line:

       Local $sFFExe = RegRead($sHKLM & "" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe")

to:

       Local $sFFExe = RegRead($sHKLM & "\" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe")


#594 Arclite86

Arclite86

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 17 February 2014 - 03:19 PM

 

Somewhere along the way, a backslash has been accidentally removed from the ff.au3 code. To solve the issue, change this line:

       Local $sFFExe = RegRead($sHKLM & "" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe")

to:

       Local $sFFExe = RegRead($sHKLM & "\" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe")

thank you so much, it worked.. finally



#595 tommytx

tommytx

    Prodigy

  • Active Members
  • PipPipPip
  • 185 posts

Posted 19 February 2014 - 07:38 PM

wow! that was exactly what was wrong with mine alos... Thanks



#596 Arclite86

Arclite86

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 19 March 2014 - 08:26 AM

Firefox doesn't work hidden

I have tried this

_FFStart("https://website.com", False, Default, False, True)

and this

_FFStart("https://website.com", Default, Default, True)

But it is not working , PLease Help!



#597 Danp2

Danp2

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 604 posts

Posted 19 March 2014 - 12:43 PM

As mentioned in the other thread, you need to update the UDF by changing the two instances of "[CLASS:MozillaUIWindowClass]" to "[CLASS:MozillaWindowClass]".



#598 pleasehelp

pleasehelp

    Seeker

  • New Members
  • 1 posts

Posted Today, 12:34 AM

Hello everyone,

 

Can somone give me a code example to show me how to simulate a  mouse right click on a html element (image,..etc)?

 

Also, need an code example which get html element postion related to screen.

 

Thanks


Edited by pleasehelp, Today, 12:35 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users