Jump to content
Sign in to follow this  

Spinner down button will not respond to click attempts

Recommended Posts

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:



;one of the click code below would be here


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.

Share this post

Link to post
Share on other sites

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)

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites


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. :)

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites


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. :)


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites

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

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...