mestnyi wrote:What do you expect from that code?
I want to receive true if is the handle
Why do you think just 20 or 100 would be a handle?
Why don't you test 21, 47, 188, ... as well?
mestnyi wrote:Code: Select all
hWnd=OpenWindow(10, 0, 0, 300, 200, "", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered)
There you already have a window handle. What's wrong with it?
And after you have got that handle, you are overwriting the value of that variable with 20 and 100, respectively. That does not make any sense.
I think you should explain more in detail, what you actually want to achieve.