Jump to content

Use a variable?


Recommended Posts

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

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

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

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

Link to comment
Share on other sites

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}")

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