XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 1st, 2025, 12:23 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: PhotoAlbumCore Code
PostPosted: December 27th, 2019, 9:25 pm 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
Hi

I try to change the path of my photoalbumcore but my code not work can you help me ?
Code:
function BTNOnClick(Sender)
{
  photoalbumcore1.cmd(null,"!SetPath=C:\\Pics");
}


But not work...

Thx :) :) :)

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: PhotoAlbumCore Code
PostPosted: January 4th, 2020, 9:47 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Hi Rom and Happy New Year! :)
You mean something like this?
I used this code
Code:
function button1OnClick(Sender)
{
  photoalbumcore1.cmd(null,"!ChangeFolder")
}


Attachments:
test.xwp [6.17 KiB]
Downloaded 485 times

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/
Top
 Profile  
 
 Post subject: Re: PhotoAlbumCore Code
PostPosted: January 7th, 2020, 6:37 pm 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
Yes happy new year

Regarding the code, what I would have liked is a button that directly selects a defined folder if possible.

Image
When I click on the OverWatch icon I would like it to change the path of the photoalbumcore if possible of course

Thank you :) :) :)

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: PhotoAlbumCore Code
PostPosted: January 8th, 2020, 2:10 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I see. All the widgets until now use custom selection for the path. The manual selection it's always better, because there is no restriction.. Think about it.
In any case I will try to find that code.. :)

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: PhotoAlbumCore Code
PostPosted: January 8th, 2020, 7:49 am 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
This code works maybe ?

Code:
photoalbymcore1.cmd(null,"!ChangePath=C:\\Pics");


Ty JimKing ;)

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: PhotoAlbumCore Code
PostPosted: January 8th, 2020, 10:06 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Rom wrote:
This code works maybe ?

Code:
photoalbymcore1.cmd(null,"!ChangePath=C:\\Pics");


Ty JimKing ;)

There is an error there. It's photoalbumcore1.cmd
I tried placing a folder directly to C:\ named "Pics" but the widget doesn't show anything.
I made some changes but no luck. Seems that this code doesn't work. It needs different approach.
Unfortunately my knowledge about js is limited.. :roll:

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: PhotoAlbumCore Code
PostPosted: January 8th, 2020, 1:27 pm 
Offline

Joined: September 16th, 2016, 3:30 am
Posts: 68
Yes i have see this error, but I try to do like you but no results, and I too am a beginner of JS ..

Maybe with location.path function ?
https://www.w3schools.com/jsref/prop_loc_pathname.asp

_________________
// ===== Contact ===== //
https://discord.gg/9vyhv3F

// ===== My Widget ===== //
http://xwidget.com/xwidget/plus/view.php?aid=2140


Top
 Profile  
 
 Post subject: Re: PhotoAlbumCore Code
PostPosted: January 10th, 2020, 9:08 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Maybe this will work, but we need to find the format.. JS is very sensitive.
I'll continue to search, but I think that it's not a big deal. You can always use the code of my test widget. It needs a couple of clicks to set the path.. :)

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group