erezlevi Posted April 29, 2008 Share Posted April 29, 2008 how can I check if a user is using Reach Text, HTML, or plain text to compose a message ? (I don't want to check it using the windows title, but using the CLASS of the window) I was thinking about the following will it work?? ControlClick("Untitled - Message (HTML)","","[CLASSNN:Internet Explorer_Server1]") if @error then msgbox (0,"error-1","") ControlClick("Untitled - Message (HTML)","","[CLASSNN:RichEdit20W3]") if @error then msgbox (0,"error-2","") I am checking it now. Link to comment Share on other sites More sharing options...
erezlevi Posted April 29, 2008 Author Share Posted April 29, 2008 ok wrote it wrong success = 0 and failure = 1. I think I can do it now! Link to comment Share on other sites More sharing options...
erezlevi Posted April 29, 2008 Author Share Posted April 29, 2008 works: $m=ControlClick("Untitled - Message (HTML)","","[CLASSNN:Internet Explorer_Server1]","left",1,10,10) if $m=0 then MsgBox (0,"error-1","") $t=ControlClick("Untitled - Message (Plain Text)","","[CLASSNN:RichEdit20W3]","left",1,10,10) if $t=0 then MsgBox (0,"error-2","") Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now