DavidLago Posted December 16, 2015 Share Posted December 16, 2015 Maybe a bug or a problem on the description, but... #include <MsgBoxConstants.au3> Sleep(3000) ; Allow time for the cursor to change its state. ; Create an array of possible cursor states using StringSplit. Local $aArray = StringSplit("Hand|AppStarting|Arrow|Cross|Help|IBeam|Icon (obsolete)|No|" & _ "Size (obsolete)|SizeAll|SizeNESW|SizeNS|SizeNWSE|SizeWE|UpArrow|Wait|Empty", "|", 2) ; The flag parameter is set to flag = 2 as we don't require the total count of the array. #cs The array returned will contain the following values: $aArray[0] = "Hand" $aArray[1] = "AppStarting" $aArray[2] = "Arrow" ... $aArray[16] = "Empty" #ce Local $iCursor = MouseGetCursor() MsgBox($MB_SYSTEMMODAL, "CursorID = " & $iCursor, "Which means " & $aArray[$iCursor] & ".") ; Use the CursorID value as the index value of the arrayThis code is the same from the MouseGerCursor help example, only I changed the sleep time (in order to allow proper time to sit the cursor to test.When I sit it over a hyperlink (which shows me a hand) it returns "16" to me, when should be returning "0", according to the help file.I didn't find something this specific in the forum history, only this https://www.autoitscript.com/forum/topic/173218-solved-guisetcursor/#comment-1253063 which doesn't say much.Tested on Win7, 8 and 10. Same thing.Help file link: https://www.autoitscript.com/autoit3/docs/functions/MouseGetCursor.htm Forgive the small fish - I - in case he is missing something obvious. Link to comment Share on other sites More sharing options...
PACaleala Posted December 17, 2015 Share Posted December 17, 2015 Forget the bugs and other problems.You have made a typing mistake in line 7 (better check again the help file). Link to comment Share on other sites More sharing options...
DavidLago Posted December 17, 2015 Author Share Posted December 17, 2015 Forget the bugs and other problems.You have made a typing mistake in line 7 (better check again the help file). Nope, better check again what I wrote, and the help file . This code is the same from the MouseGerCursor help exampleThis is what's written in the example. Even if you don't change a single letter, the behavior is the same.So, I still think it's wether a bug or most probably an error in the help file. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 17, 2015 Moderators Share Posted December 17, 2015 Davidlago,The current Help file MouseGetCursor return list does not match the one posted in the earlier thread to which you linked - that list seems to reflect what you are actually seeing. I will ask the person who changed the list to explain why they made the change.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...
DavidLago Posted December 17, 2015 Author Share Posted December 17, 2015 Thanks, Melba23.I just double checked it and failed to find any difference between those lists, at least they do not show differences to me.For the example, DiffCheker tells me they're identical:https://www.diffchecker.com/thsshi5qMy AutoIT Version is 3.3.14.2 (help file title). Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 17, 2015 Moderators Share Posted December 17, 2015 DavidLago,I am unsurprised that the on-line Help and the Help file are identical - the build scripts ensure that is the case!I was referring to the list posted in the thread to which you linked - it reads:0 = UNKNOWN (this includes pointing and grabbing hand icons) 1 = APPSTARTING 2 = ARROW 3 = CROSS 4 = HELP 5 = IBEAM 6 = ICON 7 = NO 8 = SIZE 9 = SIZEALL 10 = SIZENESW 11 = SIZENS 12 = SIZENWSE 13 = SIZEWE 14 = UPARROW 15 = WAIT 16 = HANDwhich is what SVN tells me was indeed the case in the Help file before the change to which I referred above. Let us now wait to see what the person who changed the list has to say.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...
Moderators Melba23 Posted December 21, 2015 Moderators Share Posted December 21, 2015 David Lago,It appears there has been a disconnect between the Help file and the code when 3.3.14.2 was released. The current Help file page refers to the Beta 3.3.15.0 version of that function - the release version still gives the old returns as shown in the list I posted immediately above. Sorry about that - producing an updated release version when changes have already been made to the SVN for the next Beta is always a bit tricky.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...
DavidLago Posted January 11, 2016 Author Share Posted January 11, 2016 Thanks, Melba23.I was on vacations. I'm back now. Seems like things are "Oll Korrect" now. 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