Highlighted

Send Keystroke/MousePress to another windows app?

Enthusiast ,
Dec 18, 2014

Copy link to clipboard

Copied

Have a hardware h264 encoder with a basic capture - stop capture interface. I'd like my AIR app to be able to press those buttons in order to minimize errors. Is this possible? Didn't have much luck Googling.

TOPICS
Development

Views

254

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Send Keystroke/MousePress to another windows app?

Enthusiast ,
Dec 18, 2014

Copy link to clipboard

Copied

Have a hardware h264 encoder with a basic capture - stop capture interface. I'd like my AIR app to be able to press those buttons in order to minimize errors. Is this possible? Didn't have much luck Googling.

TOPICS
Development

Views

255

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 18, 2014 0
Engaged ,
Jan 01, 2015

Copy link to clipboard

Copied

You can do that by mouse_event and SetCursor WINAPI functions:

SetCursor function (Windows)

mouse_event function (Windows)

Call it by PowerShell script or write C++ ANE for this.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 01, 2015 0
Enthusiast ,
Jan 01, 2015

Copy link to clipboard

Copied

I actually wrote a PowerShell script that will do what I need but cannot get the script to run from AIR. I can get PowerShell to open, and load the script - but not execute it. Any tips?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 01, 2015 0
itlancer LATEST
Engaged ,
Jan 01, 2015

Copy link to clipboard

Copied

I also spend a lot of time to solve this issue, look here:

Re: Run PowerShell script?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 01, 2015 0