Posts: 17
Threads: 5
Joined: Aug 2006
Is there a way to use this code
str s.getwintext
s.setwintext(id(2203 "Quick"))
to send the window text into a different macro or function?
and if so is there a way to set up a macro that once it sees a certain window text that it will do an action?
I hope i didn't lose you
Posts: 1,769
Threads: 410
Joined: Feb 2003
you can use global variables to exchange variable values between variables.
in both put...
to make a function/macro start when a window changes it's name, i think you can go into properties of the function/macro and click window and then choose one of the options that would best suit your needs. if the name changes while the window is active choose "active".
Posts: 17
Threads: 5
Joined: Aug 2006
1 more question... i got it all almost done but is there any way to send the information from a screen into another macro?
... After i do that i need the macro i sent the information into to read the information and if the informtion matches what i have inside of the macro that it will end.
Posts: 1,769
Threads: 410
Joined: Feb 2003
Edited from above:
you can use global variables to exchange variable values between macros/functions.
in both put...
Code:
str+ a
to end it in another macro
if a="whatever"
,end
Posts: 17
Threads: 5
Joined: Aug 2006
ok ty that works also but how do i make a macro read whats on the screen and after i make it read whats on the screen how do i make it compare whats on the screen to whats in the macro?
Posts: 1,769
Threads: 410
Joined: Feb 2003
post your code and let's take a look at it.
Posts: 17
Threads: 5
Joined: Aug 2006
nevermind i got it ty for your help