Jump to content

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


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.

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...