What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Scripting API Wishlist

Pages: (15): « First « 5 6 7 8 [ 9 ] 10 11 12 13 » Last »
Scripting API Wishlist
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Scripting API Wishlist
quote:
Originally posted by tryxter
Update system (the ability to automatically download the new plsc file, uninstall the current version, and install the new version)
No need for that tbh. Simply reinstall the new version, being it manually or being it with the previous script itself that doesn't matter. As a matter of fact, many scripts already do this...

quote:
Originally posted by tryxter
Being able to stop and restart scripts
as for restarting, see "CookieRevised's reply to Restart script through code".

quote:
Originally posted by Choli
One thing more to add to the scripting engine: The ability to call functions which return void. Currently, functions called with Interop.Call must return something. I'd like to call functions such OutputDebugString or Sleep which return nothing (void).
Already possible since there is no difference actually (PS: they return 0). And if you don't want to waste a variable which would contain nothing anyways, then call the function as a procedure... Works perfectly here.

eg:
// Do something here and suspend execution of Messenger for 5 seconds
Interop.Call("Kernel32", "Sleep", 5000);
// Print a debug Message
Interop.Call("Kernel32", "OutputDebugStringW", "Hello World");
// Continue whatever you were doing

[Image: attachment.php?pid=782889]
http://www.microsoft.com/technet/sysinternals/Mis...ous/DebugView.mspx

.png File Attachment: Image1.png (12.48 KB)
This file has been downloaded 582 time(s).

This post was edited on 01-27-2007 at 04:47 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-27-2007 04:29 PM
Profile PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: Scripting API Wishlist
I would like a function to grey out certain controls (eg. CheckBoxes) in PlusWnd objects

edit: and maybe even to make them (in)visible too...

Or a more VB-alike way of controlling the controls in a pluswnd, so that you can access and edit any property a control has through scripting.

Example: PlusWnd.ControlId.Property = value;

This post was edited on 01-27-2007 at 06:36 PM by Jesus.
01-27-2007 06:22 PM
Profile PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: RE: Scripting API Wishlist
quote:
Originally posted by Eljay
quote:
Originally posted by Jesus
I would like a function to grey out certain controls (eg. CheckBoxes) in PlusWnd objects

If you mean to disable them, this should do the trick:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), 0);

Actually it would be:
Enable:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), true);
Disable:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), false);
Because it's a BOOL over at MSDN :)
01-27-2007 06:29 PM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Scripting API Wishlist
quote:
Originally posted by vikke
Actually it would be:
Enable:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), true);
Disable:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), false);
Because it's a BOOL over at MSDN :)

quote:
Originally posted by windef.h
#define FALSE    0
#define TRUE    1

:P
01-27-2007 06:31 PM
Profile PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: Scripting API Wishlist
lol I hadn't thought about Interop.Call yet, gonna try that now. Thanks for the tip.

Anyway I still want the VB-like way of editing properties :P like in the edit in my previous post...
01-27-2007 06:39 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Scripting API Wishlist
quote:
Originally posted by Jesus
lol I hadn't thought about Interop.Call yet, gonna try that now. Thanks for the tip.

Anyway I still want the VB-like way of editing properties :P like in the edit in my previous post...

I guess I could make a script/library that allowed for that sort of thing, but it would be complex (especially as we can't extend the Plus default objects (in this case PlusWnd)).
01-27-2007 06:46 PM
Profile PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
38 / Male / Flag
Joined: Jul 2005
RE: RE: Scripting API Wishlist
quote:
Originally posted by Eljay
I guess I could make a script/library that allowed for that sort of thing, but it would be complex (especially as we can't extend the Plus default objects (in this case PlusWnd)).

would that make it just complex or impossible (for now)?

this is the thread for scripting API suggestions, so we could add "the possibility to extend Plus! default objects" to the list too (if it isn't already on the list, that is)
01-27-2007 07:06 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Scripting API Wishlist
quote:
Originally posted by Jesus
would that make it just complex or impossible (for now)?

this is the thread for scripting API suggestions, so we could add "the possibility to extend Plus! default objects" to the list too (if it isn't already on the list, that is)

I think it's already on the list, it doesn't make it impossible to do, it just means it would need to be done differently. Although it's already hard enough to do because I would have to parse the XML myself to get the ControlId of each control and afaik they are not available anywhere else.
01-27-2007 09:48 PM
Profile PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: RE: Scripting API Wishlist
quote:
Originally posted by Eljay
quote:
Originally posted by vikke
Actually it would be:
Enable:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), true);
Disable:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), false);
Because it's a BOOL over at MSDN :)

quote:
Originally posted by windef.h
#define FALSE    0
#define TRUE    1

:P

I know your code was working :) but it should be a bool :P
01-27-2007 09:54 PM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Scripting API Wishlist
quote:
Originally posted by vikke
I know your code was working :) but it should be a bool :P

Actually it doesn't make a difference. :P

quote:
Originally posted by Script Docs > Interop.Call

If the parameter is a boolean, a number is sent: 1 for true, 0 for false.
01-27-2007 10:06 PM
Profile PM Find Quote Report
Pages: (15): « First « 5 6 7 8 [ 9 ] 10 11 12 13 » Last »
« 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