Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2008, 08:44 PM
Junior Member
 
Join Date: Apr 2008
Posts: 29
Default some question about to use sendmessage

hello,SWFKIT! i'm sorry for bothering again.i have a few problems,sincerely hope
you answer this.as follows
1.Why can not the code below normal execution
Application.sendMessage(Window.find("CabinetWClass ","test").handle, 0x0010,0,0);//WM_CLOSE

2.in the example bellow,how to determine The third parameter
Application.sendMessage(getMainWnd().handle, 0x0112, 0x800c,0);//WM_SYSCOMMAND

3 why is similar to the following code Is wrong
Application.sendMessage(Window.find("CabinetWClass ","test").handle, WM_SYSCOMMAND,SC_CLOSE,0)
4the Application.sendMessage mothed and the dllimport "user32.dll" * * SendMessage(****) as * mothed ,which is more powerful
can You answer more detailed ?
thank you advance!
Reply With Quote
  #2 (permalink)  
Old 04-28-2008, 02:56 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: some question about to use sendmessage

It's the same as the function in user32.dll, i.e. it's a wrapper of the function in user32.dll.

To close a window, instead of sending a message, you can use the following code
Code:
Window.find("CabinetWClass","test").close();
About the third parameter, you have to look for it in MSDN. And SC_CLOSE is a contant that has not been defined in ffish script, so you will have to use 61536. If you cannot get its value, please try "SC_CLOSE=" on google.
Reply With Quote
  #3 (permalink)  
Old 04-28-2008, 11:05 AM
Junior Member
 
Join Date: Apr 2008
Posts: 29
Default thank you very much!

but this is also a problem don't understand .
3 why is similar to the following code Is wrong
Code:
Application.sendMessage(Window.find("CabinetWClass","test").handle, WM_SYSCOMMAND,SC_CLOSE,0)
why can't use WM_SYSCOMMAND and SC_CLOSE? is this possible with SWFKIT? Find those values are very troublesome.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:10 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.