::selectitems "File1.jpg",0,1 Focus moved but not scroll bar

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

::selectitems "File1.jpg",0,1 Focus moved but not scroll bar

Post by binocular222 »

Code: Select all

::selectitems "File1.jpg",0,1 
This command sucessfully select and focus File1.jpg but the scrollbar doesn't move so that Fiel1.jpg is still out-of-view
I doubt that it's not a bug but a setting/ini tweak somewhere.
P.S: ::sel +40 can make the scrollbar move
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: ::selectitems "File1.jpg",0,1 Focus moved but not scroll

Post by admin »

Where does it say it would move anything into view? Not in my help file. :)

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: ::selectitems "File1.jpg",0,1 Focus moved but not scroll

Post by binocular222 »

Just common sense. Anyway, ::sel can do it, why not ::selectitems ?
If it doen't take time, then can you make this little improvement?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: ::selectitems "File1.jpg",0,1 Focus moved but not scroll

Post by TheQwerty »

You could follow SelectItems with a call of #1012 (Miscellaneous | Focus Functions | Move Focused Item Into View).

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: ::selectitems "File1.jpg",0,1 Focus moved but not scroll

Post by binocular222 »

Ah, Thanks
Never thought of that solution!
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

autocart
Posts: 1422
Joined: 26 Sep 2013 15:22

Re: ::selectitems "File1.jpg",0,1 Focus moved but not scroll

Post by autocart »

It does not work.
I type into address bar ::#1012;
also by way of Scripting/Run Script... no success.

a working example is ::#230; (from the help file, will pop up the submenu "New" of menu Edit)

EDIT:
take it back, guess it had to do with focus problem.
when I run it from address bar or scripting window then the list that should be scrolled obviously has no focus
when I run it from the actual script in context then it works.

Post Reply