[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - Animated record player

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 18th, 2024, 11:39 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: Animated record player
PostPosted: April 24th, 2015, 9:18 pm 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
I have animated my record player with a small bit of animated gif. Pretty proud of myself. But is it possible to have a switch on the turntable that would stop/start the animation. That would be real cool.
:-)

_________________
Cheers, Pete


Top
 Profile  
 
PostPosted: April 24th, 2015, 10:19 pm 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
here is a bad quality video of my record player. lol
https://youtu.be/37qvlQiAu_4

_________________
Cheers, Pete


Top
 Profile  
 
PostPosted: April 26th, 2015, 2:20 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887

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


Top
 Profile  
 
PostPosted: April 26th, 2015, 4:58 am 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
went into editor hit widget and added this code
function playercontrolcore1OnUpdate(Sender)
{
if(playercontrolcore1.get("%IsPlaying")=="true")
{
gif1.Play=1
}
else
{
gif1.Play=0
}
}

But doesn't stop unfortunately.
Did I place it in the right spot. There was no other code there.
It did highlight the right gif, so that looked correct

_________________
Cheers, Pete


Top
 Profile  
 
PostPosted: April 26th, 2015, 5:07 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Attach your widget here... (.xwp)

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


Top
 Profile  
 
PostPosted: April 26th, 2015, 5:21 am 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
Appreciated


Attachments:
turntable(1).xwp [1.39 MiB]
Downloaded 247 times

_________________
Cheers, Pete
Top
 Profile  
 
PostPosted: April 26th, 2015, 9:52 am 
Offline
User avatar

Joined: July 9th, 2012, 1:14 pm
Posts: 112
Hi,
I think you have to do this:
1. bind the .gif-image to the playercontrolcore
2. "activate" the playercontrolecore (to use script) by double clicking into the white editing box
3. change this line of script from:
if(playercontrolcore1.get("%IsPlaying")=="true") to:
if(playercontrolcore1.isplaying)

For me it works well now.

binding_core.jpg
binding_core.jpg [ 430.64 KiB | Viewed 4004 times ]
playercontrolcore.jpg
playercontrolcore.jpg [ 189.4 KiB | Viewed 4004 times ]

turntable_update.rar [1.29 MiB]
Downloaded 316 times


Top
 Profile  
 
PostPosted: April 26th, 2015, 2:36 pm 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
Many thank Dagedee!!!
Works perfectly!!
What can't Xwidget do?
:-)
:-)
Ripper, thanks all for the help and time.

If anyone wants to finish this widget properly and post for others, please do.
Maybe credit me for the idea only?
Also I stole the image from the internet so not sure how that goes for copyright.
:-(

_________________
Cheers, Pete


Top
 Profile  
 
PostPosted: April 26th, 2015, 7:38 pm 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
so why cant I get this to do the same thing?
It doesn't stop animating..


Attachments:
old_school_record_player.xwp [947.71 KiB]
Downloaded 252 times

_________________
Cheers, Pete
Top
 Profile  
 
PostPosted: April 27th, 2015, 4:16 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Nice BUT be careful at the CPU usage of the animated widgets.. To check it, after press "Debug" to test the widget, open the pc task manager and check the "xwtest.exe" and "XWDesigner.exe" to see the cpu %.
Good widgets must give 0~2% cpu...

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


Top
 Profile  
 
PostPosted: April 27th, 2015, 5:34 am 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
I went mad. Will upload a youtube video. Lol. And you're right when I have everything switched on it's a bit of a hog. Vid uploading now but in a long queue

_________________
Cheers, Pete


Top
 Profile  
 
PostPosted: April 27th, 2015, 5:54 am 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
https://www.youtube.com/watch?v=-I22kMQPVeY

_________________
Cheers, Pete


Top
 Profile  
 
PostPosted: April 27th, 2015, 9:06 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Hey! What is this "Dancing little girl"..? :D
It's cool.

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


Top
 Profile  
 
PostPosted: April 27th, 2015, 1:30 pm 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
It's just another animated gif. :-)

_________________
Cheers, Pete


Top
 Profile  
 
PostPosted: May 11th, 2015, 1:15 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
Cool!!
You could always PNGAnimate for high quality animations (look out for size!!)

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
PostPosted: May 11th, 2015, 3:28 am 
Offline
User avatar

Joined: April 3rd, 2015, 3:30 pm
Posts: 119
It works ok on cpu with everything running but there is a little load.
I would not know how to make a png animate. This was all made from ani gifs I found and it the platters case just cropped it to suit.

_________________
Cheers, Pete


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 38 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:  
cron

Powered by phpBB® Forum Software © phpBB Group