SendMessage and Widget.OnTop

Hello again,

I have two questions, one relating directly DesktopX and the other is relative to the syntax of a command

First

I have seen that there's a command "Widget.OnTop"
Is there a way to cancel it after this command has been used?
in another words, I would like to put in my cutom right click menu the option to put on top (here no problem) and to cancel it (here problem )

Second

I have searched 2 days but I can't find a clear article of how to write a SendMessage command
Is this command exists in VBScript? I begin to doubt...
And if yes, what is the syntax? I have searched a lot of websites, I can't find the correct syntax.

What I have found is that:
Code: vb
  1. SendMessage (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any)
  2. And the code:
  3. Dim lNotepadHwnd as long
  4. Dim lNotepadEdit as long
  5. Dim sCaption as string
  6. lNotepadHwnd = Findwindow("Notepad",vbnullstring)
  7. lNotepadEdit = FindWindowEx(lNotepadHwnd,0&,"Edit",vbnullstring)
  8. sCaption = InputBox("What do you want to say?")
  9. SendMessage lNotepadEdit, WM_SETTEXT, 256, sCaption

and off course... it is not for the VBS of desktopX
I can't even know for what it is... I am totally confused between VBS, VBA, VB, VB for excel, VB for word etc... That is why I have to ask the next question

Important question:

Is there a good website that presents clearly the commands we can use in VBScript? Microsoft website (MSDN) is as clear as can be the rock water... and I don't like to have to ask for things for are surely easy to do... if we know where to get informations how to do it....
When I was programming in Php I used a website that was displaying a collection of functions like: ftp_size, ftp_rename, ftp_delete, ftp_site, call_user_func_array etc...
Is there one place on the internet where there's a similar list for the VBScripts commands. So a list like that: MsgBox, Set, Call, On Error Resume Next, SendMessage (if it exists...)

Thank you for any answer...
6,537 views 3 replies
Reply #1 Top
As far as I know there is no way to set z-order through script except to bring it to the front (Object.Ontop, Widget.Ontop).

Widget.Ontop, iirc, is not permanent so it will lose focus (or move down in the z-order) once you click on anything else.


Not really sure what you mean by send message.


I'd recommend W3Schools for vbscript references

Here's some other helpful links:

DX Developer's Guide
Wincustomize Wiki
RomanDA Step by Step Tutorial Listing
sViz DX Tutorial Index
Even more DesktopX Tutorials

DesktopX Script Helper Widget
Reply #2 Top
Don't think there is a vbscript equivalent to send message.

The best bet for detailed information about vbscript is MS Documentation
WWW Link
Reply #3 Top
Muchas gracias for the answers