Jump to content

Recommended Posts

Posted (edited)

New to all of this scripting, how do i change how my script auto replies to someone? Tried using the scite to record accepting the im, and it engages everytime i send an im from just that specific user. When i look at the script it shows the users name that sent the im, but how do i change that to respond to anyone who im's me???

Cheers.....

Edited by lowriderchevyman
Posted

While 1

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

WinWait("New Text Document - Notepad","")

If Not WinActive("New Text Document - Notepad","") Then WinActivate("New Text Document - Notepad","")

WinWaitActive("New Text Document - Notepad","")

MouseMove(22,61)

MouseDown("left")

MouseMove(3,61)

MouseUp("left")

MouseMove(13,61)

MouseDown("right")

MouseUp("right")

MouseMove(47,114)

MouseDown("left")

MouseUp("left")

WinWait("arnoldbot (Active Available)","User defined button ")

If Not WinActive("arnoldbot (Active Available)","User defined button ") Then WinActivate("arnoldbot (Active Available)","User defined button ")

WinWaitActive("arnoldbot (Active Available)","User defined button ")

MouseMove(212,370)

MouseDown("left")

MouseUp("left")

MouseDown("right")

MouseUp("right")

MouseMove(251,440)

MouseDown("left")

MouseUp("left")

MouseMove(323,365)

MouseDown("left")

MouseUp("left")

MouseMove(344,19)

MouseDown("left")

MouseUp("left")

WinWait("New Text Document - Notepad","")

If Not WinActive("New Text Document - Notepad","") Then WinActivate("New Text Document - Notepad","")

WinWaitActive("New Text Document - Notepad","")

MouseMove(284,96)

MouseDown("left")

MouseMove(5,94)

MouseUp("left")

MouseMove(29,102)

MouseDown("right")

MouseUp("right")

MouseMove(58,152)

MouseDown("left")

MouseUp("left")

WinWait("arnoldbot (Active Available)","User defined button ")

If Not WinActive("arnoldbot (Active Available)","User defined button ") Then WinActivate("arnoldbot (Active Available)","User defined button ")

WinWaitActive("arnoldbot (Active Available)","User defined button ")

MouseMove(109,380)

MouseDown("left")

MouseUp("left")

MouseDown("right")

MouseUp("right")

MouseMove(162,451)

MouseDown("left")

MouseUp("left")

MouseMove(331,371)

MouseDown("left")

MouseUp("left")

MouseMove(348,15)

MouseDown("left")

MouseUp("left")

WinWait("New Text Document - Notepad","")

If Not WinActive("New Text Document - Notepad","") Then WinActivate("New Text Document - Notepad","")

WinWaitActive("New Text Document - Notepad","")

MouseMove(40,144)

MouseDown("left")

MouseMove(5,145)

MouseUp("left")

MouseMove(26,149)

MouseDown("right")

MouseMove(24,149)

MouseUp("right")

MouseMove(60,202)

MouseDown("left")

MouseUp("left")

WinWait("arnoldbot (Active Available)","User defined button ")

If Not WinActive("arnoldbot (Active Available)","User defined button ") Then WinActivate("arnoldbot (Active Available)","User defined button ")

WinWaitActive("arnoldbot (Active Available)","User defined button ")

MouseMove(166,376)

MouseDown("left")

MouseUp("left")

MouseDown("right")

MouseUp("right")

MouseMove(214,444)

MouseDown("left")

MouseUp("left")

MouseMove(319,368)

MouseDown("left")

MouseUp("left")

MouseMove(344,13)

MouseDown("left")

MouseUp("left")

WEnd

Here's what i have, in the "arnoldbot", how can i change this to respond to any one?

Posted

Use Opt("WinTitleMatchMode", 2) at the beginning, then just remove the 'arnoldbot' part from everything and it should work.

[font="Impact"]Cats rule, humans drool.[/font]
Posted (edited)

Opt("WinTitleMatchMode", 2)(User defined button ")

If Not WinActive("User defined button ") Then WinActivate("User defined button ")

WinWaitActive(User defined button ")

MouseMove(212,370)

So like this?

Edited by lowriderchevyman
Posted

Ok, you'd probably want to add that on a new line instead of directly after Opt() but yeah, that's the general idea.

[font="Impact"]Cats rule, humans drool.[/font]

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
×
×
  • Create New...