All Activity

This stream auto-updates   

  1. Past hour
  2. Today
  3. Tried to move your 1469 lines of code into a codebox but that fails for some reson, so attached it You really need to spent a little more time to explain your issues as wading through that many lines would make it pretty impossible. Jos source.au3
  4. Use the ID (handle) of your GUI. With all the testing I've done, I have never had this problem or error. Mind if I ask what kind of data is being received? I would need some way to reproduce it also. What version of Autoit are you using? And, 32 or 64 Bit? Not sure if I understand what you want to do here. The browser initiates the connection to the remote site. Once connected, the data is passed back and forth encrypted in such a way that only the browser and the remote site can decipher -- unless you are using it some other way.
  5. Not really my area of expertise. Jos
  6. You are welcome Have a look to this link:
  7. I replicated the issue, could this be a question for developers? @Jos Seeing as no one has replied.
  8. I have many instances of this running and when a pop-up appears there is many at the same time so the little script closes them all. What would be the ideal scenario? The things you would like the script to do?
  9. Thanks, works a treat. Where can I find a list of all the properties of the DOM object that I can access. I did see a link here a few years ago but it's out of date now
  10. My code _WD_NewTab: _WDStartup() $sSession = _WDCreateSession($sDesiredCapabilities) _WD_NewTab($sSession,"") Error in Console: If $iErr = $_WD_ERROR_Success Then If ^ ERROR
  11. I can select 1 file at a time to upload but not able to select multiple files at once using the bulk upload feature
  12. use $oIE.visible = True to make the browser visible. #include <ie.au3> Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase $oIE = _IECreate("",0,0) $oSearchBox = _IEGetObjById($oIE, "lst-ib") $oSearchBox.innertext = "AutoIT" $oForm = _IEFormGetObjByName($oIE,"f") _IEFormSubmit($oForm) $oIE.visible = True ; <-- this will show the browser ; WinSetState("Google","",@SW_SHOW)
  13. did you ever try something like this: Global Enum _ $_WD_ERROR_Success = 0, _ ; No error $_WD_ERROR_GeneralError, _ ; General error $_WD_ERROR_SocketError, _ ; No socket $_WD_ERROR_InvalidDataType, _ ; Invalid data type (IP, URL, Port ...) $_WD_ERROR_InvalidValue, _ ; Invalid value in function-call $_WD_ERROR_SendRecv, _ ; Send / Recv Error $_WD_ERROR_Timeout, _ ; Connection / Send / Recv timeout $_WD_ERROR___UNUSED, _ ; $_WD_ERROR_NoMatch, _ ; No match for _WDAction-find/search _WDGetElement... $_WD_ERROR_RetValue, _ ; Error echo from Repl e.g. _WDAction("fullscreen","true") <> "true" $_WD_ERROR_Exception, _ ; Exception from web driver $_WD_ERROR_InvalidExpression, _ ; Invalid expression in XPath query or RegEx $_WD_ERROR_COUTNER ; Global Const $aWD_ERROR_DESC[$_WD_ERROR_COUTNER] = [ _ "Success", _ "General Error", _ "Socket Error", _ "Invalid data type", _ "Invalid value", _ "Timeout", _ "No match", _ "Error return value", _ "Error TCPSend / TCPRecv", _ "Webdriver Exception", _ "Error TCPSend / TCPRecv", _ "Invalid Expression" _ ] ;~ $sMsg = $sWhere & " ==> " & $sOut & @CRLF $sMsg = $sWhere & " ==> " & $aWD_ERROR_DESC[$i_WD_ERROR] & @CRLF
  14. Maybe executing so many at once causes a deadlock somewhere, yes
  15. Sure but as you know the devil is often in the details. OTOH somethingelse is maybe the source of OP's issue, AV or something else exterior to AutoIt stuff.
  16. Hi I'm trying to: 1) Open a hidden browser session 2) Do some stuff in the background 3) Make the hidden window visible This is my code: Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase $oIE = _IECreate("",0,0) $oSearchBox = _IEGetObjById($oIE, "lst-ib") $oSearchBox.innertext = "AutoIT" $oForm = _IEFormGetObjByName($oIE,"f") _IEFormSubmit($oForm) WinSetState("Google","",@SW_SHOW) It dosen't work The last line does make the window visible but it is an empty greyed out box that disappears as soon as I click on it. I have a sort of workaround that hides the browser window as soon as I have created it which works fine: $oIE = _IECreate("") WinSetState("Google","",@SW_HIDE) . . . WinSetState("Google","",@SW_SHOW) But this looks a bit pants as the newly created window flashes on then off of the screen. Am I using the wrong method to make the browser window visible? Thanks
  17. Thanks for these functions ripdad whats for the $hGUI parameter in _WSAAsyncGetHostByName() didn't get to test it out yet, can it be defaulted to $hGUI = AutoItWinGetTitle() and it should work like that ? with what i have tested using: all works with improved speed all over except _WSA_TCPRecv gives me the WSAEFAULT error --> didn't yet get to try and figure a way to fix this .. One general question : concerning this HTTPS-everywhere plugin from HTTPS:// anyone by chance knows how to deal with the incoming data that appears to be encrypted coming from a browser's Socket that happens to be using this plugin ? Thanks again
  18. The "compiled script" is the interpreter binary packed with the tokenized script, so agree it could take a little longer in case there are many included files to pickup, but that is only at startup, but other than that, the processes are more or less comparable. I just tested this way to compare the memory footprint for AutoIt3 and the compiled script and they were more or less the same as expected: For $x = 1 to 10 run('"C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "atestshell.au3"',@ScriptDir) Next For $x = 1 to 10 run("atestshell.exe",@ScriptDir) Next Jos
  19. Thanks to all, using the link iamtheky's provided and following the example of using many (3) string variables instead of one long string, it's now working as expected. Why it changed to begin with and why it now works, I don't know.....just glad it's solved.
  20. There are significant differences: the stand-alone interpretor has a large footprint by itself, hence N times its actual footprint, has to fetch N times all the includes the source requires (I agree there seem to be none in the OP example but there will be some in any practical-use source), etc.
  21. I don't think there is any pro or con to it to be honest as to me they are the same. Jos
  22. I still wonder what is the rationale to run any number of source scripts thru AutoIt3.exe instead or running the as many instances of the compiled .EXE. Is there any?
  23. This example runs 100 concurrent AutoIt3 processes without any issues on my laptop and all AutoIt3 processes cleanly close after 10 seconds: #include<File.au3> $Filename = _TempFile(@ScriptDir,"~" ,".au3") ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $Filename = ' & $Filename & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console FileWriteLine($filename,"Sleep(10000)") FileWriteLine($filename,"Exit") For $x = 1 to 100 run('"C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "' & $filename & '"',@ScriptDir) Next sleep(1000) FileDelete($filename) Jos
  24. You might use a dirty workaround... create a zero-width column 0 and set it at the last column position #include <GuiConstantsEx.au3> #include <GuiListView.au3> #include <GuiImageList.au3> #include <WindowsConstants.au3> _Main() Func _Main() Local $hGui, $listview, $hImage Local $iLV_EXStyle_NoChecks = BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES, $LVS_EX_DOUBLEBUFFER, $LVS_EX_HEADERDRAGDROP) $hGui = GUICreate("Listview Test With Icons", 400, 300) $listview = GUICtrlCreateListView("|Col 1|Col 2|Col 3", 2, 2, 394, 268, BitOR($LVS_REPORT, $LVS_SHAREIMAGELISTS)) _GUICtrlListView_SetExtendedListViewStyle($listview, $iLV_EXStyle_NoChecks) GUISetState() ; Create the image list $hImage = _GUIImageList_Create(16, 16, 5, 3) _GUIImageList_AddIcon($hImage, @SystemDir & "\shell32.dll", 165) _GUICtrlListView_SetImageList($listview, $hImage, 1) ; Set the order so the first column is moved to the end _GUICtrlListView_SetColumnWidth($listview, 0, 0) _GUICtrlListView_SetColumnOrder($listview, "1|2|3|0") ; Add the items GUICtrlCreateListViewItem("|Item1|Item2|Item3", $listview) GUICtrlCreateListViewItem("|Item4|Item5|Item6", $listview) ; Set an icon for just the first item _GUICtrlListView_SetItemImage($listview, 0, 0, 2) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main
  25. I have successfully run multiple copies of the same AutoIt script shelled from a parent application with different parameters. The most I have run is 32 on a server with 32 cores, although generally it is in the range 8 to 12 on my local workstation. So what you are trying to do is perfectly possible. Some things to try 1 Try adding a sleep() for a random length of time or a loop doing something a few times before the Exit 0, to give the script some actual work to do. It may be that your test script is too simple 2 Try starting with launching a smaller number of scripts e.g. 5 to see if it that works and gradually work up 30. 3 Keep a watch on the CPU utilisation. I may be that 30 is just too many for your hardware. 4 Try slowing the speed at which your Java application can launch a new script by adding a short delay after this line Runtime.getRuntime().exec("cmd /c AutoIt3.exe test.au3")
  1. Load more activity