Jump to content

Recommended Posts

Posted

.........

label 2

xxxxxxx

xxxxxxxxxx

2:

structure

if condition goto 2

else exit

xxxxxxxx

in autoit it's a method of doing this kind of operation ??

??

Posted

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

Posted

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

Posted

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

Posted (edited)

; 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
Posted

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

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