eemjay Posted July 1, 2010 Posted July 1, 2010 I need to input a variable and then use it to command a keystroke. how do i do this?? (i am a newbie, and not a programmer. any help is appreciated. Your help contributes to developing wind turbine materials technology!)
ShawnW Posted July 1, 2010 Posted July 1, 2010 Where do you want to enter this variable. Directly? From another program? Through a physical device? Basically what is the source of this variable you wish to "input"? Keystrokes are sent with the Send() function which you can read about in the help file.
eemjay Posted July 1, 2010 Author Posted July 1, 2010 I want a prompt to come up that says "which sensors?" you input the sensor #, then that number is used as an input as a simple keystroke (into MSDOS).Where do you want to enter this variable. Directly? From another program? Through a physical device?Basically what is the source of this variable you wish to "input"?Keystrokes are sent with the Send() function which you can read about in the help file.
JohnOne Posted July 1, 2010 Posted July 1, 2010 I seriously hope people are not using DOS to develop such technology (are there even any computers left that support DOS) Perhaps you mean Command Prompt? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
ofLight Posted July 1, 2010 Posted July 1, 2010 (edited) I agree, i hope u mean cmd not dos Somthin like this Opt("WinTitleMatchMode", 2) $Inpute = InputBox('which sensors?','input the sensor #') ControlSend("cmd.exe","","",$Inpute&"{enter}") Edited July 1, 2010 by ofLight There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly
eemjay Posted July 2, 2010 Author Posted July 2, 2010 ofLight, That is exactly what i was looking for, youve made my life a lot easier, thank you. and yes, it is the cmd prompt, not DOS I agree, i hope u mean cmd not dos Somthin like this Opt("WinTitleMatchMode", 2) $Inpute = InputBox('which sensors?','input the sensor #') ControlSend("cmd.exe","","",$Inpute&"{enter}")
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now