Sign in to follow this  
Followers 0
viper27

label like in Pascal

10 posts in this topic

.........

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

??

Share this post


Link to post
Share on other sites



So... What would you say that it is you want... to do...?

Share this post


Link to post
Share on other sites

.........

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

??

Functions are how autoit replaced 'goto'

While 1
    MyFunc()
WEnd
 
Func MyFunc()
    Tooltip("Hello From A Function", @DesktopWidth/2, @DesktopHeight/2)
EndFunc

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#8 ·  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

Share this post


Link to post
Share on other sites

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

but i thing that i solve the problem , i thing !!

Share this post


Link to post
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

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