Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/15/2014 in all areas

  1. Try this, straight from china http://www.autoitx.com/archiver/tid-4897.html
    2 points
  2. Again untested. Takes all the text, assigns it into a single variable and writes the text to a new Word document. #include <Word.au3> ; Store all cells in a single variable Global $sText For $iRow = 1 to UBound($aResult, 1) - 1 ; Loop through all the rows For $iCol = 0 to UBound($aResult, 2) - 1 ; Loop through all the Columns $sText = $sText & $aResult[0][$iCol] & @CRLF & $aResult[$iRow][$iCol] & @CRLF & @CRLF Next Next ; Create application object Local $oRange, $oWord = _Word_Create() If @error Then Exit MsgBox($MB_SYSTEMMODAL, "Word UDF", _ "Error creating a new Word application object." & @CRLF & "@error = " & @error & ", @extended = " & @extended) ; Open the test document Local $oDoc = _Word_DocAdd($oWord) If @error Then Exit MsgBox($MB_SYSTEMMODAL, "Word UDF", _ "Error creating new document." & @CRLF & "@error = " & @error & ", @extended = " & @extended) ; Move the start of the range to the next paragraph and extend the end by 2 words $oRange = _Word_DocRangeSet($oDoc, -1) If @error Then Exit MsgBox($MB_SYSTEMMODAL, "Word UDF", _ "Error setting range." & @CRLF & "@error = " & @error & ", @extended = " & @extended) ; Insert text before the range $oRange.InsertBefore($sText)
    1 point
  3. You've posted limited info, so as I stated earlier I'm not sure that I understand the issue. This is concerning... do you have Mozrepl installed and running? I believe this is the expected behavior. Thanks!
    1 point
  4. Hey, every body, When I go to https://www.autoitscript.com/site/autoit-script-editor/downloads/ and Download SciTE4AutoIt3.exe, The avast don't allow me download. I must Disable It, and I download success.Then I install it. I use it in disable avast, It' oke. But, when I Enable avast, again, It's delete tools in SciTE, So why the SciTE has been affected. It 's developed for a long time What I can do now? Uninstall Avast? Thanks,
    1 point
  5. Not sure that I follow your description of the issue. This doesn't work? $oButton = _FFXPath( "//input[@id='Animes']" ) _FFClick($oButton)
    1 point
  6. Jon

    AutoIt v3.3.12.0 Released

    AutoIt v3.3.12.0 has been released. Thanks to everyone involved - there's been a lot of effort in the help file, UDF library and build scripts by many under-appreciated individuals. Download it here. Complete list of changes: History
    1 point
  7. Actually, and not to knock you Melba, but I believe the A3X compiled format isn't documented in enough places, which can cause some to totally not understand it. Thats probably not exactly what aminfear meant, but I remember not knowing at first that A3X is both an option to use as a compile-to target and also the embedded resource type (or overlay, in previous versions) in an AutoIt executable.
    1 point
  8. File + Process Imports/Exports Information UDFs Forwarder String Support, C++ Name Undecorating Added!! (Extreme case of string forwarding from wsock32.dll example in this post) This UDF gets Function Imports and Exports for any Windows PE file (.DLL, .EXE), both 32-bit and 64-bit (unlike most programs out there), and from either a 32-bit or 64-bit Process. I created this due to my frustration with other programs either working only *some* of the time, or having a common inability to read PE32+ (x64) file format tables properly. There's just two functions in the main UDF - _FileGetWinPEImports or _FileGetWinPEExports. The bundled TestImportExportsList program lets you explore files on your system. *Newly included are: _ProcessGetWinPEImports, _ProcessGetWinPEExports and TestProcessImportExportsList program (requires my Process Functions UDF). NOTE: *Compressed* executable files will only give the Import information for the 'decompressor'. The only way to get the compressed executable's Import information is to decompress the executable. Anyway, enjoy my hard work. Either read on for more information about some of the features, or see below for the License agreement and Download link. Information on 'Virtual Offset of Thunk': These address offsets you see are offsets from the base of the .DLL or .EXE file (uncompressed only!), where the actual function location of an 'Import' gets placed. All calls to these functions load addresses from these Thunk locations in order to correctly place a call to the right DLL function. (This is totally different than the old Import fixup location lists of earlier pre-NT systems). Technically, you could overwrite these Thunks with addresses to your own functions, but this is a dangerous thing to do. Its a neat tool to have though. Forwarder functions? An explanation: The whole 'DLLNAME.Functionname' string might be confusing to you, but here's an explanation of why an address can not and should not be returned. To better understand all this, grab a copy of DLL Export Viewer, (which doesn't report Relative/Function addresses correctly for Forwarded functions) and then follow along: *update: as of v1.50, DLL Export Viewer now reports forwarder string info (I was the one that reported the bug heh) Okay, open up DLL Export Viewer and look at (for this example) KERNEL32.DLL - lets pick 'HeapFree', a known Forwarded function. DLL Export Viewer reports the following (on XP SP3):Relative Address: 0x0000910c, 'Loaded' address: 0x7c80910c. *Neither* is the case, though - 0x0000910c is in fact just the virtual address of the forwarder string! Now, with my Exports function, you'll find that 'HeapFree' is reported (correctly) as a Forwarder string. What you'll see then is 'NTDLL.RtlFreeHeap'. What does that mean? It means that: HeapFree is not a part of KERNEL32.DLL (and hasn't been for a while),When that function is called or the address retrieved via 'GetProcAddress', the function 'RtlFreeHeap' in NTDLL.DLL is the function that's actually called (or returned as an address). Hopefully the 'DLLNAME.FunctionName' structure of a Forwarder string is starting to make sense now?The address you get when you do 'GetProcAddress' does *not* correspond to what you see in DLL Export Viewer - in fact, 'HeapFree's reported address lies entirely OUTSIDE of kernel32.dll's memory space - pointing instead inside of NTDLL.DLL, at (guess what?): RtlFreeHeap.So, on XP SP3, looking up 'HeapFree' with GetProcAddress, you get: 0x7C90FF2D. Doesn't match what was reported with DLL Export Viewer AT ALL. However - go back, and now look at NTDLL.DLL with DLL Export Viewer, and at function 'RtlFreeHeap' (following the logic of the Forwarder Function string). What is reported for RtlFreeHeap? Relative Address: 0x0000ff2d, 'Loaded' address: 0x7c90ff2d. See now how it lines up with what was reported via GetProcAddress for 'HeapFree' in KERNEL32.DLL? So, there you have it in a nutshell - Forwarder functions are functions 'rerouted' to another DLL. The DLL's that are being rerouted to are either: A.) Pre-loaded by the system (Important DLL's like NTDLL.DLL, KERNEL32.DLL, USER32.DLL, GDI32.DLL, etc - are all permanently loaded)B.) Loaded upon a program's execution if the function is in its 'Imports' list, orC.) Loaded upon a call to GetProcAddress. To see how this works clearly, list the modules that are loaded (my Process Functions UDF GUI can do this for you), then call GetProcAddress for 'GetServiceW' from WSOCK32.DLL, and then re-list the modules again. You'll see a new module loaded up - MSWSOCK.DLL (the location of the forwarder function). Wa-la, forwarder is set up.Ascend4nt's AutoIT Code License agreement:While I provide this source code freely, if you do use the code in your projects, all I ask is that: If you provide source, keep the header as I have put it, OR, if you expand it, then at least acknowledge me as the original author, and any other authors I creditIf the program is released, acknowledge me in your credits (it doesn't have to state which functions came from me, though again if the source is provided - see #1)The source on it's own (as opposed to part of a project) can not be posted unless a link to the page(s) where the code were retrieved from is provided and a message stating that the latest updates will be available on the page(s) linked to.Pieces of the code can however be discussed on the threads where Ascend4nt has posted the code without worrying about further linking. Download the ZIPs from my Site UPDATES:
    1 point
×
×
  • Create New...