Valhalla Legends Forums Archive | Visual Basic Programming | AIM Api calls

AuthorMessageTime
CrAz3D
I cannot seem to be able to get the correct id for opening a blank IM window. Can anyone help?

(I can place info into the username box, the content box & hit send I just need to open the window to begin with.)
October 22, 2003, 4:25 AM
CupHead
AppActivate "ScreenName's Buddy List Window"
SendKeys "{ALT}+I"
October 22, 2003, 4:30 AM
CrAz3D
I'm trying to figure out how to window a specific user's IM Window. So far I can only get their handle #, not the text of it.
October 22, 2003, 5:00 PM
CupHead
Why are you even doing this to begin with?
October 22, 2003, 5:01 PM
CrAz3D
I'm trying to make a command for my bot, i.e. `aim {person} {message}

I don't want to make an entire AIM client, just be able to send messages to AIM like Winamp.
October 22, 2003, 5:18 PM
CupHead
It's not API, but it works.

To open a new IM window:
[code]
AppActivate "ScreenName's Buddy List Window"
SendKeys "%i", True
SendKeys "+{TAB}ScreenName{TAB}", True
SendKeys "Text To Send~", True
[/code]

To send a message in an existing window:
[code]
AppActivate "Screen Name - Instant Message"
SendKeys "Text To Send~", True
[/code]

To get someone's info:
[code]
AppActivate "Screen Name's Buddy List Window"
SendKeys "%o"
SendKeys "+{TAB}Screen Name~"
[/code]
October 22, 2003, 5:57 PM
CrAz3D
It works!
http://crazedmind.net/doombot/1.gif
http://crazedmind.net/doombot/2.gif

[code]Case "newaim"
msg = Split(pA(1), " ", 2)
AppActivate frmOptions.txtAIMName.text & "'s Buddy List Window", False
SendKeys "%i" & msg(0), False
SendKeys "{TAB}", False
SendKeys msg(1), False
SendKeys "%s", False
Case "aim"
msg = Split(pA(1), " ", 2)
'AddChat vbRed, MSG(0)
AppActivate msg(0) & " - Instant Message", False
'AddChat vbRed, MSG(1)
SendKeys msg(1), False
SendKeys "%s", False
[/code]


EXTREME Thanks to CupHead for learnin me them SendKeys functions.
October 22, 2003, 11:23 PM
Tuberload
[quote]EXTREME Thanks to CupHead for learnin me them SendKeys functions. [/quote]

you mean, for teaching you those SendKey functions?
October 22, 2003, 11:56 PM
CrAz3D
Yes, I was just in my native language mode, I am a hickonite.
October 23, 2003, 1:16 AM
SiMi
ahaha on the second picture you can see that the aim sn is o0oForgeDo0o. It says it where it says o0oForgeDo0o's Warning Level :0% .
October 24, 2003, 2:33 AM
CrAz3D
Oops? Oh well, I at least tried, can't blame me for being tired & excited & 'minimalistic' all at the same time.

Minimalistic is a word a friend changed the meaning of, it now replaces rebundancy.
October 24, 2003, 3:40 AM

Search