Jump to content

AutoIt to VB Translate


Swisyn
 Share

Recommended Posts

Hello dear, i need convert this code from autoit to vb or vb.net , im vb.net & C# coder but i need this easy script for little work.

I hope u can do this, thanks.

Best regards.

Opt("TrayMenuMode",1)
Opt ( "RunErrorsFatal", 0 )
$ini = "Installer.ini"
$var = IniReadSection("Installer.ini", "Commands")
If @error Then
    Exit
Else
    For $i = 1 To $var[b][0][0][/b]
        $tip = IniRead ( $ini , "Tips", $var[$i][0], "" )
        RunWait ( $var[b][$i][1][/b] , @ScriptDir , @SW_MINIMIZE )
        TrayTip("",$tip,$i,0)
        Sleep($i)
    Next
EndIf

i don't know only bold words how it mean...

4.au3

Link to comment
Share on other sites

Why dont you ask that on some vb forum?

You can try to post it to the chat section, only problem is that i don't think that it`ll help because almost no one heare work on personal requests (translate this for me), if you did not at least try to do it yourself and posted code of your translated work.

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Why dont you ask that on some vb forum?

You can try to post it to the chat section, only problem is that i don't think that it`ll help because almost no one heare work on personal requests (translate this for me), if you did not at least try to do it yourself and posted code of your translated work.

I didnt post it on vb forum cuz i think too many vb coder don't know autoit script language like me.Believe me i tried to translate this code but i didn't understand some lines, u can see bold lines...

For $i = 1 To $var[0][0]

$tip = IniRead ( $ini , "Tips", $var[$i][0], "" )

RunWait ( $var[$i][1] , @ScriptDir , @SW_MINIMIZE )

Next

and i didn't say like translate this for me if you see, i only wanted to help.

Edited by Swisyn
Link to comment
Share on other sites

Firstone is 2d array variable

second is 2d array variable with another variable in it that represente one of its element

this tutorial can probably help you alot to understand what is happening inside :)

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Firstone is 2d array variable

second is 2d array variable with another variable in it that represente one of its element

this tutorial can probably help you alot to understand what is happening inside :)

http://www.youtube.com/watch?v=SeKUfViMPBc

Thanks mate, but my shared code hasn't any array declaring like eg. [2][2] only has $var and installer ini's commands section has these arguments like.

[Commands]

1=x.exe

2=xx.exe

3=xxx.exe

where is the any split function for split args to "for loop"?

Link to comment
Share on other sites

IniReadSection is returning array

Return Value

Success: Returns a 2 dimensional array where element[n][0] is the key and element[n][1] is the value.

add

#include <Array.au3>

on top of the script and

_ArrayDisplay($var)

after the IniReadSection command and you will see that the data is realy a array tupe

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Why dont you ask that on some vb forum?

You can try to post it to the chat section, only problem is that i don't think that it`ll help because almost no one heare work on personal requests (translate this for me), if you did not at least try to do it yourself and posted code of your translated work.

He can't post in Chat yet. It's not accessable to new account holders.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

ouh i did forgot about that one, ty GEOSoft for reminding me

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

IniReadSection is returning array

add

#include <Array.au3>

on top of the script and

_ArrayDisplay($var)

after the IniReadSection command and you will see that the data is realy a array tupe

Thanks, thats some helped me, i can try to write IniReadSection function on vb if it does :)
Link to comment
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
 Share

  • Recently Browsing   0 members

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