Skocz do zawartości
  • Dołącz do społeczności!

    👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Pytanie - czy da się zrobić "generator"?


Rekomendowane odpowiedzi

Opublikowano

Cześć!

Mam takie pytanie. Czy da się w autoit zrobić generator .exe?

Przykładowo mam kod w autoit jakiegoś programu #1. I przez ten generator chce ustawić odpowiednie zmiennie w tym kodzie programu #1 i skompilować do exe. Jest taka możliwość?

Widziałem kiedyś taki program, ale raczej nie był on napisany w autoit ;)

 

Pozdrawiam!

Dumny członek MPCforum od 09 czerwca 2009 ;)

Opublikowano

Przykładowo mam kod w autoit jakiegoś programu #1. I przez ten generator chce ustawić odpowiednie zmiennie w tym kodzie programu #1

Jeśli przez "jakiegoś programu #1" masz na myśli programu napisanego w AutoIt to jeśli chcesz ten program zmodyfikować, użyj domyślnego edytora,

To jest ukryta treść, proszę
.

I przez ten generator chce ustawić odpowiednie zmiennie w tym kodzie programu.

Chcesz zmienić wartość zmiennej w kodzie programu? Nie da się dać stałej wartości zmiennej, chyba że chcesz żeby ta zmienny była stałą (lolwat).

i skompilować do exe

Da się,

To jest ukryta treść, proszę

 

 

Jest to chyba najgorzej sformułowany temat stulecia, ciężko się domyśleć o co Ci chodzi.

Opublikowano

Ciężko mi przekazać to co mam na myśli.

Przykład.

 

Program do generowania:

To jest ukryta treść, proszę

I chcę, aby generator po prostu ustalał wartość zmiennych $tytul i $tresc i sam skompilował taki program j.w.

Robię program do użytku zwykłego, szarego użytkownika komputera, nie mającego autoita, kompilatorów, etc.

Myślę, że trochę rozjaśniłem sprawę.

Dumny członek MPCforum od 09 czerwca 2009 ;)

Opublikowano

Pierwsze słyszę o tym programie.

Ten msgbox podałem jako przykład.

 

Wprawdzie to w tym wygenerowanym exe potrzebuje 5 zmiennych i nic więcej.

Dumny członek MPCforum od 09 czerwca 2009 ;)

Opublikowano

no to masz program tylko użyć , jak widać kompletnie nie chciało ci się zapoznać nawet z programami zawartymi wraz z scite

 

nadal nie widze sensu programu

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

Nadal mnie nie rozumiecie.

To jest ukryta treść, proszę

 

@edit

i teraz jak zrobić żeby osobie nie posiadającej autoit i żadnych kompilatorów ten plik bot.au3 skompilował się do exe (oczywiście w tle)?

Dumny członek MPCforum od 09 czerwca 2009 ;)

Opublikowano
Method 3 - The Command Line

 

The Aut2Exe.exe program can be run from the command line as follows:

Aut2exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/comp 0-4] [/nopack] [x64] [/bin <binfile.bin>]

Where Switch Usage Default value /in <infile.au3> Specifies the path and file name of the script to be compiled. None. The file must be specified /out <outfile.exe> Specifies the path and name of the compiled file.

<outfile.a3x> Specifies the path and file name when creating an *.a3x file. The input filename with a .exe extension /icon <iconfile.ico> Specifies the path and file name of the icon to use for the compiled file. The AutoIt icon /comp Specifies the compression level to be used when encoding the script (This is NOT related to UPX).

It must be a number between 0 (none) and 4 (maximum). 2 /nopack Specifies that the file should not be compressed with UPX after compilation. pack /pack Specifies that the file should be compressed with UPX after compilation. pack /x64 Specifies that the script should be compiled for use on systems with x64 (64-bit) architecture. see notes /x86 Specifies that the script should be compiled for use on systems with x86 (32-bit) architecture. see notes /console Specifies that the script should be compiled as a Console application. Windows application (/gui) /gui Specifies that the script should be compiled as a Windows application. Windows application (/gui) /bin <binfile.bin> Specifies the path and file name of the bin file to be use to compile the file. searched in Aut2exe folder

 

Command Line Examples

 

/in c:\myscript.au3 /out c:\myapp.exe /icon c:\myicon.ico /x64

Will result in the creation of c:\myapp.exe with normal compression which will use the specified icon and be compiled for use on x64 system architecture.

/in c:\myscript.au3

will result in the creation of a unicode c:\myscript.exe with normal compression which will use the default AutoIt icon for use on win_32 systems.

 

 

Command Line Notes

 

Long filenames should be enclosed in double-quotes like "C:\Program Files\Test\test.au3".

With the exception of /in all switches are optional.

By default, the 32-bit compiler produces a 32-bit binary and the 64-bit compiler produces a 64-bit binary. Use the /x86 and /x64 parameters to explicitly specify the output.

The /pass and /nodecompile switches are redundant as of version 3.2.8.1. They will be ignored if used and have been removed from this list.

The /ansi and /unicode switches are redundant as of version 3.3.0.0.

 

 

z helpa. Nie wiem o co chodzi, mógłby ktoś wytłumaczyć?

Tzn. trochę rozumiem, ale np. nie wiem gdzie jest ten command line.

 

@edit

Albo jest jakiś kompilator co kompiluje z au3 do exe w tle?

Bo mógłbym zbindować kompilator z tym "generatorem"

Dumny członek MPCforum od 09 czerwca 2009 ;)

Opublikowano

Nie rozumiem.

Najpierw prosisz o program dzięki któremu mógłbyś nadawać zmiennym(/stałym) wartości bez ingerencji w kod.

A potem prosisz o program który kompiluję au3 do exe w tle.

 

wtf?

  • 2 tygodnie później...
Opublikowano

Nie wiem nic o AutoIT, ale jeżeli można tam korzystać z WinAPI i zasobów, to wstaw tam wartości tych zmiennych, a generatorem po prostu je edytuj w gotowym .exeku.

mjut.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...