nybegblya Posted March 11, 2014 Share Posted March 11, 2014 Have MsgBox with some text I create func Func Copy() $text = ControlGetText($name, "", "[CLASS:Static]") ; $name - title of MsgBox, [CLASS:Static] - class text in MsgBox ClipPut($text) EndFunc Its works on my desktop(win8.1x64), but does not work on laptop(win7x32), why? Link to comment Share on other sites More sharing options...
FireFox Posted March 11, 2014 Share Posted March 11, 2014 Hi, Try this : $text = ControlGetText("[TITLE:" & $name & ";CLASS:#32770]", "", "[CLASS:Static; INSTANCE:1]") ConsoleWrite($text & @Lf) Br, FireFox. Link to comment Share on other sites More sharing options...
funkey Posted March 11, 2014 Share Posted March 11, 2014 Or this Global $sTitle = "Test" SendKeepActive($sTitle) Send("^c") MsgBox(0, "Result", ClipGet()) Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
nybegblya Posted March 11, 2014 Author Share Posted March 11, 2014 (edited) Hi, Try this : $text = ControlGetText("[TITLE:" & $name & ";CLASS:#32770]", "", "[CLASS:Static; INSTANCE:1]") ConsoleWrite($text & @Lf) Br, FireFox. Not work for me That work Global $name="some title" Copy() Func Copy() SendKeepActive($name) $text = ControlGetText("[TITLE:" & $name & ";CLASS:#32770]", "", "[CLASS:Static; INSTANCE:1]") MsgBox(0, "Result", $text) EndFunc Thank you both Edited March 11, 2014 by nybegblya 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