The script when run with no arguments will look in the current folder for an swf file and make a corresponding html file that can be used to run this swf file in a browser. ![]() ![]() Remember to run chmod +x swftohtml.sh to make it executable. sh) at any location you desire, then to convert it into a runnable command either make an alias for it in bashrc, or copy it to /usr/bin/. To use the script, save it as swftohtml.sh(can be any name, does not have to end in. #firefox about:config & wmctrl -xa firefox & sleep 0.2 & xdotool type plugins.http & sleep 1 & xdotool key Tab & xdotool key Down & xdotool key Return & xdotool key Control+w & firefox "$html" & firefox about:config & wmctrl -xa firefox & sleep 0.2 & xdotool type plugins.http & sleep 1 & xdotool key Tab & xdotool key Down & xdotool key Return & xdotool key Control+w & sleep 20 & rm "$html" #google-chrome "$html" & sleep 20 & rm "$html" #chromium "$html" & sleep 20 & rm "$html" (or in Firefox, go to about:plugins and see if it has "Shockwave Flash") #!/bin/bash For Linux users having this issue I have created the following script as a workaround:īefore proceeding, you must make sure that pepper-flash is installed for Chrome/Chromium, (flashplugin for Firefox) the only way to check (without using the workaround below that is) is to play a flash file on the internet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |