Set dm2 = createobject("dm.dmsoft")
Call dm2.SetPath("C:\test_game")'定义对象通用路径 dm.GetBasePath() 返回dm.dll所在路径,字库一般放一起
//Call dm2.SetDict(0, "测试字库.txt")'一号字库
hwnd = dm2.getMousePointwindow()
//修改鼠标指向窗口标题
dm_ret = dm2.SetWindowText(hwnd, "test")
//大漠找字命令
//s = dm2.Ocr(0,0,2000,2000,"000000-000000",1.0)
TracePrint s