Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 [2]   Go Down

Author Topic: Tutorial : How To Set Up A Reboot Hot Key (For When The Mouse Bug Happens)  (Read 15438 times)

IIO

  • Staff Member
  • 4096 MB
  • *******
  • Posts: 4671
  • just a number
Re: Tutorial : How To Set Up A Reboot Hot Key (For When The Mouse Bug Happens)
« Reply #20 on: February 18, 2020, 01:50:37 PM »

not sure how to do that with no eject button. (but see? there is the reason why his idea ist useful)

i´ve been using mac keyboards with windows PCs but never the other way round.
Logged
insert arbitrary signature here

alexfree

  • 32 MB
  • ***
  • Posts: 37
  • New Member
Re: Tutorial : How To Set Up A Reboot Hot Key (For When The Mouse Bug Happens)
« Reply #21 on: February 18, 2020, 02:55:48 PM »

I'm not familiar with the MacMini mouse issue or Applescript.
However, I tried your tiny script. Saved it as an application and 'never show startup screen' checked.
Then navigated to and opened it via the keyboard (no need to play with F keys). My G3 gracefully shut down and restarted.
Could be useful if, for whatever reason, you have no mouse, or keyboard with a power button.

I’m glad you found this useful, and your right.
Logged
Mac Mini G4 early 2005 - 1.42GHZ w/ 1GB RAM - Triple booting Mac OS 9.2.2, Mac OS X 10.3.9 & 10.4.11

alexfree

  • 32 MB
  • ***
  • Posts: 37
  • New Member
Re: Tutorial : How To Set Up A Reboot Hot Key (For When The Mouse Bug Happens)
« Reply #22 on: February 18, 2020, 04:39:58 PM »

not sure how to do that with no eject button. (but see? there is the reason why his idea ist useful)

i´ve been using mac keyboards with windows PCs but never the other way round.

Here's a safer version of the script with your suggestions (not sure on how to turn off hot function keys automatically, there is no Apple Script Dictionary for the Keyboard Control Panel).

display dialog "Do you wanna reboot?" buttons {"Yes", "No"} default button "Yes"

if result = {button returned:"Yes"} then
   tell application "Finder" to restart
else if result = {button returned:"No"} then
   display dialog "Do you wanna open the Keyboard Control Panel to disable Hot Function Keys?" buttons {"Yes", "No"} default button "No"
   if result = {button returned:"Yes"} then
      tell application "Keyboard" to activate
   end if
end if
Logged
Mac Mini G4 early 2005 - 1.42GHZ w/ 1GB RAM - Triple booting Mac OS 9.2.2, Mac OS X 10.3.9 & 10.4.11

IIO

  • Staff Member
  • 4096 MB
  • *******
  • Posts: 4671
  • just a number
Re: Tutorial : How To Set Up A Reboot Hot Key (For When The Mouse Bug Happens)
« Reply #23 on: February 19, 2020, 04:36:30 AM »

on atari you could move the cursor with the arrow keys. i sometimes missed that when jumping to OS7.
Logged
insert arbitrary signature here
Pages: 1 [2]   Go Up

Recent Topics