eemjay Posted July 1, 2010 Share 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!) Link to comment Share on other sites More sharing options...
ShawnW Posted July 1, 2010 Share 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. Link to comment Share on other sites More sharing options...
eemjay Posted July 1, 2010 Author Share 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. Link to comment Share on other sites More sharing options...
JohnOne Posted July 1, 2010 Share 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. Link to comment Share on other sites More sharing options...
ofLight Posted July 1, 2010 Share 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 Link to comment Share on other sites More sharing options...
eemjay Posted July 2, 2010 Author Share 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}") Link to comment Share on other sites More sharing options...
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