Sign in to follow this  
Followers 0
AlmarM

Help needed with _IE Funcs

3 posts in this topic

Hi,

Take a look at this site:

http://www.paulschou.com/tools/xlate/

I want to make a script that will:

1. Open the site

2. Put $String (or any other things that returns a string) in the 'Text' box

3. Press the 'Decode' button under the 'Text'

4. Waits until the site refeshes with all the 'Decoded' strings

5. Gets the information out of the 'Binary' box

I tried _IEFormElement... etc.

But in the html code, there is no 'form name='

HTML Code

<html>
<head>
<title>TRANSLATOR, BINARY</title>
<META NAME="description" CONTENT="Online tool to translate ASCII/ANSI, HEX, Binary, Base64, etc... Encoder/Decoder with MD2, MD4, MD5, SHA1+2, RIPEMD, CRC, etc. hashing algorithms.">
<META NAME="keywords" CONTENT="binary encoder, binary decoder, binary translator, binary tools, binary converter, hexadecimal encoder/decoder, base 64, MD5, Message-Digest algorithm, CRC, Cyclic Redundancy Check, SHA, Secure Hash Algorithm, RIPEMD, RACE Integrity Primitives Evaluation Message Digest">
<style>
.ff{font-size: 10px;
    font-family:verdana,arial,helvetica,sans;
    color: #333333;
    background: #eee;
    }
.btn{
    font-size: 8px;
    font-family:verdana,arial,helvetica,sans;
    color: #333333;
    background: #eee;
    }
BODY{
scrollbar-3dlight-color:#999999;
scrollbar-arrow-color:#999999;
scrollbar-base-color:#DDDDDD;
scrollbar-darkshadow-color:#999999;
scrollbar-face-color:#DDDDDD;
scrollbar-highlight-color:#DDDDDD;
scrollbar-shadow-color:#DDDDDD;
scrollbar-track-color:#CCCCCC;
}

</style>

</head>
<body bgcolor="#ffffff" text="#000">

<center>
<table border=0 cellspacing=0 cellpadding=0><tr><td align=center>
<font face="verdana,arial,helvetica" size=1>
<h1>TRANSLATOR, BINARY</h1>
<p><b>Please note:</b><br> This application encodes and decodes 
<a href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> and 
<a href="http://en.wikipedia.org/wiki/ANSI">ANSI</a> 
text.  <br>Only codepoints &lt; 128 are ASCII.  This is provided for educational and entertainment use only.</p>

<table border=0 cellspacing=0 cellpadding=10>
<tr><form method="POST"><td align=center valign=top>
<font face="verdana,arial,helvetica" size=1>

<b>[ <a href="../ascii/">TEXT</a> ]</b><br>
<textarea cols=48 rows=15 wrap="virtual" name="ascii" class="ff"></textarea>
<br>
<input type="submit" class="btn" value="&lt; ENCODE &gt;">
</td></form><form method="POST"><td align=center valign=top>
<font face="verdana,arial,helvetica" size=1>

<b>2 [ <a href="http://en.wikipedia.org/wiki/Binary_numeral_system"><acronym title="Binary">BINARY</acronym></a> ]</b><br>
<textarea cols=48 rows=15 wrap="virtual" name="binary" class="ff"></textarea>
<br>
<input type="submit" class="btn" value="&lt; DECODE &gt;">
</td></form><form method="POST"><td align=center valign=top>
<font face="verdana,arial,helvetica" size=1>

<b>4 [ <a href="http://en.wikipedia.org/wiki/Hexidecimal"><acronym title="Hexidecimal">HEX</acronym></a> ]</b><br>
<textarea cols=48 rows=15 wrap="virtual" name="hex" class="ff"></textarea>
<br>
<input type="submit" class="btn" value="&lt; DECODE &gt;">
</td></tr></form>
</textarea>
<br>
</td></form>

<!--BASE 64-->
<form method="POST"><tr><td align=center valign=top>
<font face="verdana,arial,helvetica" size=1>

<b>6 [ <a href="http://en.wikipedia.org/wiki/Base64">BASE64</a> ]</b><br>
<textarea cols=48 rows=15 wrap="virtual" name="b64" class="ff"></textarea>
<br>
<input type="submit" class="btn" value="&lt; DECODE &gt;">
</td></form>

<!--CHAR-->
<form method="POST"><td align=center valign=top>
<font face="verdana,arial,helvetica" size=1>

<b>[ DEC / CHAR ]</b><br>
<textarea cols=48 rows=15 wrap="virtual" name="char" class="ff"></textarea>
<br>
<input type="submit" class="btn" value="&lt; DECODE &gt;">
</td></form><form method="POST"><td align=center valign=top>
<font face="verdana,arial,helvetica" size=1>


<b>[ MESSAGE DIGEST / CHECK SUM ]</b><br>
<textarea cols=48 rows=15 wrap="virtual" name="char" class="ff">MD2: 8350e5a3e24c153df2275c9f80692773
MD4: 31d6cfe0d16ae931b73c59d7e0c089c0
MD5: d41d8cd98f00b204e9800998ecf8427e
CRC 8, ccitt, 16, 32 : 0, ffff, 0, 00000000

CRYPT (form: $ MD5? $ SALT $ CRYPT):
$1$x2NgV2IS$jYoi9n7knCQggrNooavws.
      (form: SALT[2] CRYPT[11]):
psVCB8A3RH3lI

SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709
RIPEMD-160: 
  9c1185a5 c5e9fc54 61280897 7ee8f548 b2258d31
SHA2-256: 
  e3b0c44298fc1c149afbf4c8996fb924
  27ae41e4649b934ca495991b7852b855
SHA2-384: 
  38b060a751ac96384cd9327eb1b1e36a
  21fdb71114be07434c0cc7bf63f6e1da
  274edebfe76f65fbd51ad2f14898b95b
SHA2-512: 
  cf83e1357eefb8bdf1542850d66d8007
  d620e4050b5715dc83f4a921d36ce9ce
  47d0d13c5d85f2b0ff8318d2877eec2f
  63b931bd47417a81a538327af927da3e
</textarea>
<br>
(This cannot be decoded<sup>*</sup>)
</td></tr></form></table>

<!-- Begin Amazon Honor System Paybox -->
<img src="http://zme.amazon.com/exec/varzea/tipbox/A1CBRVSXMK4KOO/T20ZXC2H8KDUOK" usemap="#T20ZXC2H8KDUOK" border="0" alt="Amazon Honor System" width="468" height="60" >
<map name="T20ZXC2H8KDUOK">
<area coords="350,0,460,60" href="http://zme.amazon.com/exec/varzea/pay/T20ZXC2H8KDUOK" alt="Click Here to Pay" target=_top>
<area coords="165,40,310,55" href="http://zme.amazon.com/exec/varzea/subst/fx/help/how-we-know.html" alt="Learn More" target=_top>
</map>
<!-- End Amazon Honor System Paybox -->
<br>
<sup>*</sup>Cannot be decoded easily (within my lifespan).
The source code for this page is available <a href="source.php">here</a>.<br>
Credit for this idea goes to http://nickciske.com/binary/ in its original form in 2000.
</center>
<div><a href="http://calipso.umbc.edu/cdimages/ubuntu-ultimate/">ubuntu ultimate 1.6</a>
<a href="http://weather.umbc.edu/">Baltimore Weather</a>
<a href="http://taqueria-atotonilco.com/">Taqueria Atotonilco - Baltimore Mexican Food</a></div>
<a href="http://baltimore-mexican-restaurant.com/">The Best Baltimore Mexican Food</a></div>
</body>
</html>

Hope you understand me.

Im not asking you to make it, just to help me ^^,

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

this wont be the best help but ehh..

#include<IE.au3> ; include IE.au3
$ie = _Iecreate() ; creates IE
_IEnavigate('http://www.paulschou.com/tools/xlate/') ; Navigate to the website and wait for it to load
$where_you_need_to_write_text = _Iegetobjbyname($ie,'ascii') ; change this to what you need Gets the object y its name
_IEFormElementSetValue($$where_you_need_to_write_text,"This text")  ; Fill in the text box with the text
$button = _Iegetobjbyname($ie,'buttonname') ; gets the button by its name
_Ieaction($button,'click'); Clicks on button
_IEloadwait($ie) ; waits for IE to load

$text = _IEbodyreadhtml() ; fill this is 
;OR ; Dont know which one 
$text = _IEbodyreadtext() ; fill this in

msgbox(0,"",$text)

Edit:

cant you use

hex()

dec()

binary()

Edited by DexterMorgan

code

Share this post


Link to post
Share on other sites

Not bad hints above...

some more... there are 6 forms on the page, none has a name... index 0-5 -- use _IEFormGetCollection to get access to them.

The textarea element inside each has a name of "char"... use

$oTextArea = _IEFormElementGetObjByName($oForm, "char")

then

$sValue = _IEFormElementGetValue($oTextArea)

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
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
Sign in to follow this  
Followers 0