# Thread: N.A.S - An NXT Autoing Solution

1. ## N.A.S. - An NXT Autoing Solution

N.A.S.

An NXT Autoing Solution

Features
• NXT and Simba Client Pairing
• Send Fake Input to the NXT client with or without focus
• Allows you to use your Host PC while botting
• Works with SRL-6
• Drawing (Through LibLayer)

What it doesn't do
• Filter Bot/User Input
• Work on Non-Windows' systems

Why?
Something similar to SMART but for the NXT Client was needed.

How it works
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.

The Include
• NAS_INI: Uses the NXT Client Process ID, Simba Process ID, and Simba Thread ID to keep track of paired clients
• NAS_Pair: The Structure of a Paired Client
• NAS_Keyboard: Keyboard related functions
• NAS_Mouse: Mouse related functions
• NAS Debug: Each structure has debug methods, you can enable debug by using NAS.EnableDebug()/NAS.DisableDebug(), you can disable debug to each individual structure

Simba Input Function Overrides
NAS 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.

Requires Simba 1.2 - Simba.i386-win32.exe or Simba 1.3+ - Simba.i386-win32.exe

Setup
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

Simba Code:
program new;{$I NAS\NAS.simba}begin NAS.EnableDebug(); WriteLn(NAS.init());end. Drawing NAS uses LibLayer for Simba 1.2+ to draw on the paired NXT Game Window. LibLayer now comes with NAS, just use the example below to use it. Simba Code: program new;{$DEFINE NAS_DRAWING}{\$I NAS\NAS.simba}begin  ClearDebug();  NAS.EnableDebug();  if(NAS.init()) then  begin    NAS.Layer.PaintInterval(100);     // Layer supports auto-painting, or you can manually tell it to paint with NAS.Layer.Paint();    NAS.Drawing.DrawText('Clarity is bae', 'SmallChars07', Point(100, 100), false, 255);  end;  repeat  until false;end.

2. Extremely triggered at N.A.S versus N.A.S.

3. can we multithread with simba now

4. Originally Posted by rj
can we multithread with simba now
Funny how I've been multithreading in Simba for several years.

5. So... is this in active development now? The other thread was closed, and this one created. What's that mean?

6. Originally Posted by KeepBotting
So... is this in active development now? The other thread was closed, and this one created. What's that mean?
Assuming in order to move from Junior+ and republish public without having to wait for mods.

Join Date
Mar 2007
Posts
5,107
Mentioned
272 Post(s)
Quoted
900 Post(s)
Originally Posted by Clarity
Assuming in order to move from Junior+ and republish public without having to wait for mods.
Funny that, in order for the other one to be locked, a mod would've been active and could've moved it :P

8. I had requested a move several times, and it was never moved. So I just made a new thread and requested a lock on the other, in the event a mod becomes active .

9. SRL Junior Member
Join Date
Aug 2009
Location
Posts
596
Mentioned
0 Post(s)
Quoted
55 Post(s)
Bit of a gravedig. This compatible with Simba 1.3? Looks exciting.

10. Now requires Simba 1.3+, LibLayer by Olly and the Windows include by Slacky now comes with NAS. All you need to do is throw NAS in the includes folder from now on.

Updated OP.

11. Updated again after finding out SRL-6 doesn't work on 1.3, 1.2 support should now be added.

12. SRL Member
Join Date
May 2012
Posts
485
Mentioned
23 Post(s)
Quoted
227 Post(s)
Originally Posted by Twinki
Updated again after finding out SRL-6 doesn't work on 1.3, 1.2 support should now be added.
I’m trying to get some ppl together to update SRL-6 for Simba 1.3
All help is welcome!

13. Originally Posted by Thomas
I’m trying to get some ppl together to update SRL-6 for Simba 1.3
All help is welcome!
What needs to be done?

14. SRL Member
Join Date
May 2012
Posts
485
Mentioned
23 Post(s)
Quoted
227 Post(s)
Originally Posted by Sin
What needs to be done?
Posted this:
Originally Posted by Thomas
SRL-6 on Simba 1.3 for resizeable rs3?

My proposal:
Step 1: Update srl6 to compile with 1.3
Step 2: Update srl6 to be compatible with regular nxt (if def-nxt)
Step 3: update srl6 to allow resizeable (if def-resize)

I know some work has been done so far, perhaps we should gather what has been done so far on merge it all together?

@Clarity
@Twinki
@klamor
@Ashaman88
@Citrus

And others I might have forgotten!

Here:

Step 1 and 2 wouldn’t be super hard I think.
The 1.2 branch of srl6 does not differ that much anyway.

15. SRL Junior Member
Join Date
Aug 2009
Location
Posts
596
Mentioned
0 Post(s)
Quoted
55 Post(s)
I might be willing to help out. Not doing any scripting these days for no other reason than I cbf to implement my solution to getting everything working just to have it go obsolete when SRL finally catches up.

I do have some work that might be useful: A redo of login screen that works with browser, nxt, and resizing. Few other things like that.