What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Interface Writer | [release] 3.0 | 22/08/2010

Pages: (14): « First « 5 6 7 8 [ 9 ] 10 11 12 13 » Last »
2 votes - 5 average   Interface Writer | [release] 3.0 | 22/08/2010
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Interface Writer | [release] 2.5 | 30/01/2010
PS:
quote:
Originally posted by whiz
quote:
Originally posted by SmokingCookie
That's weird..

Could you try:
JScript code:
var length = (Interop.Call("User32.dll","SendMessageW",Edit,WM_GETTEXTLENGTH,0,0) + 1);
var Buffer = Interop.Allocate((length + 1) * 2);
var lResult = Interop.Call("User32.dll","SendMessageW",Edit,WM_GETTEXT,length,Buffer.DataPtr);
// MessageBox is a class in my script; use your AlertDialog instead
//MessageBox.Show("Copied\t: " + lResult + "\nLength\t: " + length);




var Buffer = Interop.Allocate((length + 1) * 2);
should be
var Buffer = Interop.Allocate(length * 2);
since you already increased length by one (to accomodate the null character).

As for the garbage collection, that is a very good practice indeed, but it isn't needed for scripting as Plus! already does the garbage collection for you.
Aka, code will run 'faster' if Plus! does it internally, compared to the need to parse, execute and handle yet another script line.


* CookieRevised slaps whiz around for swapping WM_GETTEXTLENGTH and WM_GETTEXT
... frustrating stuff I can imagine


;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
02-14-2010 04:32 PM
Profile PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 2.5 | 30/01/2010
quote:
Originally posted by CookieRevised
var Buffer = Interop.Allocate((length + 1) * 2);
should be
var Buffer = Interop.Allocate(length * 2);
since you already increased length by one (to accomodate the null character).
Fair enough, I'll sort that.

quote:
Originally posted by CookieRevised
As for the garbage collection, that is a very good practice indeed, but it isn't needed for scripting as Plus! already does the garbage collection for you.
Aka, code will run 'faster' if Plus! does it internally, compared to the need to parse, execute and handle yet another script line.
Yep, I'll take that out.  :)

quote:
Originally posted by CookieRevised

* CookieRevised slaps whiz around for swapping WM_GETTEXTLENGTH and WM_GETTEXT

... frustrating stuff I can imagine


;)
Yes, it happens.  ;)
02-14-2010 06:32 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: RE: Interface Writer | [release] 2.5 | 30/01/2010
quote:
Originally posted by CookieRevised
[...]
should be
[...]
since you already increased length by one (to accomodate the null character).

Stupid :wall: :P
02-14-2010 08:09 PM
Profile PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 2.5 | 30/01/2010
And...  version 2.7 is out!  Only a few updates, so I'm not bothering to update the screenshot.  Enjoy!  :P

Ready to download it?  Click here to start the download...
02-16-2010 02:57 PM
Profile E-Mail PM Find Quote Report
billyy
Full Member
***

Avatar

Posts: 103
Reputation: 1
36 / Male / Flag
Joined: Feb 2010
Status: Away
RE: Interface Writer | [release] 2.7 | 16/02/2010
Wow lovely O_O
aaaand it crashes msn O_O

This post was edited on 02-16-2010 at 04:24 PM by billyy.
I'm new at this, so don't expect me to be usefull any
time soon. But if i behaved you could rep me :P
02-16-2010 04:20 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 2.7 | 16/02/2010
quote:
Originally posted by billyy
Wow lovely O_O
aaaand it crashes msn O_O
Does it?  What were you trying to do?
02-16-2010 04:58 PM
Profile E-Mail PM Find Quote Report
billyy
Full Member
***

Avatar

Posts: 103
Reputation: 1
36 / Male / Flag
Joined: Feb 2010
Status: Away
RE: Interface Writer | [release] 2.7 | 16/02/2010
well it just crashed as soon as i installed it.. but now works fine..
doesnt have to be something about the script :/

Works awesome, but it would be even better if you could just set the left offset for a group of controls.

This post was edited on 02-17-2010 at 05:44 PM by billyy.
I'm new at this, so don't expect me to be usefull any
time soon. But if i behaved you could rep me :P
02-16-2010 05:55 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 2.7 | 16/02/2010
quote:
Originally posted by billyy
Works awesome, but it would be even better if you could just set the left offset for a group of controls.
That's not a bad idea...  it could even be so that you can select any or all of the items in a grid, and set one or more values to them all.  I'll have a think about it...  :)
02-17-2010 08:13 PM
Profile E-Mail PM Find Quote Report
billyy
Full Member
***

Avatar

Posts: 103
Reputation: 1
36 / Male / Flag
Joined: Feb 2010
Status: Away
RE: Interface Writer | [release] 2.7 | 16/02/2010
sweet :)
I'm new at this, so don't expect me to be usefull any
time soon. But if i behaved you could rep me :P
02-17-2010 08:23 PM
Profile E-Mail PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: Interface Writer | [release] 2.7 | 16/02/2010
If anyone has any other ideas, feel free to post them and I'll make a to-do list on the main post.  ;)
02-18-2010 08:57 AM
Profile E-Mail PM Find Quote Report
Pages: (14): « 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