Jump to content

Recommended Posts

Posted

Want to call .net func _Help::ShowHelpIndex.Here is the link in msdn:https://msdn.microsoft.com/en-us//library/system.windows.forms.help.showhelpindex.

I wrote the script below:

$dll = DllOpen("C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll")
$result = DllCall($dll, "none", "ShowHelpIndex","HWND", 0,"wstr","D:\Program Files\AutoIt3\AutoIt3CHS.chm")
_check_result()
DllClose($dll)

Func _check_result()
        If @error Then
                ConsoleWrite(">--|error:=" & @error & "|--<")
                ConsoleWrite(@LF)
        Else        
                ConsoleWrite(">--|$result:=" & $result[0] & "|--<")
                ConsoleWrite(@LF)
        EndIf        
EndFunc

Can someone give some advices?

tks in advance

Posted

I'm always curious to see how it is that new users seeking knowledge does not look it here.

 

@oceanwind Check above mentioned and the following link:

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...