Forum Discussion
doublewood
15 years agoOccasional Contributor
Jared,
Thanks for the reply. I am using VBscript(newbie at that) and everything seems to be just fine. except the last line give me a error by the interpreter. Code completion knows about Win32API and SetWindowPos so it look like the parameter is not correct.
Win32API.SetWindowPos( w1.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE)
When I right click on the "Go to error" context menu the cursor show up between w1.Handle and HWND_TOPMOST
also the line just above it
w1 = p.Window("TUserForm","UserFormTemp")
is TUserForm a constant that I should use while the second is the specific name for my userforms
Regards
Mark Lin
Thanks for the reply. I am using VBscript(newbie at that) and everything seems to be just fine. except the last line give me a error by the interpreter. Code completion knows about Win32API and SetWindowPos so it look like the parameter is not correct.
Win32API.SetWindowPos( w1.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE)
When I right click on the "Go to error" context menu the cursor show up between w1.Handle and HWND_TOPMOST
also the line just above it
w1 = p.Window("TUserForm","UserFormTemp")
is TUserForm a constant that I should use while the second is the specific name for my userforms
Regards
Mark Lin