yehia Posted January 4, 2009 Posted January 4, 2009 i posted this in the the help and support forum but got no related replays on my topic so i reposted it here cos its more related to GUIs well i was trying to make a script to get the text from msn chat window but found out that MSN is using a windowless control named "DirectUIHWND1" so this script totally failed: While 1 $b = ControlGetHandle("[CLASS:IMWindowClass]","","DirectUIHWND1") WinActivate("[CLASS:IMWindowClass]","") $a = GUICtrlRead($b,1) If $a <> "0" Then MsgBox(0,"",$a) EndIf ;ControlSend("- Conversation", "", "DirectUIHWND1", $Gesprek&"{ENTER}{ESC}") WEnd if there is any way to get the text in the chat window? and since IE uses windowless controlls too can IE funcs be helpful in this case? is there is anyway to get the handle of a windowless control ? My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine
Pain Posted January 5, 2009 Posted January 5, 2009 Here's even an example on how to do it, don't ask me if it works or not 'cuz I havn't been using MSN for years.http://www.autoitscript.com/forum/index.php?showtopic=38659
yehia Posted January 5, 2009 Author Posted January 5, 2009 nah not what im looking for i need a way or a func to get control over windowless controls not specially for MSN i found a topic about MSAA but still i cant use it and im not sure if thats what im looking for My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine
yehia Posted January 7, 2009 Author Posted January 7, 2009 ok i will ask my Q in another way i found that the object that contains the chat msgs is named history how to construct this object cos im noob with objects thats what i found in one MSN lib func _msngetchattext($win) if not IsObj($win) then return 0 $his = $win.History return $his endfunc and there is another way with active accessibility but i still cant find it can anyone help me? My Scripts:IE New UDFsElastic images moving under mouse (with a happy valentine's example)_FileRemoveLine
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