Jump to content
Sign in to follow this  
erezlevi

need your help again - CLASS check.

Recommended Posts

erezlevi

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.

Share this post


Link to post
Share on other sites
erezlevi

ok wrote it wrong success = 0 and failure = 1.

I think I can do it now!

Share this post


Link to post
Share on other sites
erezlevi

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","")

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×