Gif Posted June 17, 2007 Share Posted June 17, 2007 (edited) im having difficulties on using controls when a loop exists example: While @InetGetActive ToolTip("Downloading", 0, 0, "Info") $nmsg = GUIGetMsg() Select Case $nmsg = $b_cansel If @InetGetActive Then InetGet("abort") ToolTip("") Else Sleep(10) EndIf Case $nmsg = $GUI_EVENT_CLOSE InetGet("abort") Exit EndSelect WEnd ToolTip("") the problem is that the buttons dont work and the loop continues again and again without the buttons working i also tryed putting the buttons out of the loop and using exitloop but again it doesnt work.. any help would be appreciated.. EDIT:cmn its a noob question Edited June 17, 2007 by c4nm7 Link to comment Share on other sites More sharing options...
Gif Posted June 17, 2007 Author Share Posted June 17, 2007 im having difficulties on using controls when a loop exists example: While @InetGetActive ToolTip("Downloading", 0, 0, "Info") $nmsg = GUIGetMsg() Select Case $nmsg = $b_cansel If @InetGetActive Then InetGet("abort") ToolTip("") Else Sleep(10) EndIf Case $nmsg = $GUI_EVENT_CLOSE InetGet("abort") Exit EndSelect WEnd ToolTip("") the problem is that the buttons dont work and the loop continues again and again without the buttons working i also tryed putting the buttons out of the loop and using exitloop but again it doesnt work.. any help would be appreciated.. EDIT:cmn its a noob question and i thought that this is toooo easy to be answered.... Link to comment Share on other sites More sharing options...
Generator Posted June 17, 2007 Share Posted June 17, 2007 I don't know about network thing but maybe you can try it this way? While @InetGetActive Do ToolTip("Downloading", 0, 0, "Info") $nmsg = GUIGetMsg() Select Case $nmsg = $b_cansel If @InetGetActive Then InetGet("abort") ToolTip("") Else Sleep(10) EndIf EndSelect Until $nmsg = $GUI_EVENT_CLOSE WEnd ToolTip("") Link to comment Share on other sites More sharing options...
BrettF Posted June 17, 2007 Share Posted June 17, 2007 and i thought that this is toooo easy to be answered....No.... you havn't given it a chance. Maybe?? While 1 ToolTip("Downloading", 0, 0, "Info") $nmsg = GUIGetMsg() Select Case $nmsg = $b_cansel If @InetGetActive Then InetGet("abort") ToolTip("") Else Sleep(10) EndIf Case $nmsg = $GUI_EVENT_CLOSE InetGet("abort") Exit Case Not @InetGetActive ExitLoop EndSelect WEnd ToolTip("") I don't know much without a full GUI to test with though... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Gif Posted June 17, 2007 Author Share Posted June 17, 2007 I don't know about network thing but maybe you can try it this way? While @InetGetActive Do ToolTip("Downloading", 0, 0, "Info") $nmsg = GUIGetMsg() Select Case $nmsg = $b_cansel If @InetGetActive Then InetGet("abort") ToolTip("") Else Sleep(10) EndIf EndSelect Until $nmsg = $GUI_EVENT_CLOSE WEnd ToolTip("") well this is what i want(and the problem is not about networking is about loops in general), Link to comment Share on other sites More sharing options...
Gif Posted June 17, 2007 Author Share Posted June 17, 2007 While 1 ToolTip("Downloading", 0, 0, "Info") $nmsg = GUIGetMsg() Select Case $nmsg = $b_cansel If @InetGetActive Then InetGet("abort") ToolTip("") Else Sleep(10) EndIf Case $nmsg = $GUI_EVENT_CLOSE InetGet("abort") Exit Case Not @InetGetActive ExitLoop EndSelectWEndToolTip("")ok it works but the gui is too slow and the button replyes after about 30 seconds after i hit the buttonany way to make it faster? Link to comment Share on other sites More sharing options...
BrettF Posted June 17, 2007 Share Posted June 17, 2007 ok it works but the gui is too slow and the button replyes after about 30 seconds after i hit the button any way to make it faster?Maybe? ToolTip("Downloading", 0, 0, "Info") While 1 $nmsg = GUIGetMsg() Select Case @InetGetActive Select Case $nmsg = $b_cansel InetGet("abort") ExitLoop Case $nmsg = $GUI_EVENT_CLOSE InetGet("abort") Exit EndSelect Case Else ExitLoop EndSelect WEnd ToolTip("") Like I said before, a full GUI would help tenfold. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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