Jump to content
Sign in to follow this  
eemjay

Use a variable?

Recommended Posts

eemjay

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!)

Share this post


Link to post
Share on other sites
ShawnW

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.

Share this post


Link to post
Share on other sites
eemjay

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.

Share this post


Link to post
Share on other sites
ofLight

I agree, i hope u mean cmd not dos :blink:

Somthin like this

Opt("WinTitleMatchMode", 2)
$Inpute = InputBox('which sensors?','input the sensor #')
ControlSend("cmd.exe","","",$Inpute&"{enter}")
Edited by ofLight

There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Share this post


Link to post
Share on other sites
eemjay

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 :blink:

Somthin like this

Opt("WinTitleMatchMode", 2)
$Inpute = InputBox('which sensors?','input the sensor #')
ControlSend("cmd.exe","","",$Inpute&"{enter}")

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  

×