|
step6: Is this the launcher ?!You can now display messages, buttons, and images, but you can't lay out the screen, and the screen looks a little uncool. Now let's make some adjustments around that. The new command is
It is . When displaying characters and buttons, they are always arranged vertically in the order in which they are displayed from the upper left of the screen. This doesn't mean that there was no layout. Actually, in HSP, the position where characters and buttons are displayed is the current position. I call it. In word processing software, the position where you start typing characters is called a cursor or caret, and for some reason HSP displays characters and buttons from the current position. You can't see it on the screen, but think of it as having a cursor on the screen that says "I'll put a button or letter from here." After displaying a character or button, the current position automatically moves to the beginning of the next line. That's why, until now, they were lined up vertically. The "pos" instruction changes this current position. For example,
If specified as , the current position will be moved to the position where the X coordinate is 100 and the Y coordinate is 50, and then the message "Yaho" will be displayed. The coordinates of (X, Y) are in 1-dot units with the upper left as (0,0), so in the above example, the 100th dot from the left and the 50th dot from the top are "Yaho". Is displayed. Similarly,
If you write like , a button with "OK" written at the coordinates (30,200) will be displayed. To do. And one more. Change the current position with the "pos" instruction After that, after displaying characters and buttons, Karen automatically starts the next line. When the to position is changed, align it with the X coordinate specified by the "pos" command. Can be done. in short,
Messages like are lined up vertically. Now, let's learn another command. It is, for example,
Use it like this. The "color" command changes the color of the displayed characters. There is a function. It seems difficult because there are 3 parameters, but It is said that the screen of the computer displays three colors, R, G, and B. I don't think it's difficult for those who know that. color Red brightness value, green brightness value, blue brightness value Specify the color like this. Up to 16.7 million colors on Windows This is the simplest way to get it out and specify it. The brightness value is how bright the component is. 0 is the most It is dark and 255 is the brightest. How to specify the color If you don't know, just remember the following settings.
Now, when you reach here, display your favorite image file with a free layout. You should now be able to write scripts to select and display. Here's one more command you need to make a launcher. prize.
The launcher is the selected program (application)
A program like a menu to run. With the touch of a button
It's a Windows notepad or a menu that starts a calculator.
vinegar. It is this "exec" instruction that makes this possible. This is HS
Call another program (application) from P and start it
It is an instruction to go. Easy to use,
|
ONION software Copyright 1997-2009(c) All rights reserved. |