Can Windows API or DLL functions be run ?
Posted: Thu May 02, 2013 1:51 pm
Does robotask support DLL calls or using Windows API ?
RoboTask discussion forum
https://www.robotask.com/forum/
Code: Select all
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hWnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Declare Function MyMsgBox Lib "User32.dll" Alias "MessageBox" _
(ByVal hWnd As Integer, ByVal txt As String, ByVal caption As String, _
ByVal typ As Integer ) As Integer
Sub Main
ShellExecute(0, "open", "notepad.exe", "", ".", 10)
MyMsgBox(0,"Notepad has been started", "Notification", 0)
End Sub