Sign in to follow this  
Followers 0
coolness

Please Help Me.

5 posts in this topic

Here is the code, (autoitv3)

Could someone please convert it to vb for me, thanks.

; AutoIt Version: 3.0

; Language: English

; Platform: Win9x/NT

; Author: Jonathan Bennett (jon@hiddensoft.com)

;

; Script Function:

; allows you to create a song.

;

; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)

$answer = MsgBox(4, "Lyricbuilderv1 (Read before clicking yes.)", "This script does hotkey commands. Run?")

; Check the user's answer to the prompt (see the help file for MsgBox return values)

; If "No" was clicked (7) then exit the script

If $answer = 7 Then

MsgBox(0, "AutoIt", "OK. Bye!")

Exit

EndIf

run("notepad.exe")

Func _killprogram ()

Exit

EndFunc

HotKeySet("{ESC}", "_Terminate")

HotKeySet( "^a", "_line1")

HotKeySet( "^b", "_line2")

HotKeySet( "^c", "_line3")

While 1

sleep(10000)

Wend

Func _terminate ()

HotKeySet("{ESC}", "_Terminate")

Exit

EndFunc;==>_Open

Func _line1 ()

send("CTRL_A did this.")

sleep(50)

send("{enter}")

sleep(50)

send("{enter}")

sleep(50)

send("{enter}")

sleep(50)

EndFunc;==>_Open

Func _line2 ()

send("CTLR_B did this.")

sleep(50)

send("{enter}")

sleep(50)

send("{enter}")

sleep(50)

send("{enter}")

sleep(50)

EndFunc;==>_Open

Func _line3 ()

send("CTRL_C did this.")

sleep(50)

send("{enter}")

sleep(50)

send("{enter}")

sleep(50)

send("{enter}")

sleep(50)

EndFunc;==>_Open

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Two things:

1. No one is going to conver it for you.

2. if it isn't broke, dont fix it.

~cdkid

PS:

why do you want it in VB?

Edited by cdkid

AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!

Share this post


Link to post
Share on other sites

CTRL_A did this.

Acually I just want the code, in VB, because I'm working with a vb program, that can create real aplications. And If I had that code, I could do it. Or at least a program that would acually convert it, aoutomatically, without having to manually do it.

Share this post


Link to post
Share on other sites

Real apps? AutoIT creates real apps. You right click on the .au3 file and click compile :)

And visual basic programs sometimes need supporting dlls, whereas AutoITs compiled are standalone (one .exe, no dll needed to come with it)

Share this post


Link to post
Share on other sites

I must say this is a really "beginner" script. If you read the 5 or 6 options it uses in the help file, I don't see why you can't code (if any good) it in VB, why you don't just convert it yourself... should take like 5 minutes if that I would imagine.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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