Problem with miniwindow hotspot under the PHP

Posted by Yergo on Fri 31 Oct 2008 02:57 PM — 5 posts, 21,405 views.

Poland #0
Hi there

When testing new features in mushclient I ran in such a problem: when clicking hotspot, mushlient is opening window informing me that there mas a "Typemismatch" error, and nothing else happens.

I'm using php 5.2.6. This is pack of files I'm trying to use:
http://eros.vlo.gda.pl/~bratex/arka/erreport.zip
Australia Forum Administrator #1
Those callback functions expect a return value - PHP is picky about that.

Add to the end of the callback functions:


return 0;


I tested your script and that stopped the error message.
Poland #2
Thanks Nick. Anyway it should be pointed when example in "Hotspot callback functions" part of http://www.gammon.com.au/mushclient/mw_hotspots.htm

Thanks once again :)

Edit:
Ok, but theres a new problem. In minutes there will be new files at the same location. The problem occurs when trying to increase size of mini - capturing mouse position ends when the miniwindow ends. I mean than when I release lmb far away from right miniwindow side, the mouse x-position returned with WindowInfo contains the most right pixel of mini position, not where mouse was released in real. So what to do, when I want to increase size with one, single, long move?
Amended on Fri 31 Oct 2008 09:29 PM by Yergo
Australia Forum Administrator #3
I have amended the documentation to make that clearer.

As for the resizing, I was about to make another post saying I did not think your code would work. There is presently no provision for dragging things in miniwindows, and the mouseup event will only apply if the mouse is released in the same miniwindow, which in your case is quite small.

The next version should have provision for dragging, which will make resizing windows, and moving them, practical.
Poland #4
Ehh.. So I'm waiting for new version once again. "'Better' is the enemy of 'good'" ;D