incepator Posted April 3, 2013 Share Posted April 3, 2013 hello, i have a problem with stop function. Why does not... switch GUIGetMsg() Thanks For $i = 0 To _GUICtrlListView_GetItemCount($ListView1) $actual = _GUICtrlListView_GetItem($ListView1, $primul_listview,0) _IENavigate($oIE, $actual[3], 1) sleep(1000) Switch GUIGetMsg() _IEAction($oIE, "stop") EndSwitch Next Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 3, 2013 Moderators Share Posted April 3, 2013 incepator, we would like to assist, but without seeing your full code (such as what exactly $ListView1 is) you are really asking us to guess at what you're trying to do. Please post the entire code, or at least a working reproducer, that demonstrates the problem you're encountering. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
incepator Posted April 3, 2013 Author Share Posted April 3, 2013 I just want that when I press a button to exit loop.. exemple: for $i = 10 to 10000000 guictrlsetdata($input, $i) sleep(1000) Switch GUIGetMsg() Case $stop _IEAction($oIE, "stop") EndSwitch next Link to comment Share on other sites More sharing options...
czardas Posted April 3, 2013 Share Posted April 3, 2013 (edited) What is this for exactly? BTW, the answer is already in your post => ExitLoop. Edited April 3, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
bogQ Posted April 3, 2013 Share Posted April 3, 2013 (edited) his sleep is 2 large and i think itl not work correctly with it, suggestion to use timerdiff for update on that input instead for to loop with 1 second sleep, that will help of registring button press in correct moment and if you need to get seconds from input the time will be more correct than sleep. Edited April 3, 2013 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
czardas Posted April 3, 2013 Share Posted April 3, 2013 (edited) Yeah, I thought it looked strange, but like JLogan3o13 says, it's hard to fix without more information. Edited April 3, 2013 by czardas operator64 ArrayWorkshop 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