|
|
V.I.P.
- Group:
- Member
- Posts:
- 496
- Reputation:
- +31
- Location:
- Buenos Aires
- Status:
| |
| Tienes alguna idea si es posible recargar este modulo sin necesidad de presionar una tecla, este modulo hace que recargue de nuevo el layout , me gustaria que lo haga automaticamente
// -------------------- // Load Modules // -------------------- fe.load_module("helpers");
// -------------------- // Plugin User Options // -------------------- class UserConfig </ help="A plugin that reloads layouts with a key press." /> { </ label="Reload Layout Key", help="The key that triggers the layout to reload. Use Custom 2. Remember to set the key in Controls. Set the key to R", options="Custom1, Custom2, Custom3, Custom4, Custom5, Custom6", order=1 /> reloadKey="Custom2"; }
// -------------------- // Reload // -------------------- class Reload { config = null;
reloadKey = null;
constructor() { // Config config = fe.get_config();
// Reload Layout reloadKey = config["reloadKey"].tolower(); fe.add_signal_handler(this, "reload");
}
// Reload Layout on Key Press - R key function reload(str) { if (str == reloadKey) fe.signal("reload"); return false; } } fe.plugin["Reload"] <- Reload();
|
| |