What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Pseudo Etape Version Fr [Need Help]

Pseudo Etape Version Fr [Need Help]
Author: Message:
D3BuGgeR
New Member
*

Avatar

Posts: 3
41 / Male / Flag
Joined: Jan 2008
O.P. Huh?  Pseudo Etape Version Fr [Need Help]
Hi men,

I need your help for my new script.

I don't know how i can get position end of Selected text in EditControl.

This is the code for get position start (Start.ReadDWORD(0)):


code:
    // Two Win32 Messages that we will need to send later
    var EM_GETSEL = 0xB0;
    var EM_SETSEL = 0xB1;
    // Allocate some memory for the cursor index
    var Start = Interop.Allocate(4);

    // Get where the cursor is in the input box
    Interop.Call("user32", "SendMessageW", PanelPseudo.GetControlHandle("pseudo"), EM_GETSEL, Start, 0);

    var text = PanelPseudo.GetControlText("pseudo");
    var firstHalf = text.substring(0, Start.ReadDWORD(0));
    var secondHalf = text.substring(Start.ReadDWORD(0), text.length);

But How can i get End selection??

You can find my script in attachment and 2 pictures of Pseudo Etape.

For info, when this script is running, it change your nick  by a nick step, understand?

[Image: My_Screenshot_61.jpg][Image: My_Screenshot_62.jpg]

Thanks for your Answer and sorry for my english..

.plsc File Attachment: PseudoEtape.plsc (129.09 KB)
This file has been downloaded 133 time(s).

This post was edited on 01-08-2008 at 09:44 AM by D3BuGgeR.
01-07-2008 10:45 PM
Profile E-Mail PM Find Quote Report
D3BuGgeR
New Member
*

Avatar

Posts: 3
41 / Male / Flag
Joined: Jan 2008
O.P. RE: Pseudo Etape Version Fr [Need Help]
Cyril (Patchou) si tu vois ce message, j'aimerais entrer en contact avec toi, Merci d'avance.
01-08-2008 11:05 AM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Pseudo Etape Version Fr [Need Help]
You don't need to call the Windows API functions directly for this, Plus! already has helper functions to do the same thing.

Download the Official Scripting Documentation and look at the following pages:
  • Objects Reference > PlusWnd Object > Functions > Edit and RichEdit controls > EditBox_GetCurSelStart
  • Objects Reference > PlusWnd Object > Functions > Edit and RichEdit controls > EditBox_GetCurSelEnd
01-08-2008 11:15 AM
Profile PM Find Quote Report
D3BuGgeR
New Member
*

Avatar

Posts: 3
41 / Male / Flag
Joined: Jan 2008
O.P. RE: Pseudo Etape Version Fr [Need Help]
Oh yes Thanks you Eljay.
Thanks you.
Thanks you.

Best regards.. :D
01-08-2008 11:22 AM
Profile E-Mail PM 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