This library, actually called "Slushi Windows API", is a library for Haxe, with a lot of Windows API functions, to use it in your Haxe projects.
the functions you can use can be found in winapi/WIndowsAPI.hx.
This is a simplified version of the Windows API that I have in my Friday Night Funkin' Engine, Slushi Engine.
Define WINDOWS_API_LOGS for enable logs of this library.
Get from haxelib:
haxelib install sl-windows-apiOr from GitHub for more recent versions:
haxelib git sl-windows-api https://github.com/Slushi-Github/SL-Windows-APIFor functions where something related to the window is modified, it is necessary to use this function to define the window title (it is recommended to leave this in an update function).
// import the library.importwinapi.WindowsAPI;
// Set the title of the main window, this example is with Lime.WindowsAPI.reDefineMainWindowTitle(lime.app.Application.current.window.title);Set a custom color for the main window border
// import the library.importwinapi.WindowsAPI;
// Set the color of the main window border, in RGB format.WindowsAPI.setWindowBorderColor(255, 0, 0);Get and move the desktop icons window:
// import the library.importwinapi.WindowsAPI;
// Move the desktop icons window.WindowsAPI.moveDesktopWindowsInXY(WindowsAPI.getDesktopWindowsXPos() +20, WindowsAPI.getDesktopWindowsYPos() +134);Windows GDI effects are effects that, in this case, run in full screen mode. This comes from the latest and final version of Slushi Engine (for the second-year anniversary song “C18H27NO3”), now ported outside the engine to this library.
As far as I know, only one effect can be used at a time.
List of usable effects:
DrawIcons: This effect is based on the MENZ malware source code, it is a very fast effect that can be used to draw icons on the screen and wherever you drag the Windows cursor.ScreenGlitches: This effect is based on the MENZ malware source code, it is a very fast effect that can be used to make glitches in the screen.ScreenBlink: This effect is based on the MENZ malware source code, it is a very fast effect that can be used to invert the colors of the screen.ScreenShake: This effect is based on the ??? (I don't remember the name) malware source code, it is a very fast effect that can be used to make screen shakes.ScreenTunnel: This effect is based on the MENZ malware source code, it is a very fast effect that can be used to make tunnel effect in the screen.SetTitleTextToWindowsTitle: (INCOMPLETE) This effect is based on the MENZ malware source code, that can be used to change the text of the window title of ALL visible windows.
// import the libraryimportwinapi.gdi.WindowsGDI;
importwinapi.gdi.WindowsGDIThread;
// Start the threadWindowsGDIThread.startWindowsGDIThread();
// Prepare/Set the effectWindowsGDI.prepareGDIEffect('ScreenGlitches', 0);
// Enable the effectWindowsGDI.enableGDIEffect('ScreenGlitches', true);
// When you want to disable the effectWindowsGDI.enableGDIEffect('ScreenGlitches', false);
// Stop the thread for stopping the effectsWindowsGDIThread.stopWindowsGDIThread();This project is released under the MIT license.