What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Hey guys:) New scripter needing some help

Hey guys:) New scripter needing some help
Author: Message:
KillaW0lf04
New Member
*


Posts: 1
Joined: Sep 2007
O.P. Hey guys:) New scripter needing some help
Hey guys,
Today i decided to start learning some scripting for Messenger Plus so i can customize it to the way i see fit :P I although have some questions regarding this scripting. I heard this is almost exactly like java, so will i be able to use java commands (I don't know much java, but i do know a lot of actionscript in flash and they are also similar). How do i perform a function on the event that certain keys are pressed? (i know in action script its if(Key.isDown()) but i dont know what it is in java)

Thanks in advance for being patient with a n00b ;):P
09-11-2007 01:45 PM
Profile E-Mail PM Find Quote Report
albert
Veteran Member
*****

Avatar

Posts: 2247
Reputation: 42
– / Male / Flag
Joined: Feb 2005
RE: Hey guys:) New scripter needing some help
Hum.. I don't really see the resemblence with JAVA to be quite honest, but that might be just me.

What I suggest you to do is to have a look at the Official Docs, everything from events to objects, functions and methods are all in there.. So you shouldn't have a big problem starting up. :)

Here's the link to the doc : http://www.msgpluslive.net/scripts/view/13-Offici...ing-Documentation/
09-11-2007 01:51 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Hey guys:) New scripter needing some help
quote:
Originally posted by KillaW0lf04
Hey guys,
Today i decided to start learning some scripting for Messenger Plus so i can customize it to the way i see fit :P I although have some questions regarding this scripting. I heard this is almost exactly like java, so will i be able to use java commands (I don't know much java, but i do know a lot of actionscript in flash and they are also similar). How do i perform a function on the event that certain keys are pressed? (i know in action script its if(Key.isDown()) but i dont know what it is in java)

Thanks in advance for being patient with a n00b ;):P

It's not like Java, It's JScript. There are differences between, JScript, Javascript and Java. There is no built in function to detect key presses or mouse clicks... you can look into windows API calls to detect them, but this is a bit more advanced. As said already, the scripting documentation is a good place to start though.

EDIT: If you PM me with your WLM address, I'll add you and give you help whenever you need it

This post was edited on 09-11-2007 at 02:23 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
09-11-2007 01:55 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Hey guys:) New scripter needing some help
If you mean when a key is pressed in the typing area of a chat window, there's an event provided by Plus!, named OnEvent_ChatWndEditKeyDown. More information about this event can be found in the docs (Events Reference > Messenger Events)

If you mean when a key is pressed while a PlusWnd is focused, you'll need to register some notification and respond to it. However, this requires some knowledge of how to use the Win32 API and may turn out difficult. I already tried something similar, but failed because I couldn't catch any message.

If you mean when a global hotkey is pressed (like Ctrl+Alt+Delete to open Task Manager and can be used in any program), you'll need to use some DLL to register the hotkey for you and respond on it. I've seen this in HopperLive where it's used to bind "hops" to a global keyboard shortcut, but I have no idea how it's been done. :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-11-2007 03:58 PM
Profile E-Mail PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Hey guys:) New scripter needing some help
quote:
Originally posted by Mattike
If you mean when a global hotkey is pressed (like Ctrl+Alt+Delete to open Task Manager and can be used in any program), you'll need to use some DLL to register the hotkey for you and respond on it. I've seen this in HopperLive where it's used to bind "hops" to a global keyboard shortcut, but I have no idea how it's been done. :P
In HopperLive it's now done all in jscript, you can take a look at its source codes.
09-17-2007 02:55 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On