求一个自动化脚本(autoit或VB)一键运行VirtualBox主程序,并点击启动按钮进入系统,谢谢

希望给点注释
2025-06-22 10:04:31
推荐回答(1个)
回答1:

autoit 用到run() sleep() mouseclick()
比如(具体内容根据自已电脑情况更改)
Run ( "???VirtualBox.exe","c:\program????????????" )

Sleep ( 60000)
MouseClick ( "left" ,?,?,1, 0)

你可能需要的内容:
Run ( "执行文件名" , "执行文件路径") 比如run("notepad.exe","c:\windows")
Sleep ( 4321) 程序等4321毫秒后进行下一步动作
MouseClick ( "left" , 100,200, 1, 0 ) 左键在距屏幕左上角水平100像素垂直200像素的地方点3下。鼠标移动0耗时

具体定义
Run ( "program" [, "workingdir" [, show_flag [, opt_flag]]] )

Sleep ( delay )
MouseClick ( "button" [, x, y [, clicks [, speed]]]
)