Silver PC
Well-Known Member
سلام !
نام : MMB Lib for AutoIt
توضیحات :
موفق باشید
نام : MMB Lib for AutoIt
توضیحات :
کد:
MMB Lib for AutoIt
Updated by Yuraj, originally written by Odklizec
Function for sending MMB script to MMB App from AutoIt.
You can copy MMBLib.au3 to autoit include files (Program Files\AutoIt3\Include)
Example of usage:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#include <MMBLib.au3>
$title = 'Welcome!'; Title of MMB window
$script = 'Message("Test","")'; MMB Script
SendScriptMMB($title,$script)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
If you want set MMB variable from AutoIt, string:
$string = "This is string."
$script = "variable$ = '" & $string & "'"
SendScriptMMB($title,$script)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; integer:
$integer = 10
$script = "data = " & $integer
SendScriptMMB($title,$script)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
If you want get data from MMB to AutoIt script, you must use command line parameters:
**IN MMB
Run("your_autoit_executable.exe","Welcome!") // "Welcome" is the parameter what we pass to autoit script
;~ Then in autoit you handle $CmdLine arrary where are stored cmdline params
;~ First entry in array $CmdLine[0] is count of cmdline params.
$title = $CmdLine[1] ;~ you get "Welcome!"
موفق باشید