Why do you recommend c#? I know that c# is incompatible with AutoHotkey.
At first, I also created a dll file with c#, but dll file made by c# is not called by dllcall function in Autohotkey.
So I tried a simple test to call very simple C# dll file that have a function that value of return is String variable of "abcdef12345"
then I called a my dll file by means of dllcall function in Autohotkey but it is not called
it is my dll file script for test
Code: Select all
namespace Mydll
{
public class MyClass
{
public string MyFunct()
{
string res = "0E154324D324321"; //I made a very simple function for testing purpose
return res;
}
}
}
Below are the ways I tried to call my dll file
dllcall("Mydll.dll\ScreenShot")
dllcall("Mydll.dll\ScreenShot","Str")
dllcall("Mydll.dll\ScreenShot","Cdecl Str")
dllcall("Mydll.dll\ScreenShot","Ptr")
dllcall("Mydll.dll\ScreenShot","Cdecl Str")
dllcall("Mydll.dll\ScreenShot","AStr")
dllcall("Mydll.dll\ScreenShot","WStr")
dllcall("Mydll.dll\ScreenShot","Cdecl AStr")
dllcall("Mydll.dll\ScreenShot","Cdecl WStr")
Why do you recommend c#? I know that c# is incompatible with AutoHotkey.
At first, I also created a dll file with c#, but dll file made by c# is not called by dllcall function in Autohotkey.
So I tried a simple test to call very simple C# dll file that have a function that value of return is String variable of "abcdef12345"
then I called a my dll file by means of dllcall function in Autohotkey but it is not called
it is my dll file script for test
[code]
namespace Mydll
{
public class MyClass
{
public string MyFunct()
{
string res = "0E154324D324321"; //I made a very simple function for testing purpose
return res;
}
}
}
[/code]
Below are the ways I tried to call my dll file
dllcall("Mydll.dll\ScreenShot")
dllcall("Mydll.dll\ScreenShot","Str")
dllcall("Mydll.dll\ScreenShot","Cdecl Str")
dllcall("Mydll.dll\ScreenShot","Ptr")
dllcall("Mydll.dll\ScreenShot","Cdecl Str")
dllcall("Mydll.dll\ScreenShot","AStr")
dllcall("Mydll.dll\ScreenShot","WStr")
dllcall("Mydll.dll\ScreenShot","Cdecl AStr")
dllcall("Mydll.dll\ScreenShot","Cdecl WStr")