|
|
|
|
@ -13,8 +13,7 @@
|
|
|
|
|
<?import javafx.scene.layout.AnchorPane?>
|
|
|
|
|
<?import javafx.scene.layout.HBox?>
|
|
|
|
|
<?import javafx.scene.layout.VBox?>
|
|
|
|
|
<?import javafx.scene.control.CheckBox?>
|
|
|
|
|
<AnchorPane prefHeight="350.0" prefWidth="600.0" stylesheets="@main.css" xmlns="http://javafx.com/javafx/17.0.2-ea"
|
|
|
|
|
<AnchorPane prefHeight="300.0" prefWidth="600.0" stylesheets="@main.css" xmlns="http://javafx.com/javafx/17.0.2-ea"
|
|
|
|
|
xmlns:fx="http://javafx.com/fxml/1" fx:controller="xyz.wbsite.jmacro.JMainController">
|
|
|
|
|
<children>
|
|
|
|
|
<Separator layoutY="-1.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="0.0"
|
|
|
|
|
@ -38,27 +37,11 @@
|
|
|
|
|
</VBox.margin>
|
|
|
|
|
</HBox>
|
|
|
|
|
|
|
|
|
|
<HBox alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
|
|
|
|
|
<children>
|
|
|
|
|
<Label contentDisplay="CENTER" prefHeight="25.0" text="开始后自动最小化"/>
|
|
|
|
|
|
|
|
|
|
<CheckBox fx:id="autoMini" focusTraversable="false">
|
|
|
|
|
<HBox.margin>
|
|
|
|
|
<Insets left="5.0"/>
|
|
|
|
|
</HBox.margin>
|
|
|
|
|
</CheckBox>
|
|
|
|
|
</children>
|
|
|
|
|
|
|
|
|
|
<VBox.margin>
|
|
|
|
|
<Insets top="3.0" bottom="3.0"/>
|
|
|
|
|
</VBox.margin>
|
|
|
|
|
</HBox>
|
|
|
|
|
|
|
|
|
|
<HBox alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
|
|
|
|
|
<children>
|
|
|
|
|
<Label contentDisplay="CENTER" prefHeight="25.0" text="执行模式"/>
|
|
|
|
|
|
|
|
|
|
<RadioButton mnemonicParsing="false" text="循环" selected="true" userData="loop" focusTraversable="false">
|
|
|
|
|
<RadioButton mnemonicParsing="false" text="循环" selected="true" userData="loop">
|
|
|
|
|
<HBox.margin>
|
|
|
|
|
<Insets left="5.0"/>
|
|
|
|
|
</HBox.margin>
|
|
|
|
|
@ -66,7 +49,7 @@
|
|
|
|
|
<ToggleGroup fx:id="runMode"/>
|
|
|
|
|
</toggleGroup>
|
|
|
|
|
</RadioButton>
|
|
|
|
|
<RadioButton mnemonicParsing="false" text="定时" toggleGroup="$runMode" userData="timing" focusTraversable="false">
|
|
|
|
|
<RadioButton mnemonicParsing="false" text="定时" toggleGroup="$runMode" userData="timing">
|
|
|
|
|
<HBox.margin>
|
|
|
|
|
<Insets left="5.0"/>
|
|
|
|
|
</HBox.margin>
|
|
|
|
|
@ -81,14 +64,14 @@
|
|
|
|
|
<HBox fx:id="modeLoop" alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
|
|
|
|
|
<children>
|
|
|
|
|
<Label text="每"/>
|
|
|
|
|
<TextField fx:id="interval" alignment="CENTER" prefWidth="35.0" promptText="时间" text="60" focusTraversable="false">
|
|
|
|
|
<TextField fx:id="interval" alignment="CENTER" prefWidth="35.0" promptText="时间" text="60">
|
|
|
|
|
<HBox.margin>
|
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
|
</HBox.margin>
|
|
|
|
|
</TextField>
|
|
|
|
|
<Label text="秒执行1次,"/>
|
|
|
|
|
<Label text="共"/>
|
|
|
|
|
<TextField fx:id="times" alignment="CENTER" prefWidth="35.0" promptText="次数" text="1" focusTraversable="false">
|
|
|
|
|
<TextField fx:id="times" alignment="CENTER" prefWidth="35.0" promptText="次数" text="1">
|
|
|
|
|
<HBox.margin>
|
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
|
</HBox.margin>
|
|
|
|
|
@ -106,7 +89,7 @@
|
|
|
|
|
<children>
|
|
|
|
|
<Label text="在"/>
|
|
|
|
|
<TextField fx:id="timing" prefWidth="150.0" promptText="如8:30:20,9:00"
|
|
|
|
|
text="8:30:20,9:00" focusTraversable="false">
|
|
|
|
|
text="8:30:20,9:00">
|
|
|
|
|
<HBox.margin>
|
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
|
</HBox.margin>
|
|
|
|
|
@ -172,7 +155,7 @@
|
|
|
|
|
<AnchorPane layoutX="262.0" layoutY="14.0" prefHeight="250.0" prefWidth="400.0" AnchorPane.bottomAnchor="0.0"
|
|
|
|
|
AnchorPane.leftAnchor="204.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
|
|
|
<children>
|
|
|
|
|
<Label layoutY="4.0" prefHeight="30.0" prefWidth="60.0" text="运行日志" AnchorPane.leftAnchor="0.0"
|
|
|
|
|
<Label layoutY="4.0" prefHeight="30.0" prefWidth="60.0" text="控制台" AnchorPane.leftAnchor="0.0"
|
|
|
|
|
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
|
|
|
<padding>
|
|
|
|
|
<Insets left="10.0" right="10.0"/>
|
|
|
|
|
@ -180,7 +163,7 @@
|
|
|
|
|
</Label>
|
|
|
|
|
<Separator layoutX="-3.0" layoutY="39.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="1.0"
|
|
|
|
|
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="30.0"/>
|
|
|
|
|
<TextArea fx:id="console" editable="false" layoutX="1.0" layoutY="41.0" prefHeight="320.0"
|
|
|
|
|
<TextArea fx:id="console" editable="false" layoutX="1.0" layoutY="41.0" prefHeight="270.0"
|
|
|
|
|
style="-fx-background-color: transparent; -fx-focus-color: no; -fx-control-inner-background: transparent;-fx-text-fill: #444444;"
|
|
|
|
|
wrapText="true" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="0.0"
|
|
|
|
|
AnchorPane.topAnchor="35.0">
|
|
|
|
|
|