New version & new dzForm object for desktop
Hi to all,
A new
dzHW version is here with more functions and with a new
dzForm control for desktop only.
I thought that Form control of B4PPC is not enough for desktop applications so I created this.
For how to use dzForm control see attached B4PPC sample. Documentation for dzForm I'll not post (I hate writing documentation especially in a foreign language) but I think it is simple to understand it. Ask for everything you do not understand.
A simple description for dzHW added function follows.
GetProcesses: Returns in a table of string the names of active processes
KillProcess("ProcessName"): Kills the process
GetProcessHandle("ProcessName"): Returns the handle of process with name ProcessName
GetModuleHandle("Modulename"): Return the Handle for a loaded module. ModuleName = "null" returns the handle of myapp
GetActiveWindowHandle: Returns the Handle of the Active Window
GetWindowHandle("ClassName", "WindowName"): Returns the handle of Window with class name ClassName and window name WindowName. ClassName and or WindowName can be null
GetClassName(hWnd, StrLen): Returns in a string the class name of the given hWnd. StrLen the maximum length of class name to return
GetWindowtext(hWnd, StrLen): Returns in a string the window text of the given hWnd. StrLen the maximum length of window name to return
SetWindowText(hWnd, WindowText): Sets the Window Title or Caption of window eith Handle hWnd
GetParent(hWnd): Returns the parent window handle of window with handle hWnd
GetWindowFirst(hWnd): Returns the handle of the first in order window of window with handle hWnd
GetWindowNext(hWnd): Returns the handle of the next in order window of window with handle hWnd
GetWindowChild(hWnd): Returns the first child window of thw window with handle hWnd
PostMessage(hWnd, wMsg, wParam, lParam): Posts a message to the window with hWnd handle
ShowWindow(hWnd, nCmdShow): Send mCmdShow command to the window with handle hWnd. If mCmdShow = 0 hides the window. If mCmdShow = 5 shows the window. See winuser.h as above
GetWindowRect(hWnd): Return a table(4) of int32 with left, top, right, bottom of window with Handle hWnd
IsWindowVisible(hWnd): Returns true if the window with handle hWnd is visible
IsWindow(hWnd): Returns true if the window with handle hWnd is window (!!!)
For how to use these functions see dzSpy I've posted here
http://www.b4x.com/forum/showthread.php?t=452
Desktop version source code can be found here
http://www.terracom.gr/basic4ppc/files/dzHWdesktop.zip
Device version source code can be found here
http://www.terracom.gr/basic4ppc/files/dzHW.zip
Attached dzHW-3.zip contains compiled DLLs.
Attached dzForm-sample.zip contains .sbp sample dzHWDesktop.dll and FormLib.dll.
Regards