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:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [?] Detect x64 through JScript & EM_SETSEL on x64
Ramifications: what sideeffects or what would happen by doing it.

Have you tried EM_GETSEL to see where the starting position is?

Stupid question but what do you have EM_SETSEL defined as? should be 0xB1

Is it an Edit or Rich Edit control? You cannot use that message for a control other than an edit or rich edit control.

quote:
Originally posted by http://msdn.microsoft.com/en-us/library/bb761661%28VS.85%29.aspx
EM_SETSEL

Selects a range of characters in an edit control. You can send this message to either an edit control or a rich edit control.

Look at the CB_SETEDITSEL message instead

wParam isn't used in this message. You will need to make a word consisting of the low and high bytes.

Javascript code:
var makeword = function (a,b) { return a | (b << 8); }

Where A is the LowByte and B is the HighByte.

This post was edited on 02-02-2010 at 08:57 PM by matty.
02-02-2010 08:46 PM
Profile E-Mail 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