Forcing an Applescript Screen to stay active until a button in clicked...

I'm trying to get an Applescript to run, which will display a message either before of after a user has logged on to his/her account. Only when the button is clicked will the user then be allowed to continue using his/her computer.
Another member gave me the following script, which works well on OS 9 Macs, but when used on OS X macs, the message is displayed, but the user can ignore the message and continue working away. How can I force the user to click the OK button before he/she is allowed to contine?
on run
display dialog "Do not use this computer for anything naughty!" buttons {"OK"} with icon 2
end run
Thanks in advance...

Thanks again all for the quick replies. Your help is greatly appreciated! :)
OK, well I've tried requestFocus() and requestFocusInWindow() (which is supposedly recommended according to the API notes)
What I've done is to put a focus request in both a mouseEntered event and in the start method of the applet, with a focusListener added to see when focus is gained.
For some reason, focus is still not gained until the mouse is actually pointing in the applet. Maybe this is on purpose? My request for focus in the start method seems to fail.
Here's a snippet of both the start method and the mouseenter:
     public void start() {
          message="starting!";
          requestFocusInWindow();          
     public void mouseEntered(MouseEvent event) {
          requestFocusInWindow();
As you can see, it's really simple. The message changes as soon as the focus is gained, via the interface for FocusListener.
So it's better! It accepts my keyboard input right away as long as the mouse is in the applet area. However, it still doesn't accept my kybd input from the get-go if the mouse cursor isn't in the applet area. :(
I guess this is okay but not ideal. Anyone know why the request for focus isn't working in the start method?
I did try the javascript but for some reason it didn't seem to make a difference? maybe i'm using it wrong:
<HTML>
<APPLET CODE="movinghello.class" WIDTH=750 HEIGHT=400/>
<script language="JavaScript">
<!--
document.movinghello.requestFocusInWindow();
//-->
</script>
</HTML>

Similar Messages

  • How do i get the onclick state to stay on until another button is clicked?

    Im using edge animate and i am trying to create a button that has a different gradient when it is clicked on but when it is clicked the state only shows for a second and then disappears. how do i get the onclick state to stay turned on until another button is clicked?

    You can try to toggle the browser.shell.shortcutFavicons pref on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • My iphone 4 regularly gets stuck on the apple logo screen and stays there until it runs out of battery, and even during charging. what can i do? I have restored it, still it gets stuck on apple logo, anyone pls help.

    my iphone 4 regularly gets stuck on the apple logo screen and stays there until it runs out of battery, and even during charging. what can i do? I have restored it, still it gets stuck on apple logo, anyone pls help.

    Jai141 wrote:
    ... and im not sure as i brought the phone of someone else..  i will have to ask them
    Good Luck.
    Jai141 wrote:
    Thanks
    You're Welcome.

  • How do I get my iPad screen to stay on until I manually turn it off?

    When reading a web page, for example, I may want the screen to stay on for an hour, but I have to keep touching it to keep it on. When my hands are covered with eggs and flour, I don't like touching the screen every 2 minutes.

    Settings > General > Auto-Lock > Never
    Don't forget to reset it to a timeout value when you are finished!
    Message was edited by: Chamar

  • Play motion tween until other button gets clicked

    I want to make an animation where a person dances: there are 4 buttons and when one button gets clicked, the person starts and loops a specific motion tween. I already have everything, until now only a picture is shown on click:
    function clickSpecialMove(event:Event):void {
    ! trace("SpecialMove");
    ! gotoAndStop("SpecialMove");
    BeHappy.addEventListener(MouseEvent.CLICK, clickBeHappy);
    function clickBeHappy(event:Event):void {
    trace("BeHappy");
    gotoAndStop("BeHappy");
    Twinkle.addEventListener(MouseEvent.CLICK, clickTwinkle);
    function clickTwinkle(event:Event):void {
    ! trace("Twinkle");
    ! gotoAndStop("Twinkle");
    HandsUp.addEventListener(MouseEvent.CLICK, clickHandsUp);
    function clickHandsUp(event:Event):void {
    ! trace("HandsUp");
    ! gotoAndStop("HandsUp");
    but I wan't a motion tween to play:
    gotoAndPlay("motionTwinkle"); does not work, then all motion tweens just walkr through like in a film :...can anybody help me? that would be so nice thank you!

    How do you implement the animations?  What makes the animation loop?  For all of the code you show you only have gotoAndStop() commands.  What do those have to do with the gotoAndPlay() you mention?  Why do you have exclamation marks leading several lines - remove those if they are actually in your code?

  • My ipod touch regularly gets stuck on the apple logo screen and stays there until it runs out of battery, and even during charging. what can i do?

    please help!

    If the Home button is broken, best thing to do is take it in for repair, or get an estimate. Make a Genius appointment.
    Apple - Support - Search

  • Rollovers stay highlight when back button is clicked

    Hi All,
    I am a novice Dreamweaver user so please forgive me if this
    question is basic... I have looked everywhere for the answer. I am
    designing my page and I have created rollover through Behaviors.
    They work great, but the problem that I am running in to is that
    when I hit the back button they are still highlighted and do not
    unhighlight until I mouse off them again. I have read that this is
    a IE problem, but I am testing with Firefox 3.0, Safari (newest)
    and IE (newest) and I am getting the same problem with all. Is
    there any way to fix this? I will post the code for one link.
    Thanks in advance.
    Joe
    <div id="clientsDIV"><a href="clients.html"
    onfocus="active"><img
    src="images/main_menu/buttons/clients.png" alt="clients" width="88"
    height="17" border="0" id="Image6"
    onmouseover="MM_swapImage('Image6','','images/main_menu/buttons/clients_ro.png',1)"
    onmouseout="MM_swapImgRestore()" /></a></div>
    realityplay is offline Reply With Quote

    If people are having to click the back button to use your
    site, then your
    navigation is inadequate. Why are the having to do this?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "realityplay" <[email protected]> wrote in
    message
    news:gp0tbb$ptl$[email protected]..
    > Hi All,
    >
    > I am a novice Dreamweaver user so please forgive me if
    this question is
    > basic... I have looked everywhere for the answer. I am
    designing my page
    > and I
    > have created rollover through Behaviors. They work
    great, but the problem
    > that
    > I am running in to is that when I hit the back button
    they are still
    > highlighted and do not unhighlight until I mouse off
    them again. I have
    > read
    > that this is a IE problem, but I am testing with Firefox
    3.0, Safari
    > (newest)
    > and IE (newest) and I am getting the same problem with
    all. Is there any
    > way to
    > fix this? I will post the code for one link. Thanks in
    advance.
    >
    > Joe
    >
    > <div id="clientsDIV"><a href="clients.html"
    onfocus="active"><img
    > src="images/main_menu/buttons/clients.png" alt="clients"
    width="88"
    > height="17"
    > border="0" id="Image6"
    >
    onmouseover="MM_swapImage('Image6','','images/main_menu/buttons/clients_ro.png',
    > 1)" onmouseout="MM_swapImgRestore()"
    /></a></div>
    > realityplay is offline Reply With Quote
    >

  • Video Not Marking as Complete Until Exit Button is Clicked?

    I recieved the following feedback from one of our clients. They are using an AICC based LMS.
    "We noticed that in order for the video to mark as completed, we need to have all of the chapters checked off, quiz must be taken, and the user has to press the small Exit button."
    Do users actually have to press the exit button before a video will send "completed" to an LMS? Is there a work around?
    Thanks!

    What Captivate version are you using?
    This is happening based upon the Quiz Preferences - Reporting Settings that you have configured.
    Yes, you can customize the settings to mark completeing on basis of user access, slide view, Quiz attempts and many more criteria.
    Please choose and customize based upon your requirement--
    Instead of making the user hit the close button, you can yourself set Captivate to Close the course once it reaches the end.
    You can do that fron Start and End Settings under Preferences.
    I hope this helps.
    Thanks,
    Anjaneai

  • Satellite Pro M40: screen stays dark untill Windows has fully loaded

    Hello to all on here.
    I have a problem with my laptop. My laptop is a Satellite Pro M40.
    When I turn on my laptop I have found the back light will not come on... the screen will stay dark untill it has fully loaded into Windows. I have checked all of my power options and there all fine. Even if I can get to the Bios screen its impossible to read the txt due to no backlight. I have tried holding the Fn & F7.. noy joy.
    Does anyone have any ideas?
    Richard

    Hello Richard
    I didnt see something like that before and I am little bit confused why you can not see BIOS settings but running OS. Usage of FN+F7 key combination will not help because this option works just under Windows and not under DOS level.
    If possible try to connect external monitor and test it again. Anyway I dont believe that you can fix it on your own. Try please to contact Toshiba authorized service partner in your country. Explain the situation and you will see what they will say.
    If you find out something please let us know. It will be really interesting to know why this happen.

  • Screen light stays on iphone4

    I have noticed that whenever I use my phone ,the screen light stays on until I manually switch off.
    Can anyone suggest how to rectify it?

    Take the case off. It's interfering with the proximity sensor. There is no "setting" that will fix this.

  • Why won't my iPhone 5c "go to sleep" unless it's on the lock screen? If I close out an app and am just on the home screen it just stays lit until I hit the button to force it to sleep...

    Why won't my iPhone 5c "go to sleep" unless it's on the lock screen? If I close out an app and am just on the home screen it just stays lit until I hit the button to force it to sleep...

    Your issue is different from the OP's.  In the future, post your own thread to get answer to your specific questions.
    For the OP: Go to Settings > General > Auto-Lock and set it to your preferred time.
    For you: Create a backup and restore the device as new and test it to see if it still gets very hot.

  • How can I make the lock screen stay active for longer than 5 seconds?

    I'd like to have the lock screen stay active for longer than 5 seconds.  Too many times I've not seen a notification come through.  I'd like to have it stay on for at least 5 minutes for shutting down.  I'm suprised a "lock screen delay" option isn't a general setting available to unjailbreaked phones. 

    Sorry, no.
    Tell Apple you'd like a setting to alter this:
    http://www.apple.com/feedback/iphone.html

  • Can't Stay Activated - Cloud Subscription

    I have the CS 6 subscription. Using PremPro, AE, SpeedGrade, Audition, PS. I also have CS 5.5 apps installed on the same machine.
    Problem: I have to active my subscription every day.
    For some reason my computer does not stay activated.
    I contacted Adobe technical support. They walked me through changing the permissions in one of the directories involved in the activation process. However, this did not fix the issue. I still have to re-activate manually every day.
    ***Side note in case someone is experiencing the same issue****
    One day I couldn't open up PPro CS6 projects that contained AVCHD timelines. Supposedly the timeline presets couldn't be found. I had been using CS 6 for about a week or so up to that point. Turns out PPro considers itself a trial version everyday (and therefore doesn't let you use AVCHD timelines), until I activate again. But there was no way for me to manually force activation again. By accident I discovered that when I open up After Effects CS6, and wait a few seconds, an activation window opens up and ask me to activate again using my Adobe ID. I have to do this EVERY DAY before I can use any CS 6 apps.
    //end side note***
    I'm on Windows 7 Pro, 64 bit.
    Thanks in advance for any help.

    I had a similar situation.  I found it happened for me whenever I opened a CS5 product.
    I eventually removed CS5, but as often happens, this messed up the CS6 install.
    A reinstall and reactivation of CS6 after CS5 was removed corrected the issue for me.

  • New LCD screen shows no video until Windows desktop appears

    I just got my first LCD screen a few days ago.  Apple 23" Cinema Display.
    When the system starts or restarts, I do not see the BIOS/startup info on the screen.  The screen stays black until Windows desktop loads.
    Is this normal for LCD screens?

    Yes I have LCD connected to DVI.   When I look at desktop properties or in the nVidia control panel, I only see the LCD attached to the DVI as displays;  I do not see the analog display at all.
    I was suprised when I first noticed this since I always saw two display options when I had my CRT monitor attached to the analog connector before I got the new monitor, even though I had only one crt physcially attached.  I just assumed that when the DVI connector is in use it auto shuts down detction of the analog option.  Is this incorrect?
    Also I looked for new monitor drivers at both MS and Apple and found nothing newer than the MS generic Plug and Play monitor dated 2002 that was installed by default.  Is this to be expected too?
    Thanks for your help.

  • HT4061 ????  How do I power up my iPad?  My iPad won't power up. It just stays a black screen.  Tried the start up button, the home button, pressing them down and holding.

    ????  How do I power up my iPad?  My iPad won't power up. It just stays a black screen.  Tried the start up button, the home button, pressing them down and holding.

    Could be the battery is completely drained. Use the charger that came with the iPad and plug that into a known good wall outlet. Let it charge for at least an hour. Then, while it is still plugged in reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart.
    If the device restarts let it remain on the charger until the battery indicates 100%. If it still will not turn on Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

Maybe you are looking for

  • Error in flat file Preview

    Hello gurus, I am getting the error "Virus scan profile /SCET/GUI_UPLOAD is not active" during preview when I use data seperator ","  for csv file. When I use ";" the error is gone but then I won't get right data in the fields because its .csv format

  • Change logical system names after system copy

    Hi! We successfully installed SAP ECC 6.0 system as system copy. All the logical system names of old system have been copied to new system. Question What is the approach to change the logical system names for new SAP system? a) just via tcode SCC4 b)

  • Changing JVM version in CE 7.1 SP11 using Config Tool

    Hi Experts, I have CE 7.1 SP11 installation, in the server node I could see two versions of JVM (jvm: sapjvm_5.1.017 and sapjvm_5.1.058 in directory usr\sap\<>\SYS\exe\jvm\<>\....) In Config Tool, it shows only sapjvm_5.1.058. I faced a problem with

  • Audio Capacity Bar showing full, but Free Space says 52.30 still...

    Kind of hard to explain, but in the Summary View of mu iPod, the Audio Capacity says 1,712,986,856 then some garbled characters, then the Vido says 8.45 GB, photos 196.3 MB and again, free space is at 51.30 (it's an 80 GB video). The bar is all blue,

  • Can't add to Address Book via Mail App

    I had some permissions problems a while back (I did an "apply to enclosing folders" on my system disk -  don't ask - I'm an idiot) and while I fixed them by creating a new system and migrating the old system data to the new system, some problems stil