Jump to content
Sign in to follow this  
FaT3oYCG

O_o send a key to a minimised or hidden already open dos window?

Recommended Posts

FaT3oYCG

Hi, i need to send an emulated key press to a dos window that will be minimised and or hidden but i cant find any documentation on a function that would be able to do this.

I have looked at send but that only works for the active window which would mean that the dos window would not be minimised or hidden.

I have also looked at control send but that doesnt seem to work for dos windows according to the help file and if i try to get a control id from a dos window i obviously just dont get one.

I have looked at run dos but that is only when it is opening and i need to be able to send a key when a user takes an action on my program.

is this even possible o_O?

plz help i have spent about 6 hours searching now.

thanks.


Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.

Share this post


Link to post
Share on other sites
FaT3oYCG

is this not possible then because i did some more searching and i have still not returned any results?


Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.

Share this post


Link to post
Share on other sites
martin

is this not possible then because i did some more searching and i have still not returned any results?

Maybe the example in the help for StdinWrite will help, but I think you need to give more information about the DOS application and how it is run and what it needs to do to get better help.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
FaT3oYCG

the dos application sends data through a usb cable to take action on the connected device but that is done for you so we dont have to code anything to do with that, the directions are sent when a key is pressed and the dos window is open, i tried to use the stdinwrite function but couldnt get it to work it sets @error to 0 which i read means that there is no error amd using run i return a valid pid but when i write the data (a character to represent a keypress) it just doesnt do anything.


Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.