from ctypes import *

#load the library
lib = WinDLL('mscript.dll')

#initialise ...
lib.Init()

#create an output buffer
sRes = create_unicode_buffer(1024)

#image recognition code to click on Windows Start Button
code = u"""//Find and Left Click Center of
Let>bmp=C:\\Users\Marcus\\Documents\\Macro Scheduler 14\\DLL\\image_1.bmp
Mdl>This is version: %MSCHED_VER%
FindImagePos>bmp,SCREEN,0,1,XArr,YArr,NumFound,EXACT
If>NumFound>0
  MouseMove>XArr_0,YArr_0
  LClick
Endif
"""

#run the code
n = lib.RunCode(code,u"",sRes,1024)

lib.Cleanup()