Jump to content

supperfake

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by supperfake

  1. yes. I know. But that doesn't matter to me. For some reason I still want to use mozrepl with old version firefox
  2. Hi everybody Recently addon mozrepl firefox has been deleted. But I have some software run by this software. I haven't saved this addon yet. Can anybody share me this addon? Thanks a lot
  3. Thank FrancescoDiMuro I have fixed my code _SQLite_Startup ("Sqlite3.dll", False, 1) Local $DB_1=_SQLite_Open(path_to_sqlite) If _SQLite_Query($DB_1,"SELECT * FROM moz_places;", $hQuery)==$SQLITE_OK Then While _SQLite_FetchData($hQuery, $aRow, False, False) = $SQLITE_OK ; Read Out the next Row ConsoleWrite( $aRow[0] & @CRLF) WEnd Else //do something EndIf And Done .......
  4. Hello guys I have a problem with conneting sqlite. This is my code _SQLite_Startup() Local $DB_1=_SQLite_Open("C:\abc\myfile.sqlite") if IsObj($DB_1) Then MsgBox(0,0,0) Local $hQuery,$aRow _SQLite_Query($DB_1,"SELECT id FROM product;", $hQuery) _SQLite_FetchData($hQuery, $aRow) MsgBox(0,0,Ubound($aRow)) And it return $aRow=null. No element is in array $aRow. Where was I wrong?
  5. I try function _WD_Attach. This is my code #include "wd_core.au3" #include "wd_helper.au3" Local $hWnd = WinGetHandle("[CLASS:Chrome_WidgetWin_1]") Local $url = "http://google.com/" Local $sDesiredCapabilities SetupChrome() _WD_Startup() Local $Session=_WD_Attach($hWnd,"") Sleep(2000) _WD_Navigate($Session, $url) Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path=' & @ScriptDir & '\chrome.log') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args":["start-maximized", "disable-infobars"] }}}}' EndFunc but it does not work. I was wrong somewhere. Can you give me a example with _WD_Attach?
  6. How can I run firefox in hidden. My version firefox is 50.0 And version udf is 0.6.0.2b. My code simple is _FFStart("https://website.com", default, True, True) Then firefox Showed up. And after that, it was hidden. Has _FFStar in hidden activity like _IECreate in hidden? Or another solution? Thank you ...
  7. I have solved this problem. I have got handle of Library by the code above. But function ISObj don't work....
  8. Hello guys I have a problem with get handle a window. I have simple code here: Run("C:\Window\Firefox\firefox.exe") ;this is location firefox in my computer $hWnd =WinWait("[CLASS:MozillaWindowClass]", "", 10) Sleep(2000) ControlSend($hWnd,"","","{CTRLDOWN}{SHIFTDOWN}B{CTRLUP}{SHIFTUP}",0) ;open window Library Sleep(2000) $hWnd2 =WinWait("Library", "", 10) if IsObj($hWnd2) Then MsgBox(0,0,0) This code can't get handle which have title is Library. So autoit doesn't show MsgBox(0,0,0). I try function Wingethandle but it return same result. I can not solve this problem. Do you help me, please?
  9. Thank for udf I have simple code here: #include "wd_core.au3" Local $url = "http://google.com/" Local $sDesiredCapabilities SetupChrome() _WD_Startup() $Session = _WD_CreateSession($sDesiredCapabilities) Sleep(2000) _WD_Navigate($Session, $url) _WD_Shutdown() Func SetupChrome() _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path=' & @ScriptDir & '\chrome.log') $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args":["start-maximized", "disable-infobars"] }}}}' EndFunc When I run this code, New profile chrome open. So I can't see account gmail and browser history. But I want keep it. How can i do this? Thank you ..
  10. Thank you for feedback. Your way is to track user behavior. But tool can completely capture real user. Any other way?
  11. I have a question. This is "What difference between click by mouse and script click in IE.au3 or some script such as mouseclick, control click ? ". How do I find out the difference on a website which I own? Because user can cheat by many tool auto sush as imacros, or IE.au3, FF.au3, and a lot of script in autoit. Can I check it? If the answer is yes,  then how? Is there any technology that can check this? what do you thinh about this? Thank for helping
  12. I run your code. But nothing happens. And no error show in contents of the output panel after running your code. Maybe I should use WebDriver instead of firefox.au3. Thank you
  13. I see the problem in ff.au3 Func __FFStartProcess($sURL = "about:blank", $bNewWin = False, $sProfile = "default", $bNoRemote = False, $bHide = False, $iPort = 4242, $iTimeOut = 30000) Local Const $sFuncName = "__FFStartProcess" Local $PID = -1 Local $sNoRemote = "", $sNewWin Local $sProcName = $_FF_PROC_NAME If $sProfile = "default" Then $sProfile = '' Else $sProfile = ' -P "' & $sProfile & '"' EndIf If $bNoRemote Then $sNoRemote = "-no-remote" If $bNewWin Then $sNewWin = "-new-window" $sURL = '"' & $sURL & '"' If $iTimeOut < 2000 Then $iTimeOut = 2000 Local $sHKLM = 'HKEY_LOCAL_MACHINE\SOFTWARE\' If @OSArch <> 'X86' Then $sHKLM &= 'Wow6432Node\' $sHKLM &= 'Mozilla\Mozilla Firefox' ------------------------------------------------------------------------- Local $sFFExe = RegRead($sHKLM & "\" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe") If @error Then SetError(__FFError($sFuncName, $_FF_ERROR_GeneralError, "Error reading registry entry for FireFox." & @CRLF & _ $sHKLM&"\*CurrentVersion*\Main\PathToExe" & @CRLF & _ "Error from RegRead: " & @error)) ----------------------------------------------------------------------------- Return 0 EndIf I use firefox portable . So it show err "Error reading registry entry for FireFox". What do I need to do to resolve it?? I see the problem in ff.au3 Func __FFStartProcess($sURL = "about:blank", $bNewWin = False, $sProfile = "default", $bNoRemote = False, $bHide = False, $iPort = 4242, $iTimeOut = 30000) Local Const $sFuncName = "__FFStartProcess" Local $PID = -1 Local $sNoRemote = "", $sNewWin Local $sProcName = $_FF_PROC_NAME If $sProfile = "default" Then $sProfile = '' Else $sProfile = ' -P "' & $sProfile & '"' EndIf If $bNoRemote Then $sNoRemote = "-no-remote" If $bNewWin Then $sNewWin = "-new-window" $sURL = '"' & $sURL & '"' If $iTimeOut < 2000 Then $iTimeOut = 2000 Local $sHKLM = 'HKEY_LOCAL_MACHINE\SOFTWARE\' If @OSArch <> 'X86' Then $sHKLM &= 'Wow6432Node\' $sHKLM &= 'Mozilla\Mozilla Firefox' ------------------------------------------------------------------------- Local $sFFExe = RegRead($sHKLM & "\" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe") If @error Then SetError(__FFError($sFuncName, $_FF_ERROR_GeneralError, "Error reading registry entry for FireFox." & @CRLF & _ $sHKLM&"\*CurrentVersion*\Main\PathToExe" & @CRLF & _ "Error from RegRead: " & @error)) ----------------------------------------------------------------------------- Return 0 EndIf I use firefox portable . So it show err "Error reading registry entry for FireFox". What do I need to do to resolve it??
  14. Sorry, Im using firefox portable 50.0 My simple code is : #Include <ff.au3> _FFStart("http://abc.com") Then it show me error as follows: __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_7 WIN32_NT 7601 Service Pack 1 _FFConnect: AutoIt: 3.3.14.5 _FFConnect: FF.au3: 0.6.0.2b _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect: Socket: 536 _FFConnect: Browser: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0 __FFSendJavaScripts: Sending functions to FireFox .......... done _FFLoadWait: . loaded in 15ms [object HTMLDocument] - {location: {...}, getElementsByName: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, execCommand: function() {...}, ...} +>02:56:56 AutoIt3.exe ended.rc:0 +>02:56:56 AutoIt3Wrapper Finished. >Exit code: 0 Time: 2.27 I don't understand about that. Help me...
  15. I tried using firefox 52 and 50. But the _FFStart function does not automatically open a website like IECreate. Why it does not work? Was this function broken?  
  16. I use firefox 55.0.2 (64bit) So What version firefox should I use ? Thank you
  17. I wonder how to use FF.au3 in Firefox Portable. Do you know how to do that?
×
×
  • Create New...