An NXT Autoing Solution
Something similar to SMART but for the NXT Client was needed.
NAS uses the Win32 API to do everything it does. It uses PostMessage to send fake input to the ‘Paired’ NXT Game Client
Currently NAS disables the ability to minimize the paired NXT client at all, but still allows you to use your Host PC and bot without issues
The NXT Game Window will continue to run in the background, though you may not be able to minimize it, you can still focus on other programs like games, your browser, or whatever it may be, and use those programs without interfering with the client
NAS.EnableDebug()
or NAS.DisableDebug()
, you can disable debug to each individual structureNAS overrides almost all of Simba’s mouse/keyboard functions, like KeyDown, KeyUp, MoveMouse, all of which can be found in Mouse/Keyboard Overrides.pas This is to maintain compatibility between includes
NAS uses the official NXT Client, so just boot NXT up and start the script
The NXT Client must be set to Compatibility Mode if you want Color-finding functions to work! It’s normal for the client to lag until it fully loads the shaders
program new;
{$I NAS\NAS.simba}
begin
NAS.EnableDebug();
WriteLn(NAS.init());
end.
You can use Olly’s WindowOverlay Simba plugin to draw on external targets, be sure to create the overlay after NAS.init()
program new;
{$I NAS\NAS.simba}
{$loadlib libwindowoverlay}
var
Overlay: TWindowOverlay;
begin
NAS.EnableDebug();
if (NAS.init()) then
begin
// `TargetWindow` not specified. Will use Simba's current target
Overlay := TWindowOverlay.Create(); // by this point the current Simba target should be the NXT client, set by NAS.init()
AddOnTerminate(@Overlay.Free);
// Overlay.Bitmap is a TMufasaBitmap, let's draw a red rectangle.
Overlay.Bitmap.Rectangle([100, 100, 200, 200], 255);
end
end.