Things, Hotkeys and Buttons

Anything QL Software or Programming Related.
Post Reply
Tinyfpga
Gold Card
Posts: 304
Joined: Thu Sep 27, 2018 1:59 am

Things, Hotkeys and Buttons

Post by Tinyfpga »

Postby Giorgio Garabello » Fri Dec 10, 2021 7:54 am
Normally they (QT files) are put in some folder and then from Qascade or some icon you connect to QTImage_obj
and
Postby Derek_Stewart » Sun Dec 12, 2021 3:37 pm
I have QTImage on my QPC2/SMSQmulatorQ68 system, which I define a Hotkey and Button to load the programme:
Derek's reply to my question "Do you know how to make a button that executes a file?" encouraged me to actually read the QPAC2 manual. It took me a while to find it on Dilwyn's site. As usual at first reading on screen I was unable to understand it, so when I find the time I will print it out.

After some crashing of SMSQ/E (caused by trying to LRESPR a compiled Basic program), I managed to answer my own question but without understanding what I had just done. In my case the Button does not work as described in the manual.

The relationship between Things, Hotkeys and Buttons are not clear to me but after some experimenting I get the impression that buttons only work with Things. Thus if one wants to create a Button that executes a compiled BASIC program one needs first to thingify it. ( thingify is a late 19th century word meaning to make or turn into a thing)

I may try to translate the relevant bits of the QPAC2 manual into plain English so that mere mortals can better understand it.


Derek_Stewart
Font of All Knowledge
Posts: 4693
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: Things, Hotkeys and Buttons

Post by Derek_Stewart »

Hi,

Qpac2 uses the Extended Environment which is integrated into SMSQ/E or loadable with : PTR_GEN, WMAN, HOT_REXT in that order.

With these additions, programmes can be made resident, loaded by a Hot Key, by using the ALT key and the pre defined key press.

I mostly use Hot Keys defined in the boot file with the ERT command, for example:

ERT HOT_LOAD ("i", "win1_qtimage_qtimage")

Using ALT i loads QTImage

I used to define a Button based on the Hotkey:

BT_HOTKEY 'i',"QTImage"

But if Hotkeys are not used, a button can be created by:

BT_EXEC "win1_qtimage_qtimage_obj",QTImage"

All in the badly written manual from Qjump...


Regards,

Derek
Post Reply