I learn scripting

The forum for designers and developers.
User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby Service-Team » 5. Nov 08, 13:09


User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 7. Nov 08, 11:44

Hi Friends,

Again another question that I can't find an answer for. Here or in the SDK.

When a prompt shows up it only goes away after a click on 'ok' or 'cancel'.
Is it possible to quit the prompt with a timeout or something like prompt='false';.

Best regards,
John.

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby Guest » 7. Nov 08, 20:00

For the "normal" alert(), prompt() etc., I think, this is not possible.
However, if you use the Dialog object to create your message boxes, it should be possible to close (at least modeless) dialog using a timer and Dialog.close()

See http://www.silverjuke.net/sdk/dialog-close.html

B.

User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 8. Nov 08, 11:10


SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby SilverEagle » 8. Nov 08, 13:19


SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby SilverEagle » 8. Nov 08, 15:23

Attachments
test.txt
(2.13 KiB) Downloaded 359 times

User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 8. Nov 08, 16:23

SilverEagle wrote:
> SilverEagle wrote:
> > First tell me how you expect the flow to work...

Ik can tell you that but you allready know.....lol
>
> I'm just too impatient, I figured it out myself...
> The functionname MyCallback was what put me on the
> wrong track at first, you probably copied that
> from somewhere I think :-)

You're wright. I have no idea what i'm doing, This scip(thing)
is to hard for me but the change of getting it to work is 50%.

>
> I attached the modified source for you (pasting it
> messes up the layout, I had to rename it to .txt
> as .xml was not acceptable to the forum), my
> changes are:
>
> * Only build the dialog once on program start.
> This way you get to keep your previous search for
> free.
>
> * It's a non-modal dialog, with two callback
> functions: one for canceling it and one for
> ok-ing it. The cancel routine can be called from
> outside as well, in your case the timer.
>
> One last remark: entering characters in the dialog
> does NOT reset programlastUserInput, so a user
> could be theoretically be typing while the script
> suddenly closes the dialog. (I'll report this as a
> bug in a separate thread).


I paste this into my skin and it works great.
If you want i can mail it to you. It is 1440X900pxl so maybe it's to big.

I don't know how to thank you. But I know I have more time for my wife now....lol.


Many many many thanks.
Best regards,
John.

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby SilverEagle » 8. Nov 08, 16:46

djjb wrote:
> You're wright. I have no idea what i'm doing, This
> scip(thing)
> is to hard for me but the change of getting it to
> work is 50%.

You were nearly there, so don't be modest!

> I paste this into my skin and it works great.
> If you want i can mail it to you. It is
> 1440X900pxl so maybe it's to big.
>
> I don't know how to thank you.

Just post it on the forum, or even enter it into the competition. I think your script definitely adds something new, together with all the other interface ideas you wrote about in other posts. Will certainly be something in it for a lot of other skinners or endusers.

Cheers,
SilverEagle

User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby djjb » 16. Nov 08, 12:47


SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: I learn scripting

Postby SilverEagle » 16. Nov 08, 15:07



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Developer Network”