Jump to content
Sign in to follow this  
realkiller

msn auto reply

Recommended Posts

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 by realkiller

Share this post


Link to post
Share on other sites

#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.

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  

×
×
  • Create New...