What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Thx!] CheckBoxControl/Attributes/Has3States

Pages: (2): « First « 1 [ 2 ] Last »
[Thx!] CheckBoxControl/Attributes/Has3States
Author: Message:
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: RE: [Help] CheckBoxControl/Attributes/Has3States
quote:
Originally posted by Dennis Mike
felipex say how to set the checkbox status "Partial Check"?


PlusWnd.SendControlMessage(controlid, 0xF1, 2, 0)



PlusWnd.SendControlMessage(controlid, 0xF1, 0xF1, 0)

- or -

Interop.Call("user32", "SendMessageW", PlusWnd.GetControlHandle("yourcheckboxId"), 0xF1, 0xF1, 0)

you should use API  hehehe

so, it works for me :D
03-18-2007 04:07 AM
Profile E-Mail PM Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. RE: [Help] CheckBoxControl/Attributes/Has3States
hum confusing with parameter
quote:
var BM_GETSTATE = 0xF2
var BS_CHECKBOX = 0x2

var res = Interop.Call("user32", "SendMessageW",  PlusWnd.GetControlHandle("yourcheckbox"), BM_GETCHECK,BS_CHECKBOX, 0)



This post was edited on 03-18-2007 at 05:58 AM by Flash.
My script: Psdp
03-18-2007 05:57 AM
Profile PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [Help] CheckBoxControl/Attributes/Has3States
var BS_CHECKBOX = 0x2
var BM_GETCHECK = 0xF0

:D
03-18-2007 07:28 AM
Profile E-Mail PM Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. RE: [Help] CheckBoxControl/Attributes/Has3States
hum, and how for set the State? ?

edit:i maked that :P
code:
function ClickCheck(w,c,n) {
    if (n == null) return w.SendControlMessage(c, 0xF0,0x2, 0)
    else if (n < 2){
        w.Button_SetCheckState(c,(n == 1)?true:false)
    }
    else w.SendControlMessage(c, 0xF1,0x2, 0);
}

This post was edited on 03-18-2007 at 04:27 PM by Flash.
My script: Psdp
03-18-2007 03:48 PM
Profile PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [Help] CheckBoxControl/Attributes/Has3States
you need to know the checkbox's handle:
var CheckBoxHwnd = PlusWnd.GetControlHandle("your_checkbox_ControlId");

// set the "Partial Check" state
Interop.Call("user32", "SendMessageW", CheckBoxHwnd, 0xF1, 0xF1, 0)


Edit: 
w.SendControlMessage(...)
woorks too, but i like API

:)

This post was edited on 03-18-2007 at 04:12 PM by felipEx.
03-18-2007 04:11 PM
Profile E-Mail PM Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. RE: [Help] CheckBoxControl/Attributes/Has3States
watch my edit post ;)
My script: Psdp
03-18-2007 04:28 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] 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