Jump to content

MSN && AutoIt Status


Heroic
 Share

Recommended Posts

Hey people.

I'm just wondering if anyone could quickly or slowly help me on getting this bot complete. I wouldn't really call it a bot, but more of a status changer.

Here's the code i wrote && Gui by Koda

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$msnqq = GUICreate("MSN Q.Q", 158, 454, 193, 125)
$online = GUICtrlCreateButton("Online", 8, 16, 137, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
$busy = GUICtrlCreateButton("Busy", 8, 48, 137, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
$brb = GUICtrlCreateButton("Be right back", 8, 80, 137, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
$away = GUICtrlCreateButton("Away", 8, 112, 137, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
$iacall = GUICtrlCreateButton("In a call", 8, 144, 137, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
$otlunch = GUICtrlCreateButton("Out to lunch", 8, 176, 137, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
$appearoff = GUICtrlCreateButton("Appear offline", 8, 208, 137, 25, 0)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
$display = GUICtrlCreateLabel("APPEAR", 32, 280, 49, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Verdana")
GUICtrlSetColor(-1, 0x008000)
$status = GUICtrlCreateGroup("Status", 16, 264, 113, 41)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
$status1 = "Online"()
$status2 = "Busy"()
$status3 = "BRB"()
$status4 = "Away"()
$status5 = "In a call"()
$status6 = "Lunch"()
$status7 = "OFFLINE"()
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $online
        GUICtrlSetData($display, $status1)
        Case $busy
        GUICtrlSetData($display, $status2)
        Case $brb
        GUICtrlSetData($display, $status3)
        Case $away
        GUICtrlSetData($display, $status4)
        Case $iacall
        GUICtrlSetData($display, $status5)
        Case $otlunch
        GUICtrlSetData($display, $status6)
        Case $appearoff
        GUICtrlSetData($display, $status7)
    EndSwitch
WEnd

Now, i have no idea what to do with this to change the statuses of my MSN.

Could anyone please help me or lead me to a direction on completing this?

Thank you!!

Link to comment
Share on other sites

Okay, i've been reading what it says in the AutoIt Info file when i click on my MSN but it doesn't help me.

Class: MSBLWindowClass

Control: DirectUIHWND

is there anything i can do with these? or something :S

(so, sorry for being a total noob, im not sure how telling another program to do something works other then send commands through keyboard && mouse using co-ords on my res)

Edited by Heroic
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...