用jacob,你可以搜索一下,只是语法是java语法,完全可以上面的代码翻译成java代码执行

解决方案 »

  1.   

    非常感谢,按照你的指导我去搜了jacob,看上边的一些demo,但是在我机子上跑总是报错。错误信息如下(PS:在项目路径下还生成一个错误日志文件,看不懂)。小弟刚刚步入程序猿的坎坷道路,真的什么都不懂,请帮帮忙哈^_^# An unexpected error has been detected by Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x76f983c5, pid=9208, tid=9088
    #
    # Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode windows-x86)
    # Problematic frame:
    # C  [ntdll.dll+0x283c5]
    #
    # An error report file with more information is saved as:
    # D:\Users\jinguifa\Workspaces\MyEclipse 8.5\jaCobDemo\hs_err_pid9208.log
    #
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    #