hipokrasi Posted June 24, 2010 Share Posted June 24, 2010 (edited) Hello, How can I send data to inactive windows without using SendKeepActive or another smiliar functions which activates windows? I actually want to use my pc properly when an autoit script works to control a software. Heres my example which am using: WinActivate("[CLASS:Funky Window]", "") Do $i += 1 $no = FileReadLine("numaralar.txt", $i) $SL = StringLeft($no, 4) WinActivate("[CLASS:Funky Window]", "") SendKeepActive("[CLASS:Funky Window]", "") Send($no) SendKeepActive("[CLASS:Funky Window]", "") Send("{ENTER}") TrayTip("Arama durumu.. Toplam data: " & $Lines , $i & ". Satırdaki " & $no & " numarası aranıyor... " , 5, 1) IniWrite($settingsini, "Line", "Line number", $i) Sleep(6000) SendKeepActive("[CLASS:Funky Window]", "") Send("{ESC}") sleep(3000) Until $i = $Lines Send("{ESC}") MsgBox(64, " Durum..", "Arama tamamlandı. " & $i & " numara arandı." ) IniWrite($settingsini, "Line", "Line number", 0) Exit Edited June 24, 2010 by hipokrasi Link to comment Share on other sites More sharing options...
Juvigy Posted June 24, 2010 Share Posted June 24, 2010 (edited) Check out the ControlSend() function Edited June 24, 2010 by Juvigy Link to comment Share on other sites More sharing options...
hipokrasi Posted June 24, 2010 Author Share Posted June 24, 2010 Check out the ControlSend() function Thanks Link to comment Share on other sites More sharing options...
superasd55 Posted September 29, 2011 Share Posted September 29, 2011 (edited) An useful function! Thanks Edited September 29, 2011 by superasd55 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