Jump to content

Recommended Posts

Posted

Hai...

I made this GUI using Koda

Posted Image

i dont know how to code and make it work.

i have read many tutorial about AutoIT.

actually, i'm not a programmer at all.

if you have a time, please check this:

Site: www.mediafire.com
Code: ?a3u29b1eehs7j94

any respons/help will be appreciated alot

thank you

Posted

Look at GUIGetMsg in the help file, as this will tell you how to monitor when a button or checkbox is selected. You will also need to look at GUICtrlRead to read the input boxes and finally search the forum for _IsChecked, as this will tell you whether or not a checkbox is selected.

Good luck.

Oh, my advice look at youtube as well as the wiki section for an array of tutorials. Plus, if you're not a programmer don't expect to learn all of this overnight, no matter how good you are no one is that quick. Start small and then work big and never give up at the first sign of trouble.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 9/16/2012 at 4:18 PM, 'babelpatcher said:

hmmm, have you check the mediafire link? :D

No I haven't. If you have AutoIt code then post it here in between the coding tags e.g. [autoit][/autoit]. But if I'm honest, it's best you learn by making mistakes than me coding it for you.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • 1 month later...
Posted

You contacted me outside the forums for assistance on this topic.

GUIs add a lot of complexity to a programming project, and I believe that they should be the last addition.

The primary purpose of your project is to start and stop a VPN connection using a set of variables provided by the user. Therefore, as a first step I would recommend collecting these variables in a simpler manner.

Local $protocol = InputBox("SuperVPN", "Protocol (TCP or UDP):")
If @Error = 1 Then Exit ; exit if Cancel pressed

Local $server = InputBox("SuperVPN", "Server hostname or IP address:")
If @Error = 1 Then Exit

; (repeat for all data required)

Local $response = MsgBox(1 + 64, "SuperVPN", "You entered the following information:" & @CRLF & "Protocol: " & $protocol & @CRLF & "Server: " & $server)
If $response = 2 Then Exit ; exit if Cancel pressed

; start OpenVPN
Local $pid = Run("C:\Path\to\OpenVPN.exe --proto " & $protocol & " --remote " & $server & " ...")

; ask user when to close connection
MsgBox(64, "SuperVPN", "VPN connection established; press OK when ready to close connection.")

ProcessClose($pid)

The snippet of code above uses the InputBox function to collect all the necessary data as simple plain-text strings, and the MsgBox function to communicate information in a simple manner. While it's not ideal for a finished product, it allows you to focus on the most important aspect of your project: establishing and closing the VPN connection.

Try expanding this code to gather all the needed information to start the connection, and let us know how you go. Once that works, we can look at adding more features. Ask questions if anything shown above doesn't make sense, and we'll try to explain it more clearly. Best of luck!

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...