Results 1 to 5 of 5

Thread: Application to disable/enable HotCorners (DOWNLOAD)

  1. #1
    Basic Member
    Join Date
    May 2013
    Posts
    4

    Application to disable/enable HotCorners (AppleScript Code)

    for the Hot Corners issue I made myself a little dialog box with Apple Scripts.
    it works in 10.8.3 and I have no idea if it will work with previous versions.

    http://www.mediafire.com/download/90...nok/Expose.zip

    that should make it easier for you guys for now!

    I take no credit in the actual code! pulled all that from the Internet and just compiled it into a little program.



    EDIT: few seconds after posting I realized that this will only work with my pre-set options for the corners.
    of there is any interest I could write a little post how I made it and how you can do it to for your settings!
    Last edited by Kyu; 08-18-2013 at 03:28 AM.

  2. #2
    Please elaborate as I am very interested. I use Top Left for mission control. Top right for Notification Center. Bottom Left for Application Windows and Bottom Right for Desktop.

  3. #3
    Basic Member
    Join Date
    May 2013
    Posts
    4
    open up the AppleScript then copy past the code into a new window.

    PHP Code:
    repeat
        activate
        
        
        set question to display dialog 
    "HOT-CORNERS" buttons {"OFF""ON""CANCEL"} default button 2
        set answer to button returned of question
        
        
    if answer is equal to "OFF" then
            tell application 
    "System Events"
                
    activate
                
    if UI elements enabled then
                    tell expose preferences
                        set properties of the top left screen corner to 
    {activity:nonemodifiers:{}}
                        
    set properties of the top right screen corner to {activity:nonemodifiers:{}}
                        
    set properties of the bottom left screen corner to {activity:nonemodifiers:{}}
                        
    set properties of the bottom right screen corner to {activity:nonemodifiers:{}}
                    
    end tell
                
    else
                    
    tell application "System Preferences"
                        
    activate
                        set current pane to pane 
    "com.apple.preference.universalaccess"
                        
    display dialog "UI element scripting is not enabled. Check \"Enable access for assistive devices\""
                    
    end tell
                end 
    if
            
    end tell
            
            
        end 
    if
        
        if 
    answer is equal to "ON" then
            tell application 
    "System Events"
                
    activate
                
    if UI elements enabled then
                    tell expose preferences
                        set properties of the top left screen corner to 
    {activity:application windowsmodifiers:{}}
                        
    set properties of the top right screen corner to {activity:show desktopmodifiers:{}}
                        
    set properties of the bottom left screen corner to {activity:dashboardmodifiers:{}}
                        
    set properties of the bottom right screen corner to {activity:all windowsmodifiers:{}}
                    
    end tell
                
    else
                    
    tell application "System Preferences"
                        
    activate
                        set current pane to pane 
    "com.apple.preference.universalaccess"
                        
    display dialog "UI element scripting is not enabled. Check \"Enable access for assistive devices\""
                    
    end tell
                end 
    if
            
    end tell
            
            
        end 
    if
        
        if 
    answer is equal to "CANCEL" then
            
    return
            
        
    end if
        
    end repeat 
    now you just have to edit the properties in the if answer is equal to "ON" then scenario.
    for your specific properties like Notification Center please check google cause I have no clue and did the same to put this thing together.

    when you are done and the script works as intended just export it as an app and voilą!

  4. #4
    Basic Member
    Join Date
    Oct 2013
    Posts
    4
    The game is supposed to disable the hot corners when we are playing, we don't have to create ways to disable it by ourselves.

    PLEASE!!! Fix it Valve!

  5. #5
    I think someone can make a workaround in terminal with the above code. Basically we need to tell terminal that every time dotaosx is on then answer is ON if dota osx is not running then answer equals to cancel. I don't know how hard that should be but it doesn't seem that hard, now it's a how different Idea to actually implemented in the background ( or inside dota2 ) , rather than a application, but that can do for now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •