Jump to content

Program which generates another program [Insane]


0000
 Share

Recommended Posts

Hi. I'm creating bot with private settings ;D for every PC...

So I have 2 Sources...

1 bot , 2 Style + Option menu....

I want create smthing Like:

Ppl set Options push Create Bot...

And here is bot + options...

I tried to make like that:

On push:

FileWrite($file, "Bot source")

FileWrite($file,"...")

FileWrite($file,"...")

...

And then Compile with cmd...

X:\Program Files\AutoIt3\Aut2Exe\Aut2exe.exe /in C:\Bot.au3 /out C:\Bot.exe /nopack

But it didin't work, because FileWrite can't read a lot of " " " " or () )()()( ) ....

So I need some ideas how to that :]

and some examples...

Thanx.

Mr. 0000

Link to comment
Share on other sites

  • Developers

But it didin't work, because FileWrite can't read a lot of " " " " or () )()()( ) ....

So I need some ideas how to that :]

FileWrite can write any character... show an example that shows it doesn't work ...

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

FileWrite($file, "HotKeySet ( "i" , "inventory")" @CRLF)

;/////////

FileWrite($file, "Func _i()"@CRLF)

FileWrite($file, "HotKeySet ( "i")"@CRLF) ; set key

FileWrite($file, "WinActivate("MyGame")"@CRLF)

FileWrite($file, "send("i")"@CRLF) ; opens inventory

;;; Here will be inventory reading items

;; compare them to the list

FileWrite($file, "HotKeySet ( "i" , "inventory" )"@CRLF) ;set func

FileWrite($file, "EndFunc")"@CRLF) ;end.

Here are a lot off errors with <"> and <)(>.

Link to comment
Share on other sites

  • Developers

none of these lines are valid.

..but the simple solution is :

FileWrite($file, 'HotKeySet ( "i" , "inventory")' & @CRLF)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...