Jump to content
Sign in to follow this  
James

MSN auto msg

Recommended Posts

Im making an auto replier, but for some reason it doesnt want to activate a minimized window.

;--------------------------------------
;
; Name: MSN Reply
; Author: Touch en Stride
;
;--------------------------------------

$away = "I am away at the moment, I will be back shortly." ; What to Send

WinActivate("- Conversation")
Send($away)

It doesnt want to work though ;)

Share this post


Link to post
Share on other sites

Im making an auto replier, but for some reason it doesnt want to activate a minimized window.

;--------------------------------------
;
; Name: MSN Reply
; Author: Touch en Stride
;
;--------------------------------------

$away = "I am away at the moment, I will be back shortly." ; What to Send

WinActivate("- Conversation")
Send($away)

It doesnt want to work though ;)

Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced

Share this post


Link to post
Share on other sites

Hmm,

Joon: That doesnt activate the right window.

JdeB: I don't know where I put that one.

Typically, Opt goes on the top of your script.

Share this post


Link to post
Share on other sites

JdeB: I don't know where I put that one.

Have you even tried to look it up before typing your reply ?

... But let me ask the question anyways... : What do you think: Before or After the WinActivate? ;)

Edited by JdeB

Share this post


Link to post
Share on other sites

i fixed the code for you

While 1
$Gesprek = "hi iam not there"
Opt("WinTitleMatchMode", 2)
If WinExists("- Gesprek")Then
    WinActivate("- Conversation")
    ControlSend("- Conversation", "", "DirectUIHWND1", $Gesprek&"{ENTER}{ESC}")
EndIf
WEnd
Edited by realkiller

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