I've just replaced my old laptop (Windows XP) with a new one running 7. If it's relevant, I installed Reginald in c:\program files\ rather than the x86 directory (to be honest, I don't know what the difference is)
I'm having a problem with a script that has been working for years and hasn't been changed. I'm running it in RPC - here's the basic code. First, a script that will position the window in any one of the four corners
PROCEDURE EXPOSE guiwindow
ARG position, max_x, max_y, x_size, y_size
SELECT position
WHEN 'TL' THEN
DO
SAY "About to do the guisetctlplacement"
guisetctlplacement(,0,0)
SAY "After doing the guisetctlplacement"
END
WHEN 'TR' THEN
guisetctlplacement(,max_x - (x_size + 7),0)
WHEN 'BL' THEN
guisetctlplacement(,0,max_y - (y_size + 7))
WHEN 'BR' THEN
guisetctlplacement(,max_x - (x_size + 7),max_y - (y_size + 7))
OTHERWISE
NOP
END
SAY "About to return with 0 from place_window.rex"
RETURN 0
Here's the call to it from the base script (the commented code is me trying to figure out what's failing)
SAY guisetctlplacement(, , , x_size, y_size, ,)
SAY guigetctlplacement(, 'dummy1', 'dummy2', 'wdw_width', 'wdw_height')
SAY place_window.rex('TL')
Here are the console results from running the code (note that I'm not seeing the text About to return with 0 from place_window.rex
About to do the guisetctlplacement After doing the guisetctlplacement
I tried testing it using a new window script which works fine. Any suggestions as to how to track it down would be much appreciated.
As a couple of appends, I should mention that I replaced the call to place_window.rex with the string GuiSetCtlPlacement(,0,0) and it worked fine. I also check the value in GuiWindow on entry to place_window.rex and it seemed to contain a "reasonable" value. The actual error I'm getting is the following Line #589, err45.1: Data expected on RETURN instruction because routine "PLACE_WINDOW.REX" was used in an expression
|