|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Andrey Slusar 2:467/126 24 Nov 2003 22:13:45 To : Kirill Frolov Subject : Re: macromedia flash.exe -------------------------------------------------------------------------------- Mon, 24 Nov 2003 07:37:38 +0200, Kirill Frolov wrote to All: KF> Как из .exe сделать .swf ? KF> Помню кто-то писал здесь, но я не нашёл. --8<---------------cut here---------------start------------->8--- #!/usr/bin/env python import sys if len(sys.argv) < 2: print 'Syntax: %s exefile <swffile>' % sys.argv[0] sys.exit(0) if len(sys.argv) > 2: swffilename = sys.argv[2] else: swffilename = sys.argv[1][:sys.argv[1].rfind('.exe')] + '.swf' exefile = open(sys.argv[1]) swffile = open(swffilename, 'w') exefiledata = exefile.read() exefiledata2 = exefiledata[exefiledata.find('FWS'):] double_signature = exefiledata2.find('FWS',10,200000) if double_signature != -1: swffile.write(exefiledata2[double_signature:]) else: swffile.write(exefiledata2) exefile.close() --8<---------------cut here---------------end--------------->8--- -- Всего хорошего. Андрей. ...In the beginning was the Word, and the Word was 1.0... --- Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Reasonable Discussion, i386--freebsd) * Origin: Santinel BBS (2:467/126) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/1855cc773933.html, оценка из 5, голосов 10
|