pjo Posted February 19, 2008 Share Posted February 19, 2008 Hi! I am trying to pass a data from PowerShell to AutoIt 3 to control an application. AutoIt will control the application based on what information is given. The information is a combination of hotkey hex Virtual Keycode. Can it be done via Window Handles ? Where is the documentation on this ? Or any other way to do it ? Thanks in advance. pjo Link to comment Share on other sites More sharing options...
pjo Posted February 19, 2008 Author Share Posted February 19, 2008 Hi!I am trying to pass a data from PowerShell to AutoIt 3 to control an application.AutoIt will control the application based on what information is given.The information is a combination of hotkey hex Virtual Keycode.Can it be done via Window Handles ?Where is the documentation on this ?Or any other way to do it ?Thanks in advance.pjoThis is a portion of a code:WinWaitActive("44985: MetaTrader - Alpari UK - Demo Account - EURUSD,M30","Market Watch: 22:59:")MouseMove(590,448)MouseDown("left")MouseUp("left")Send("{ALTDOWN}1{ALTUP}")WinWait("StepMAExpert_v1.45","Expert Advisor setti")If Not WinActive("StepMAExpert_v1.45","Expert Advisor setti") Then WinActivate("StepMAExpert_v1.45","Expert Advisor setti")WinWaitActive("StepMAExpert_v1.45","Expert Advisor setti")MouseMove(57,213)MouseDown("left"Can Powershell launch this AUtoit script by making the hotkey as variable ? In other words,Alt+1Alt+2Alt+3....Alt+aAlt+b....pjo Link to comment Share on other sites More sharing options...
pjo Posted February 21, 2008 Author Share Posted February 21, 2008 This is a portion of a code:WinWaitActive("44985: MetaTrader - Alpari UK - Demo Account - EURUSD,M30","Market Watch: 22:59:")MouseMove(590,448)MouseDown("left")MouseUp("left")Send("{ALTDOWN}1{ALTUP}")WinWait("StepMAExpert_v1.45","Expert Advisor setti")If Not WinActive("StepMAExpert_v1.45","Expert Advisor setti") Then WinActivate("StepMAExpert_v1.45","Expert Advisor setti")WinWaitActive("StepMAExpert_v1.45","Expert Advisor setti")MouseMove(57,213)MouseDown("left"Can Powershell launch this AUtoit script by making the hotkey as variable ? In other words,Alt+1Alt+2Alt+3....Alt+aAlt+b....pjoBump Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now