Jump to content

Passing data to AutoIt via Window Handles


pjo
 Share

Recommended Posts

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

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

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+1

Alt+2

Alt+3

..

..

Alt+a

Alt+b

..

..

pjo

Link to comment
Share on other sites

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+1

Alt+2

Alt+3

..

..

Alt+a

Alt+b

..

..

pjo

Bump

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...