[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/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/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/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 - BROKEN SCREEN

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 17th, 2024, 10:14 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 28 posts ] 
Author Message
 Post subject: BROKEN SCREEN
PostPosted: May 5th, 2014, 4:55 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Guys I would like to create a widget that I'll call it "Broken Screen".
I will collect various "broken screen" effect pngs.
The idea is: when the user will double click anywhere on the screen, the "cracked" pngs will appear in random sequence and give the broken screen effect..!
Is possible?? Any assistance is welcome! :D

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 5th, 2014, 11:01 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
There is code to do this... but it needs to run and infinite loop to detect mouse buttons (and this will rocket the CPU usage). Mouse X and Y is easily available. But let me see if there is any possibility we can do that in code in an efficient way.

And seems like some... Clickjacking! Antivirus will simply yell out louder! :P

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 2:30 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
do you want it to be:
1. a hidden widget to get the DoubleClicks in the middle of the user's work
or
2. just a fullscreen widget to broke the screen on DoubleClick?


i don't know any way to get the mouse click while widget is hidden or mousethrough, so i don't know about first one
but the second one seems possible to me,
i think digigamer is also talking about second one

for second one, also we could make its opacity lower to user don't find that it's exist easily


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 2:47 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
I have these widgets in my gallery that may can help you to take an idea for the script:
http://jimking.deviantart.com/art/Annoy ... -448445056

http://jimking.deviantart.com/art/Real- ... -417657396

Check especially this one:
http://www.deviantart.com/art/Hulk-for- ... -305607494
(by qiancang)

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 9:23 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
do you want something like this?
brokenscreen_test1 [2014.05.06].xwp [6.41 KiB]
Downloaded 196 times

just remember:
[RightClick and Close] to close the widget


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 9:33 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Yes the base function is this!
Questions:
1) This will work creating with more than one png files a folder in the widget's folder(to have multiple "broken"images?
2) They will appear in random way?
3) We can add an option to choose if the images will stay on screen or clicking on other point the prev image will disappear?

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 9:45 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
1 and 3 is simple
but 2 need a bit of work; i don't know any automatic way to create random order, so i should create it manually


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 9:58 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Any ideas looking in the "Annoying Little Bug" widget..?
(The link is posted here)
Who created this, added a full random behaviour.. So I was thinking if we can still a similar function..

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 10:33 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
that's a large code and it has so much maths
he is really a professional
i really get confused on such big projects

anyway i can add a simple random order for it,
but i don't know how effective it would be

edit:
ok, i found a simple way,
i think it's enough to do the job
it doesn't need so much thinking,
there's a command available for it already there


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 1:05 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Ok hamid!!! Give me time to collect the png files and I'll post here the second test widget with the images inside, to start the creating...

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 3:33 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Here is the second test widget with the pngs inside..


Attachments:
brokenscreen_test.xwp [291.14 KiB]
Downloaded 204 times

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/
Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 4:55 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
here's another test version
it's not complete yet

1. i think some of the images are not good enough
2. also i don't know how you want it to change between 2 modes
3. we can also add an option to temporary disable widget without closing it

brokenscreen_test3 [2014.05.07].xwp [291.25 KiB]
Downloaded 193 times

============
Changes:
1. renamed pngs from 1-6 to 0-5 to match the code
2. added getting image.src code
3. added random order code
4. centered the images on pointer
5. added mousethrough for images to make possible clicking same area again
6. disabled dragging option to disable moving the widget by objects
============


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 5:49 pm 
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  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 6:16 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 6:45 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Go and rest mate, we will continue later..
I found some cool high quality images from Android apps and guess what with crack sounds too! So we can also add sounds :D

I will post all the files in a zip as soon as possible.. I'm going to bed..! Thanks again!

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 8:24 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 6th, 2014, 9:25 pm 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313
default setting:
mouse through:true
lock position:true

how to use:hold ctrl and double click
ps:you can hold ctrl to operate mouse through widgets


if you want to add pngs,please edit code line1 "var imgCount = ?"


Attachments:
broken_screen_version_qiancang.xwp [292.05 KiB]
Downloaded 206 times
Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 2:05 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
THANK YOU qiancang for your precious help!!! The addition of the ctrl key was really clever to avoid system double clicks and the user will use it only with ctrl key down. :D

Based on qiancang's script can we add random crack sounds?? (and with a right click option for sound ON/OFF)
First I need to check inside the android apks and convert the sounds if they exist there to .wav to be compatible with XW.

Edit:
1) I found the sounds. I'll convert them to .wav
2) To find images though android apps maybe was not so good idea.. I have 26 images now and are all great!! I can't choose! :lol:
(I will resize them a bit, I will select the best ones and then they will be ready to use)

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 2:59 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
sounds wav files/folder


Attachments:
5_wav_files.rar [533.92 KiB]
Downloaded 209 times

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/
Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 8:05 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
i didn't add the ctrl key (mousethrough), because i wanted to make it an always running widget
since it is a fullscreen widget, the ctrl key may been used by other programs and have effect on user's work
anyway i wanted to add it after i add a disable option for widget


and another thing is that qiancang version will save the broken parts of screen to ini for recovering it after reload;
i don't thing that's a necessary thing to save these items to ini and recovering broken parts after reload

so i will make some changes to our script based on qiancang script


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 8:21 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Yes the ctrl is a great addition and don't worry because the crack effect appears ONLY when the ctrl key is down with a double click.
And since the widget will work only on desktop it's hard to use this combination from other program..

qiancang added the save ini function I think for the case that the user using the multi-images mode, want them on the screen, after the reload of XWidget the cracked images will appear again. So leave it hamid!! :idea:

What about the sound function...?

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 8:41 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
do you match them with specific image or they're in random order?


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 8:46 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Using the qiancang's test widget, in both modes "one" and "multiple" glass appear in random order.
I finished the selection of the final cracked images but this can be edited by me at the end. It's the easy part.. Are 11 or 12 images.
Maybe less.. (I'm trying to optimize them a bit and create a text image for the default image of the widget).
So about the sounds there are 5 wav and I was thinking the random order..
And the necessary right click for sound on/off..

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 1:07 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
i think it would be better to qiancang edit his script and continue on script,
i don't like to edit someone's code while he's available
also it is confusing to me reading someone's code, so it's better i don't touch it


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 1:29 pm 
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  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 7th, 2014, 6:30 pm 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313
with sounds


Attachments:
broken_screen_version_qiancang.xwp [916.58 KiB]
Downloaded 203 times
Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 8th, 2014, 12:39 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Awesome!!! :D
Great work as always mate. A big thanks!
I will re-add the final images and the default/icon images created and I will post it..
Thanks again for your time.

PM: Thanks also to hamid for his effort and help of course!

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


Top
 Profile  
 
 Post subject: Re: BROKEN SCREEN
PostPosted: May 8th, 2014, 2:18 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
- Added the 12 broken images and edited the first line of the script changing the "6" to "12".
- Edited a bit the right click titles
- Created default and icon images.

..and posted: :D
viewtopic.php?f=11&t=4518

THANKS AGAIN GUYS!!!

_________________
...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  [ 28 posts ] 

All times are UTC - 8 hours


Who is online

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