Re: [Ql-Users] Auto-hide

2013-04-18 Thread Dilwyn Jones
That was /exactly/ my concern when I asked how did you do that. As far 
as I know, in the

classic PE a ptr read in a background window will just block.

With QPTR, this works (on QPC  SMSQmulator) even when bgio is switched 
off:


100 OPEN_NEW#0,con
110 WINDOW#0,0,0,0,0
120 OUTLN#0,0,0,0,0
130 REPeat lp%
140term%=48
150RPTR #0,xabs%,yabs%,term%,swnum%,xrel%,yrel%,bt$
170IF yabs%SCR_YLIM-50:BEEP 7000,10
180PAUSE 150
190 END REPeat lp%

wolfgang
Great! Thanks. (For anyone wanting info about the RPTR parameters it's on 
page 38 of my QPTR ref guide)


While tinkering with the Easyptr equivalent, I think I may have found a bug 
in Easyptr's RDPT command:


RDPT #chan%,tvec%,xpos%,ypos%

Should return the absolute pointer coordinate in xpos% and ypos% if passed 
positive. It does indeed if pointer position changes for xpos%, but not for 
ypos%, which always keeps the calling value.


ptrmenr_cde 4.09 - just to give Marcel a migraine ;-)

Easily worked around by using DIM pr%(15) : PVAL #chan%,pr% : ypos% = 
pr%(15)


(always assuming it's not a bug in the first place and just me being totally 
stupid as usual).


Dilwyn 


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Latest SMSQMulator

2013-04-18 Thread jms1

Dear Wolfgang,

I have tried the latest version and here are the results.

C:\Users\John_2java -version
java version 1.6.0_03
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)

C:\Users\John_2java -jar 
e:\PC\SMSQmulator\SMSQmulator\SMSQmulator6\SMSQmulator.jar


Produces an empty SMSQmulator black screen. The pointer disappears in 
the black screen. The cooling fan works continually. Config shows that 
the win file is correctly found. On loading SMSQE nothing happens, 
except the cooling fan continues to work continually.


Pressing the close button and the command prompt returns with no error 
message, and the cooling fan quickly stops


Repeating C:\Users\John_2java -jar 
e:\PC\SMSQmulator\SMSQmulator\SMSQmulator6\SMSQmulator.jar

again, the same happens.

The continual running of the fan suggest that SMSQmulator is in a 
continual loop.


If I reset the SMSQmulator I get the error message
Your SMSQE file is too old, please upgrade to the one that came with 
this version of SMSQmulatorand the fan slows down and eventually stops.


When I press the error message close button I get the error message
Illegal instruction $494f at $100080
m68k.cpu.CpuException: Interrupt vector not set for uninitialised 
interrupt vector 4

at smsqmulator.MC68000Cpu.raiseException(MC68000Cpu.java:1648)
at smsqmulator.MC68000Cpu.execute(MC68000Cpu.java:176)
at smsqmulator.MonitorGoThread.run(MonitorGoThread.java:136)

On closing SMSQmulator the command line prompt returns.

All files are date modified  14/04/2013 13:18

Why my version of Vista should be awkward I have no idea.

John
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm