Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit c550e3f

Browse files
Update DOCUMENTATION.md
1 parent 24e99ef commit c550e3f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

DOCUMENTATION.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ GuiControl, Action, ControlID, Param1, Param2, Param3, Param4
915915
- `Show`: Show the control.
916916
- `Enable`: Enable the control.
917917
- `Disable`: Disable the control.
918+
- `Destroy`: Deletes the control.
918919
- `Font`: Set the font size or color of the control.
919920

920921
- `ControlID`: The unique identifier of the GUI control to be manipulated.
@@ -986,6 +987,14 @@ Sleep, 1500
986987
GuiControl, Picture, Image1, https://trackmania.exchange/maps/screenshot/normal/165572
987988
```
988989

990+
```ahk
991+
Gui, Show, w500 h500
992+
Gui, Add, Button, x10 y10 w140 h40 vButton1, button1
993+
; wait so we can see the button here
994+
Sleep, 2500
995+
GuiControl, Destroy, Button1
996+
```
997+
989998
#### Note:
990999

9911000
- Ensure that the specified `ControlID` exists within the GUI environment before invoking `GuiControl`.
@@ -4889,10 +4898,11 @@ Here's a step-by-step guide to getting started with backend development in HTH u
48894898
1. Write your HTH code, making use of the `getDataFromEndpoint()` function to interact with the backend.
48904899
2. Run your HTH code.
48914900
3. Once executed, you'll find an `index.html` file as output.
4892-
4. Locate the `server.py` file generated by HTH if you've used the `getDataFromEndpoint()` function. (ONLY in HTH v1)
4901+
4. Locate the `server.htpy` file generated by HTH if you've used the `getDataFromEndpoint()` function. (ONLY in HTH v1)
48934902
5. Ensure Python and Flask are installed on your system.
4894-
6. Run the `server.py` file using Python.
4895-
7. Your Python backend is now running and ready to handle requests from your HTH frontend.
4903+
7. Transpile the `server.htpy` file using [HTpy](https://github.com/TheMaster1127/HTpy).
4904+
7. Run the `server.py` file using Python.
4905+
8. Your Python backend is now running and ready to handle requests from your HTH frontend.
48964906

48974907
By integrating Python with HTH, developers can leverage the power of Python's extensive libraries and frameworks for building robust backend systems while enjoying the simplicity and ease of use of the HTH programming language.
48984908

0 commit comments

Comments
 (0)