it does not appear that getinfo() can return the current state of the list view (ie details, list, small icons, etc) - is this so?
I'd like to toggle between details and thumbnails #2 by testing to see which view the current tab is in when the script is invoked and then switching between functions 307 and 302 based on the result. Seems it should be doable. Any way to get the current view? TIA.
how do I get a script to return value of current tab view
-
Joso
- Posts: 95
- Joined: 06 Apr 2010 14:13
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: how do I get a script to return value of current tab view
This may give you a hint (if I understood you well).
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
admin
- Site Admin
- Posts: 66347
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
Joso
- Posts: 95
- Joined: 06 Apr 2010 14:13
Re: how do I get a script to return value of current tab view
Thanks - I wish all software authors were as responsive (nah we'd get spoiled) Thanks again.
-
Joso
- Posts: 95
- Joined: 06 Apr 2010 14:13
Re: how do I get a script to return value of current tab view
I can't fricken believe it!
query on 8/29 - feature incorporated into beta on 8/31. Do you deliver too?
Thanks.
* SC getinfo. Changed it to "get". "getinfo" is officially obsolete,
but it is kept for back compatibility so no need to change your
old scripts.
+ SC get enhanced. New argument "view" will return the index of the
current list view (active pane). Example:
msg get("view");
Possible returns and their meanings:
0 = Details
1 = Details with Thumbnails
2 = List
3 = Small Icons
4 = Thumbnails #1
5 = Thumbnails #2
6 = Thumbnails #3
query on 8/29 - feature incorporated into beta on 8/31. Do you deliver too?
Thanks.
* SC getinfo. Changed it to "get". "getinfo" is officially obsolete,
but it is kept for back compatibility so no need to change your
old scripts.
+ SC get enhanced. New argument "view" will return the index of the
current list view (active pane). Example:
msg get("view");
Possible returns and their meanings:
0 = Details
1 = Details with Thumbnails
2 = List
3 = Small Icons
4 = Thumbnails #1
5 = Thumbnails #2
6 = Thumbnails #3
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: how do I get a script to return value of current tab view
That's not that unusual here to have features added that promptly...actually, due to Don being on vacation, it might even have been a bit slower than otherwise...so go spread the word on Net about how well supported XY is, ok?Joso wrote:I can't fricken believe it!
query on 8/29 - feature incorporated into beta on 8/31. Do you deliver too?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
admin
- Site Admin
- Posts: 66347
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: how do I get a script to return value of current tab view
Actually Joso bought a big license several minutes after his last post. Also an acceptable reaction.
Thanks, Joso! 
FAQ | XY News RSS | XY X
-
Joso
- Posts: 95
- Joined: 06 Apr 2010 14:13
Re: how do I get a script to return value of current tab view
So here's the little snippet that toggles my display between 2 states (no reason it can't run thru them all, but this is all I need right now) - Thanks again.
Code: Select all
$i = get("view");
if ($i == 0) {
#307;
}
elseif ($i == 5) {
#302;
}
else {
echo "just toggles between list and thumbnail views";
}
XYplorer Beta Club