mendiolanivelle Posted February 10, 2017 Share Posted February 10, 2017 HI newbie question here. i was wondering why my exit program wont work. i am doing a infinite loop program btw Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 10, 2017 Moderators Share Posted February 10, 2017 mendiolanivelle, The reason is the clearly the fact that you have a recursive structure formatting call on line #374...... . . . But seriously, how do you expect us to help without sight of your code? See here how to post it and then we can take a look and offer some sensible suggestions. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
mendiolanivelle Posted February 10, 2017 Author Share Posted February 10, 2017 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Exit Exit Case $Checkbox1 AutoSkill() Case $Checkbox2 AutoLoot() Case $Checkbox3 AutoPotion() Case $Checkbox4 Retarget() EndSwitch WEnd Func AutoLoot() Global $loot=1 While $loot > 0 Send ("{SPACE}",0) $loot +=1 Sleep (1000) this is the code i am working one ..ihave a exit button but when i run the program the exit wont work. all i do is i go the task manager then kill it Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 10, 2017 Moderators Share Posted February 10, 2017 mendiolanivelle, First a belated welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you back soon with a legitimate question I hope. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts