realkiller Posted December 6, 2006 Share Posted December 6, 2006 (edited) oke i made this, the only thing is in this loop that gos wrong is it automaticaly write the text from the person a couple of times in the text file. is there a way to undo this sow i only see one person instead off 10000 lines of the same person #include <File.au3> While 1 Opt("WinTitleMatchMode", 2) If WinExists("- Gesprek")Then $title = WinGetTitle("- Gesprek") FileWrite("Gesprekken.txt","DAG:"&@MDAY&" "&@HOUR&":"&@MIN&":"&@SEC&" "&$title& @CRLF) WinActivate("- Gesprek") WinWaitActive("- Gesprek") ControlSend("- Gesprek", "", "DirectUIHWND1", "hoi hoi, en dag dag want ik ben er niet dusja jammur. evuh gedult en ik ben urr weer"&"{ENTER}{ESC}") EndIf WEnd Edited December 6, 2006 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
AzKay Posted December 6, 2006 Share Posted December 6, 2006 MSN uses Windowless controls. using DirectUIHWND1 wont work. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
realkiller Posted December 6, 2006 Author Share Posted December 6, 2006 (edited) try it it workd:d, mabay it doesnt work because you use a englisch version and it isnt - Gesprek but - Conversation Edited December 6, 2006 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
AzKay Posted December 7, 2006 Share Posted December 7, 2006 It only works if the window is active, so, its really no point in using a controlsend() # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
St4inL3ss Posted December 9, 2006 Share Posted December 9, 2006 isnt it easier if you use MSN.au3? Link to comment Share on other sites More sharing options...
bayangan Posted December 9, 2006 Share Posted December 9, 2006 #include <File.au3> While 1 Opt("WinTitleMatchMode", 2) If WinExists("- Gesprek")Then $title = WinGetTitle("- Gesprek") FileWrite("Gesprekken.txt","DAG:"&@MDAY&" "&@HOUR&":"&@MIN&":"&@SEC&" "&$title& @CRLF) WinActivate("- Gesprek");<---- problems here WinWaitActive("- Gesprek") ControlSend("- Gesprek", "", "DirectUIHWND1", "hoi hoi, en dag dag want ik ben er niet dusja jammur. evuh gedult en ik ben urr weer"&"{ENTER}{ESC}") WinClose("- Gesprek");<----- add this EndIf WEnd You check for winexist("- gesprek") and the condition while is always true. After write it to txt file and send the message, you need to close the window. Link to comment Share on other sites More sharing options...
James Posted December 9, 2006 Share Posted December 9, 2006 Hey, I got mine working, so that it finds any windows on the taskbar, then activates it, and sends the text. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
AzKay Posted December 9, 2006 Share Posted December 9, 2006 isnt it easier if you use MSN.au3?MSN.au3 only works with the first msn messenger. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
James Posted December 9, 2006 Share Posted December 9, 2006 Hmm, maybe we need to remake the msn.au3 then. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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