autoitWV Posted March 31, 2011 Share Posted March 31, 2011 Since so few participants need read my posts, lets have a little fun with this one. Today I come before this Forum made of strong, tough stuff. I beseech thee, oh mighty Forum, what makes a spinner button resist thy Autoit magic? Are spinner buttons endowed with stuff more tough than this grand Forum? Are spinners possessed by demons like function gnomes, or the dreaded code blockers? (If thy tough stuff has ever been code blocked, thouest knows what I mean.) And here is what I really mean. I have a spinner button, Spin1, as characterized by the AutoInfo on the attached file. I know I have the handle to the window Spin1 is on because this snippet of code works: $comhndl=wingethandle("[active]","") winactivate($comhndl) ;one of the click code below would be here winwaitclose($comhndl) Using the AutoInfo profile, I have used these variations to click the down arrow of Spin1: A. These mouseclicks are variations recorded from AU3Recorder; 1. MouseClick("left",1096,171,1) recorded 2. MouseClick("left",8,21,1) B. These controlclicks are variations recorded from AutoMacroRecorder; 1. ControlClick("classname=#32770","OK","Button2") recorded 2. ControlClick($comhndl,"OK","Spin1","","",1096,171) 3. ControlClick($comhndl,"OK","Spin1","","",8,21) 4. ControlClick($comhndl,"OK","1480","","",1096,171) 5. ControlClick($comhndl,"OK","1480","","",8,21) 6. ControlClick($comhndl,"","Spin1","","",1096,171) 7. ControlClick($comhndl,"","Spin1","","",8,21) 8. ControlClick($comhndl,"","1480","","",1096,171) 9. ControlClick($comhndl,"","1480","","",8,21) What direction is next? Also, there is a controlgethandle function, but I cannot figure out what other commands can use a button control handle? Is there some advantage taking this approach? Is there an example of using the control handle? The only example I found just shows obtaining the handle, not how to use it properly. Link to comment Share on other sites More sharing options...
smartee Posted March 31, 2011 Share Posted March 31, 2011 Tip: Make your posts concise. Have you tried:ControlSetText("WindowTitle/Handle", "WindowText", "Spin1", "NewValue") Link to comment Share on other sites More sharing options...
autoitWV Posted March 31, 2011 Author Share Posted March 31, 2011 This is a spinner that increments values one step up and down, but does not show the values. The autoinfo screen shot does not show the value setting or the value range. as such, the controlsettext does not seem to have an effect when I used text like "1", "2", etc. I presumed that the spinner actually required a click since text change had no effect. What does the Forum think should be tried next? (P.S. I will try not to joke around again) Link to comment Share on other sites More sharing options...
smartee Posted March 31, 2011 Share Posted March 31, 2011 Perhaps some screen shots of the window and/with the AutoIt Window Info Tool. Humor is good until it masks your question or its importance. Link to comment Share on other sites More sharing options...
Dana Posted March 31, 2011 Share Posted March 31, 2011 Here it didn't mask the question... it was the entertainment value of reading the first part of it in the popup view that made me click on it and read the whole thing. Unfortunately, I can't help with the question, though. Link to comment Share on other sites More sharing options...
autoitWV Posted March 31, 2011 Author Share Posted March 31, 2011 Ok, Target autoinfo is attached to the original post. Editor will not allow me to repeat in this email because I've included the window screen shot of the spinner on the window. The note in red points to the spinner just under the OK button, top right corner. Hope this helps diagnosis! Is ths controlgethandle approach a dead end? A sheepish thanks to Dana for enjoying the fun. Link to comment Share on other sites More sharing options...
smartee Posted March 31, 2011 Share Posted March 31, 2011 I am not seeing any attachments I must admit it gave me a laugh before i got tired reading. Link to comment Share on other sites More sharing options...
autoitWV Posted March 31, 2011 Author Share Posted March 31, 2011 Not good, so how do I send the files? What are the alternatives for posting these screen shots? I am glad you had a little fun. Isort of wrote it to entertain M23. When I found out that the editor did not have a single step execution, I mentioned to him that you Autoit programmers must be made of real tough stuff. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 31, 2011 Moderators Share Posted March 31, 2011 autoitWV,And entertained I was. how do I send the files?Save the screenshot file and then use the "Browse" and "Attach This File" buttons at the bottom of the editor. 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...
autoitWV Posted March 31, 2011 Author Share Posted March 31, 2011 I am sending the files after reducing to 1/4 size This is the autoinfo shot Link to comment Share on other sites More sharing options...
autoitWV Posted March 31, 2011 Author Share Posted March 31, 2011 here is the screen shot of the window the spinner is on I did not see the autoinfor screen shot in the previous post, so I think this is not working Link to comment Share on other sites More sharing options...
autoitWV Posted March 31, 2011 Author Share Posted March 31, 2011 Yes, I have been using the attach button on the posting editor all along, but it does not seem to transmit. files are now 130kb down from 550kb. 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