运行 带有 AutoIt 编号的 Bat 文件
RUN Bat files with AutoIt Number
我想 运行 AutoIt 应用程序,更改编辑框中的数字,BAT 文件将基于此数字 运行。
例如,我想将日期更改为今天或任何其他日期。基于我何时将 运行 来自 AutoIt 应用程序的 BAT 文件,BAT 文件将使用此日期。
真的可以吗???
这是bat文件变量:
set newDay=22
set newMonth=11
set newYear=2016
这是 AutoIt 的一部分:
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $xxx
Run("n:\xxx\xxx\xxx.bat")
EndSelect
WEnd
从autoit代码传过来:
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $xxx
Run("n:\xxx\xxx\xxx.bat" & " " & $newDay & " " & $newMonth & " " & $newYear)
EndSelect
WEnd
并由批处理文件接收:
set newDay=%1
set newMonth=%2
set newYear=%3
我想 运行 AutoIt 应用程序,更改编辑框中的数字,BAT 文件将基于此数字 运行。
例如,我想将日期更改为今天或任何其他日期。基于我何时将 运行 来自 AutoIt 应用程序的 BAT 文件,BAT 文件将使用此日期。
真的可以吗???
这是bat文件变量:
set newDay=22
set newMonth=11
set newYear=2016
这是 AutoIt 的一部分:
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $xxx
Run("n:\xxx\xxx\xxx.bat")
EndSelect
WEnd
从autoit代码传过来:
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $xxx
Run("n:\xxx\xxx\xxx.bat" & " " & $newDay & " " & $newMonth & " " & $newYear)
EndSelect
WEnd
并由批处理文件接收:
set newDay=%1
set newMonth=%2
set newYear=%3