Sign in to follow this  
Followers 0
hipokrasi

Sending data to inactive windows

4 posts in this topic

#1 ·  Posted (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 by hipokrasi

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Check out the

ControlSend()
function

Edited by Juvigy

Share this post


Link to post
Share on other sites

Check out the

ControlSend()
function

Thanks

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

An useful function!

Thanks

Edited by superasd55

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  
Followers 0