how scroll up or down. or how scroll a line top

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

how scroll up or down. or how scroll a line top

Post by drjs5x »

hi dear master coders.
possible scroll pane script.
how scroll up or down.
or
how scroll a line top.
http://prntscr.com/g91a2x

example focused line 118.
118 focused line scroll top. script.
focused line top scroll.
possible?
or direct scroll up . scroll down. scroll top. commands?
thanks.


thanks all.
newbie or not...........

highend
Posts: 13316
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: how scroll up or down. or how scroll a line top.

Post by highend »

or direct scroll up . scroll down. scroll top
Afaik not possible. XY would need to be able to return
- The line number of the current visible first / last item
or
- All visible items (more effort to calculate the necessary positions)

What you can do: move the focused item into view with

Code: Select all

sel "+0";
One of my scripts helped you out? Please donate via Paypal

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: how scroll up or down. or how scroll a line top.

Post by drjs5x »

thanks for reply.
i fixed . solutuion script:

$zzz= get("FocusedPos", "top=1");sel -1, , 1;sel $zzz;

%100 working.

thanks for help. dear highend. :appl: :appl: :appl:
newbie or not...........

highend
Posts: 13316
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: how scroll up or down. or how scroll a line top.

Post by highend »

get("FocusedPos", "top=1")
Btw, "top=1" isn't an argument :whistle:
One of my scripts helped you out? Please donate via Paypal

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

Re: how scroll up or down. or how scroll a line top.

Post by drjs5x »

but worked.. fixed code: $zzz= get("FocusedPos");sel -1, , 1;sel $zzz;
thanks for highend :whistle: :oops:

%100 working.
newbie or not...........

Post Reply