CreatePanel#
Creates a window on the screen that can contain buttons.
Syntax
<CreatePanel name x y width height>
Parameters
Nameis the name of the panel.Xis the horizontal screen coordinate of the panel’s upper left corner.Yis the vertical screen coordinate of the panel’s upper left corner.Widthis the panel’s width.Heightis the panel’s height.
Remarks
Panels get destroyed when you load or unload a script.
Panels are windows. You can use all of HotkeyNet’s window commands with panels.
Use AutoExec
You should create all your buttons and panels in an AutoExec command that executes automatically when the script loads.
Example
<Command AutoExec> <CreatePanel P1 100 100 50 50>Panels are windows, and you can use all of HotkeyNet’s window commands with them. For example, here’s a hotkey that makes a panel stay on top of other windows:
<Hotkey F2> <TargetWin P1> <AlwaysOnTop on>
Related topics