Sign in to follow this  
Followers 0
pjo

Passing data to AutoIt via Window Handles

3 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0