What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Detect x64 through JScript & EM_SETSEL on x64

[?] Detect x64 through JScript & EM_SETSEL on x64
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [?] Detect x64 through JScript & EM_SETSEL on x64
:wall: Gotta get some reading lessons :S

Anyways, I started at the MSDN article. I guess I'd post some code?

JScript code:
// Example
var Text = "Hello world!";
var pText = "Hello world";

var SetSel = function(Start,End) {
    Interop.Call("User32.dll","SendMessageW",hWnd,EM_SETSEL,Start,End);
}

(...)

SetSel(Text.length,pText.length);

NB: the hWnd parameter is known.

This post was edited on 02-02-2010 at 07:42 PM by SmokingCookie.
02-02-2010 07:39 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Detect x64 through JScript & EM_SETSEL on x64 - by SmokingCookie on 01-31-2010 at 07:11 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by Mnjul on 01-31-2010 at 07:30 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by SmokingCookie on 01-31-2010 at 07:35 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by TheBlasphemer on 02-02-2010 at 12:03 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by SmokingCookie on 02-02-2010 at 07:39 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by matty on 02-02-2010 at 08:35 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by SmokingCookie on 02-02-2010 at 08:40 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by matty on 02-02-2010 at 08:46 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by SmokingCookie on 02-02-2010 at 08:53 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by TheBlasphemer on 02-02-2010 at 10:15 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64 - by SmokingCookie on 02-03-2010 at 05:14 PM


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