nimaid Posted December 29, 2009 Posted December 29, 2009 (edited) Is there any way to convert simple HTML code to AutoIt code that would display in a GUI? The HTML code is easy enough to turn into AutoIt code, but I am somewhere between beginner and intermediate and am not very good yet. I have tried to no avail to do it myself. Here is the code I need converted: expandcollapse popup<html> <head> <title>UNICODE Text Flipper</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content="uʍop ǝpısdn"> <style type="text/css"> body, textarea { font-family: "Arial Unicode MS", Batang; padding-left:8px; font-size:11pt;} h1 {color:#234690;} a:link, a:visited {color:#888888;} .l {font-weight:bold;color:#c28667;} </style> <script language="Javascript"> function flip() { var result = flipString(document.f.original.value.toLowerCase()); document.f.flipped.value = result; } function flipString(aString) { var last = aString.length - 1; var result = new Array(aString.length) for (var i = last; i >= 0; --i) { var c = aString.charAt(i) var r = flipTable[c] result[last - i] = r != undefined ? r : c } return result.join('') } var flipTable = { a : '\u0250', b : 'q', c : '\u0254', d : 'p', e : '\u01DD', f : '\u025F', g : '\u0183', h : '\u0265', i : '\u0131', j : '\u027E', k : '\u029E', l : '\u05DF', m : '\u026F', n : 'u', r : '\u0279', t : '\u0287', v : '\u028C', w : '\u028D', y : '\u028E', '.' : '\u02D9', '[' : ']', '(' : ')', '{' : '}', '?' : '\u00BF', '!' : '\u00A1', "\'" : ',', '<' : '>', '_' : '\u203E', '\\' : '/', ';' : '\u061B', '\u203F' : '\u2040', '\u2045' : '\u2046', '\u2234' : '\u2235' } for (i in flipTable) { flipTable[flipTable[i]] = i } </script></head> <body> <h1>Flipping characters with UNICODE</h1> <form name="f"> <span class="l">you type it:</span><br> <textarea rows="3" cols="70" name="original" onkeyup="flip()" style="background-color: #c6f6f3;color:#555577;"></textarea> <!--<input value="Flip" onclick="flip()" type="button">--><br> <span class="l">:uʍop ǝpısdn</span><br> <textarea rows="3" cols="70" name="flipped" readonly style="background-color: #e6e6fa;color:#555577;"></textarea> </form> Please Help! Edited December 30, 2009 by nimaid This statement is a lie.˙uʍop-ǝpısdn sı ǝuo sıɥʇ ʇnq 'ǝıl ɐ ǝq ʎɐɯ ʇuǝɯǝʇɐʇs snoıʌǝɹd ǝɥʇ¡6u15nɟu0) ʎ||43ɹ 51 51ɥ7
James Posted December 29, 2009 Posted December 29, 2009 Install the SciTe4AutoIt3 package, run Koda. Design your form with little effort. Export the code from Koda into a script (press F10 whilst in Koda). Sort out any extra code you don't need.Then write the code for doing whatever you need to in the new script.You'll need to take a look at:ArraysFor LoopsGUICtrlSetDataOnce you've done that, you're on your way. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
nimaid Posted December 30, 2009 Author Posted December 30, 2009 Install the SciTe4AutoIt3 package, run Koda. Design your form with little effort. Export the code from Koda into a script (press F10 whilst in Koda). Sort out any extra code you don't need.Then write the code for doing whatever you need to in the new script.You'll need to take a look at:ArraysFor LoopsGUICtrlSetDataOnce you've done that, you're on your way.Thanks! This statement is a lie.˙uʍop-ǝpısdn sı ǝuo sıɥʇ ʇnq 'ǝıl ɐ ǝq ʎɐɯ ʇuǝɯǝʇɐʇs snoıʌǝɹd ǝɥʇ¡6u15nɟu0) ʎ||43ɹ 51 51ɥ7
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now