08-11-2010, 03:52 PM
Hello QM Forum,
I got bored the other night and started messing around with a macro just playing around with str,int,..etc and was curious to why this would not work.
Code that works:
double LongWait = 30;;Wait Control
wait LongWait WC "Notepad"
out "Notepad Open"
Then I tried to make the Notepad window into an int and this code didnt work.
int NotePad = win("Notepad")
double LongWait = 30;;Wait Control
wait LongWait WC Notepad
out "Notepad Open"
Im not really sure why it wont work? I know I could just make Notepad a str and call it like,
str Notepad = "Notepad"
wait LongWait WC Notepad
But is there a way I can use the int way? Thanks for your time.
I got bored the other night and started messing around with a macro just playing around with str,int,..etc and was curious to why this would not work.
Code that works:
double LongWait = 30;;Wait Control
wait LongWait WC "Notepad"
out "Notepad Open"
Then I tried to make the Notepad window into an int and this code didnt work.
int NotePad = win("Notepad")
double LongWait = 30;;Wait Control
wait LongWait WC Notepad
out "Notepad Open"
Im not really sure why it wont work? I know I could just make Notepad a str and call it like,
str Notepad = "Notepad"
wait LongWait WC Notepad
But is there a way I can use the int way? Thanks for your time.