simple example of using file dll

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
asad41163
Posts: 268
Joined: 29 Jul 2014, 14:31

simple example of using file dll

06 Feb 2017, 08:57

Hi guys

Possible simple example of using file dll, please
thanks in advance
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: simple example of using file dll

06 Feb 2017, 09:00

[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
asad41163
Posts: 268
Joined: 29 Jul 2014, 14:31

Re: simple example of using file dll

06 Feb 2017, 10:32

thanks jNizM
but, I want please, very easy examlple.
I am Beginner
thanks in advance
User avatar
Grendahl
Posts: 170
Joined: 30 Sep 2013, 08:21

Re: simple example of using file dll

06 Feb 2017, 10:34

As simple as it gets...

Code: Select all

;********** auto-execute section **********
DllCallMsgBox("This text is from a DllCall MsgBox","This is the MsgBox Title","0x00000000L")
return



;********** functions **********
DllCallMsgBox(text, title, options="0x00000000L") {
	;For MessageBox Options, See MSDN Page = https://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx
	DllCall("MessageBox","Uint",0,"Str",text,"Str",title,"Uint",options)	
}
Last edited by Grendahl on 06 Feb 2017, 11:38, edited 2 times in total.
asad41163
Posts: 268
Joined: 29 Jul 2014, 14:31

Re: simple example of using file dll

06 Feb 2017, 11:10

Hi guys
thanks Grendahl,
but when I run the scripet by SciTE4AutoHotkey
it gave me this:
>"C:\Program Files\AutoHotkey\AutoHotkey.exe" /ErrorStdOut "D:\AHK\dll simple.ahk"
D:\AHK\dll simple.ahk (3) : ==> Call to nonexistent function.
Specifically: NetGetJoinInformation()
>Exit code: 2 Time: 0.02633
User avatar
Grendahl
Posts: 170
Joined: 30 Sep 2013, 08:21

Re: simple example of using file dll

06 Feb 2017, 11:37

Sorry... let me re-paste the code.
I'll edit my other post
asad41163
Posts: 268
Joined: 29 Jul 2014, 14:31

Re: simple example of using file dll

06 Feb 2017, 11:44

not at all
I appreciate your help me
thanks in advance

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, Descolada, Oblomov228 and 169 guests