Posts: 17
Threads: 5
Joined: Aug 2006
ok i have this
spe 10
rep
int q
str s.getwintext(win(information here)
out s
if s="if the window text says this then do the following"
q+1
if q=2
mac "Function"
ok i need some help... i tried to explain what i need inside of this macro if you can help me please do
Posts: 1,769
Threads: 410
Joined: Feb 2003
maybe this'll help
spe 10
rep 10
,int q
,;str s.getwintext(win(information here)
,str s.getwintext(win("Quick Macros :: View topic - str s.getwintext question - Mozilla Firefox" "MozillaUIWindowClass"))
,out s
,if s="Quick Macros :: View topic - str s.getwintext question - Mozilla Firefox"
,,q+1
,,if q=2
,,,bee;;just giving the "if" to do something
,,,;mac "Function"
,1;;just waits for a second
Posts: 17
Threads: 5
Joined: Aug 2006
thank oyu i htink this will help but just to get to the basic point of my question is there a way to use s.getwintext to get a certain window text?
Posts: 1,769
Threads: 410
Joined: Feb 2003
yes you just have to tell it what window.
for example this gets me the title no matter what tab in ff i have up.
str a.getwintext(win("" "MozillaUIWindowClass"))
out a
Posts: 17
Threads: 5
Joined: Aug 2006
ok thank you now i get it ... also i would like to know is there a way to get the window text of whats inside of an id?
Posts: 1,769
Threads: 410
Joined: Feb 2003
hmmmmm.....that im not sure about....check out the "Windows, control" menu for possible ways of doing that. i just used the "Window/Control Actions" and "GetWinText" option to get te info i sent you.
Posts: 17
Threads: 5
Joined: Aug 2006
umm where is that information located? inside qm where?
Posts: 1,769
Threads: 410
Joined: Feb 2003
the menu is called "window, control"
Posts: 17
Threads: 5
Joined: Aug 2006
ok i have another question and its on a similar thing... is there any way i can fix this
,,_s="Function Here"; _s.setwintext
i want to encrypt my macro but i want where it says "Function Here" to be adjustable by other people. i tried without the parentheses and with parentheses and it wouldnt work so i was wondering if there was any other way to do this whether is being a new code or fixing an error ive made in this one.