Sign in to follow this  
Followers 0
realkiller

msn auto reply

9 posts in this topic

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

Share this post


Link to post
Share on other sites



MSN uses Windowless controls. using DirectUIHWND1 wont work.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

isnt it easier if you use MSN.au3?

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

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

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