Jump to content

label like in Pascal


viper27
 Share

Recommended Posts

i have a programm :: example :

$i=1

if $i=2 then ----------....

else

{ there i want to go back on line 5 } without repeat until or any same structure

You can't realy specify it based on lines

Post entire code and i'll(or someone else) would be happy to show you how to properly form a function

Link to comment
Share on other sites

1:

$mylist

Do

$1msg = GUIGetMsg()

If $1msg = $button1 Then

If GUICtrlRead($mylist) = "" then msgbox (0, "Error", "You don't select any id, or id list is Null") else { from there i want to go at 1} {if the user don't select anything from $mylist , he must go 1: and select one of them }

$win = GUICtrlRead($mylist)

While 1

ControlSend(

WEnd

....

EndIf

Until $1msg = $GUI_EVENT_CLOSE

Link to comment
Share on other sites

; 1:   <-- There is no labeling like this in autoit
#include <GuiConstants.au3>
GuiCreate("Test")
$mylist = GuiCtrlCreateList("...", 10,10, 100,100) ; added this for personal testing purposes
GuiSetState(@SW_SHOW)

Do
    $1msg = GUIGetMsg()
    If $1msg = $button1 Then
        If GUICtrlRead($mylist) = "" then 
            Msgbox(0, "Error", "You didn't select any id, or id list is Null") 
        Else
        $win = GUICtrlRead($mylist)
        While 1
            Sleep(1000);ControlSend(  <-- This is an incomplete Function call, I'm assuming you'll fill it in later
        WEnd
        EndIf
    EndIf
Until $1msg = $GUI_EVENT_CLOSE

There were several errors here, i have corrected most of them from what i can determine you are trying to do with your code,

But is this the WHOLE thing?

I strongly suggest looking into This a little bit more indepth

Edited by Paulie
Link to comment
Share on other sites

sure that's an incomplete source ,; i don't want do show my full source !!

Just for future reference, here at the forums, we are here to help each other, and if everyone horded all their sources, we'd never be able to do that.

The way i think about it:

Incomplete/No code = Incomplete/No help

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