08-24-2006, 09:40 AM
Why IsWindowVisible? Use operator = or ~, or functions find or match, or sel. Example with sel:
str a.getwintext(child("" "Ate32Class" win("Username1 : Username2- Instant Message" "AIM_IMessage") 0x5)) ;;****Gets the message from IM Window*****
sel a 3
,case "*Usernamehere: sign out*" ;;if contains this text (* are wildcard character, ie match 0 or more characters)
,mou 45 45
,;here also could be
,;case "*other text*"
,;other actions
,;and so on
,