Jump to content

Search the Community

Showing results for tags 'pointer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 5 results

  1. welcome I need help dealing with a C++ DLL Specify that I need help with how to use this function struct libusb_device; typedef struct libusb_context libusb_context; ssize_t LIBUSB_CALL libusb_get_device_list(libusb_context *ctx,libusb_device ***list); My problem is how to deal with "libusb_device ***list" my code $libusb_device = DllStructCreate("PTR") Func libusb_init() $Var = DllCall($libusb0, "ptr", "libusb_init",'ptr',$_libusb_device_handle_Ptr) If @error Then Return False Return $Var[1] EndFunc Func libusb_get_device_list() MsgBox(0,VarGetType($_libusb_device_handle_Ptr),$_libusb_device_handle_Ptr) $Var = DllCall($libusb0, "int", "libusb_get_device_list","ptr",$_libusb_device_handle_Ptr,"ptr*",POINTER(POINTER($libusb_device))) $Error = @error If $Error Then Return False MsgBox(0,VarGetType($Var),$Error&@CRLF&$Var) _ArrayDisplay($Var) Return $Var[1] EndFunc Thank you iLibUSB.dll iLibUSB_32.dll libusb.h
  2. I want to use the winsock overlapped/completion routine method of i/o, but how do I get the pointer to my user function. I know it is possible because when using the old method of windows messages, the user function name was used instead of a pointer.
  3. Hey, i'm working with a dll which comes with Windows 10 (Pro x64) called dismapi.dll, which is located under C:\Windows\system32\dismapi.dll. I tested some of it's functions with my compiled script on Windows 10 (x86) and it worked properly, but when i run my script on my x64 system with directive set, it doesn't work anymore (AutoIT breaks on line 1255 in DISM.au3). Without this directive it works. Is there something i have to change to get it work? Thanks for help...(You can use my attach. If you use WIndows 10, it will work directly, on Windows 8 you might have to adjust the dism api path ($ghdismapi) in DISM.au3. On Windows 7, you will need Windows ADK to get DISM.) _DLLStructDisplay.au3 is only for debug. https://msdn.microsoft.com/de-de/library/windows/desktop/hh825837.aspx Misc.au3 _DLLStructDisplay.au3 DismConstants.au3 DismExample.au3 DISM.au3
  4. My end goal is to get the caret position in microsoft word and turn it into an absolute x/y screen coordinate. I'm trying to turn some code from C++ to autoit, found here https://groups.google.com/d/msg/microsoft.public.word.vba.general/pKq4PsqD3cM/yDukAS5Bk3cJ And I'm stuck when trying to call.Window.GetPoint Method (Word) https://msdn.microsoft.com/EN-US/library/office/ff836626.aspx I tried calling it like this: #include <MsgBoxConstants.au3> #include <Word.au3> #include <Array.au3> ; Create application object Local $oWord = _Word_Create() If @error Then Exit MsgBox($MB_SYSTEMMODAL, "Word UDF: _Word_DocAttach Example", _ "Error creating a new Word application object." & @CRLF & "@error = " & @error & ", @extended = " & @extended) ; ***************************************************************************** ; Attach to the active doc ; ***************************************************************************** Local $oDoc = _Word_DocGet ( $oWord , 0 ) Local $oErrorHandler = ObjEvent("AutoIt.Error", "_ErrFunc") ;//position dialog relative to word insertion point (caret) $left = 0 $top = 0 $width = 0 $height = 0 $r = $oDoc.Application.Selection.Range $w = $oDoc.ActiveWindow $w.GetPoint( $left, $top, $width, $height, $r ); ConsoleWrite("left "&$left&" top "&$top&@CRLF) And I keep getting this error: New AutoIt v3 Script.au3 (27) : ==> COM Error intercepted ! err.number is: 0x800706F4 err.windescription: A null reference pointer was passed to the stub. err.description is: err.source is: err.helpfile is: err.helpcontext is: err.lastdllerror is: 0 err.scriptline is: 27 err.retcode is: 0x00000000 left 0 top 0How do I call it properly?
  5. I am searched in CE Forum and Google but i could not find any solution.I am waiting your helps. EAX=0002D3C0 EBX=00000001 ECX=085D0000 EDX=138EF288 ESI=000000C0 EDI=138EF000 EBP=00000007 ESP=0053EA0C EIP=684F29C5 Probable base pointer =085D0000 684F29BD - add eax,eax 684F29BF - add eax,eax 684F29C1 - cmp [ecx+eax+04],ebx 684F29C5 - jna NPSWF32_11_2_202_233.dll+4229A4 684F29C7 - mov edx,[esp+14] Problem was : [ecx+eax+04] which is my offset ? and is this last pointer ? If this is the last pointer , why it isn't green ? Thanks to AutoIT Forum. Sorry for my bad expression.
×
×
  • Create New...