Jump to content

Recommended Posts

Posted

hi,

how can I write the following with AU3:

For i = 1 To 40
    Debug.Print Mid(s, i, 1) & "=" & Asc(Mid(s, i, 1))
Next

without the Debug.Print...is there a Mid function I don't see it.

Posted

what does Debug.Print Mid...? ive never learned VB and dont plan too :D

well you should it is the basics of all. there are some things that you can't do with AutoIT but only with VB and C++.

Posted (edited)

ConsoleWrite()

StringMid()

Asc()

Thanks alot. I had to use this until you made your post:

#include <File.au3>
#include <Array.au3>

Dim $L[5000]
Dim $MM[5000]

$file=FileOpen ("c:\erez.txt",1)
$m=FileReadLine ("c:\erez.txt",1)
$J=$m
MsgBox (0,"",StringLen ($m))
for $i=1 to StringLen ($m)
    $L[$i]=StringLeft ($m,1)
    $m=StringTrimLeft ($m,1)
;   MsgBox (0,"",$m)
Next
_ArrayDisplay ($L)
for $i=1 to StringLen ($J)
    $MM[$i]=Asc ($L[$i])
Next
_ArrayDisplay ($MM)
Edited by erezlevi

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...