Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
int vk=wait (0 K s) = can "s" be a variable
#1
Anyway for the key assignment, such as 's' here, to be a variable?

Such as

str stringname="s"

int vk=wait(0 K {stringname})
#2
Not possible directly. Try function RunTextAsFunction2. But it is unavailable in exe.

Macro Macro2712
Code:
Copy      Help
str stringname="s"

int vk=RunTextAsFunction2(F"ret wait(0 K {stringname})")
out vk
#3
Thanks Gintaras!, that gives me everything I need to know BECAUSE I will be 'exe'ing.


Forum Jump:


Users browsing this thread: 1 Guest(s)