Hey Worm. Your keyboard.dll doesn't seem to work with the new upgrade (5.0.0.4). When and if you (or anyone else) get time, can you confirm this? Maybe different syntax again?
This is what I'm trying to use and it doesn't work -
function keypress()
prpwindow = Window.EnumerateTitles(false);
for handle, title in prpwindow do
result9 = String.Find(title, "Example - Notepad", 1, false);
if (result9 ~= -1) then
Window.SetOrder(handle, HWND_TOPMOST);
Keys="{ENTER}";
DLL.CallFunction(_SourceFolder.."\\KEYSTROKES.DLL" , "KeyStroke", "\""..Keys.."\"", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
end
end
end
Then I call keypress(); with an on.Timer event. I get an error saying "Failed to find the specified function in the dll"
This is what I'm trying to use and it doesn't work -
function keypress()
prpwindow = Window.EnumerateTitles(false);
for handle, title in prpwindow do
result9 = String.Find(title, "Example - Notepad", 1, false);
if (result9 ~= -1) then
Window.SetOrder(handle, HWND_TOPMOST);
Keys="{ENTER}";
DLL.CallFunction(_SourceFolder.."\\KEYSTROKES.DLL" , "KeyStroke", "\""..Keys.."\"", DLL_RETURN_TYPE_INTEGER, DLL_CALL_CDECL);
end
end
end
Then I call keypress(); with an on.Timer event. I get an error saying "Failed to find the specified function in the dll"
Comment