viper27 Posted October 18, 2006 Share Posted October 18, 2006 ......... 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 ?? ?? Link to comment Share on other sites More sharing options...
exodius Posted October 18, 2006 Share Posted October 18, 2006 So... What would you say that it is you want... to do...? Link to comment Share on other sites More sharing options...
Paulie Posted October 18, 2006 Share Posted October 18, 2006 ......... 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 Link to comment Share on other sites More sharing options...
viper27 Posted October 18, 2006 Author Share Posted October 18, 2006 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 Link to comment Share on other sites More sharing options...
xcal Posted October 18, 2006 Share Posted October 18, 2006 I think what you want is Switch...Case...EndSwitch. See the help file. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Paulie Posted October 18, 2006 Share Posted October 18, 2006 i have a programm :: example :$i=1if $i=2 then ----------....else { there i want to go back on line 5 } without repeat until or any same structureYou can't realy specify it based on linesPost 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 More sharing options...
viper27 Posted October 18, 2006 Author Share Posted October 18, 2006 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 More sharing options...
Paulie Posted October 18, 2006 Share Posted October 18, 2006 (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_CLOSEThere 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 October 18, 2006 by Paulie Link to comment Share on other sites More sharing options...
viper27 Posted October 18, 2006 Author Share Posted October 18, 2006 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 !! Link to comment Share on other sites More sharing options...
Paulie Posted October 18, 2006 Share Posted October 18, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now