Sign in to follow this  
Followers 0
lekremyelsew

Hot Corners

14 posts in this topic

#1 ·  Posted (edited)

Hello, all

This is my first AutoIt script, but i have had scripting experience before

Its called Hot Corners 2, if you want to see the ver 1 its on snapfiles, but its not AutoIt

Compiling the script might not work because it needs additional resources that aren't there

Tell me what you think of it, there are probably a few bugs so if you find one tell me so i can fix it

Already found a bug

Hot_Corners.zip

Edited by lekremyelsew

Share this post


Link to post
Share on other sites



I Like It!!!

Ideas

Hot Corners...

1 Top-Right should have a "Close Active Window" option available

Hot Mouse

1 Should be "easy keys" the "Win+h" keys are distant and hard to reach.

"h" is in the middle of the keyboard.

With that much effort its not reasonable to use Hot Mouse.

maybe "Win+Q" or "win+z" or "Win+/"....?????

Hot Centers

Easiers than Hot Mouse, Center of Top, left, right and bottom of the desktop

Options

"Run..." should give the file name to be ran in the option window

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I made the hotkey Win+X

re-download the zip because i updated it

Edited by lekremyelsew

Share this post


Link to post
Share on other sites

might want to put a small sleep before "ContinueLoop" ...ie... Sleep(5)

Func MM()
    If $move_state = 0 Or $move_state = 2 Then
        MouseMove(@DesktopWidth/2,@DesktopHeight/2,0)
        While 1
            $mpos = MouseGetPos()
            If $mpos[0] = @DesktopWidth / 2 And $mpos[1] = @DesktopHeight / 2 Then
                ContinueLoop
            EndIf

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

* for future expansion, at the top place this

Global $Combo_data = "Control Panel|My Documents|Nothing|Run...|Screen Saver|Search Google|Show Desktop|Stand By|Lock"

* then use this for the combo boxes

GUICtrlSetData(-1, $Combo_data ,IniRead(@ScriptDir & "\config.ini","Corners","TL","Nothing"))

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

* for future expansion....

Make more use of the event_handler() for Center, Mouse, Corners etc

Func HC()
    If $hot_state = 0 Or $hot_state = 2 Then
        $pos = MouseGetPos()
        $xres = @DesktopWidth -1
        $yres = @DesktopHeight -1
        If $pos[0] = 0 And $pos[1] = 0 Then
            Sleep(IniRead(@ScriptDir & "\config.ini","Options","HCD",0))
            $pos = MouseGetPos()
            If $pos[0] = 0 And $pos[1] = 0 Then
                Event_Handler("TL", "Center") ; ******
            EndIf

;....

; ****************

Func Event_Handler($action, $local)
    If $mic = False Then
    Switch IniRead(@ScriptDir & "\config.ini",$local,$action,"Nothing")
;....

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

As I stated earlier "Close Active Window"

Global $Combo_data = "Control Panel|My Documents|Nothing|Run...|Screen Saver|Search Google|Show Desktop|Stand By|Lock|Close Active"

; .....

Case "Close Active"
            Send("!+{F4}")

Worked great

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Wow, this is really handy, nice job!

One thing though, the help file says that WIN+X will center the mouse, but its set for WIN+H in you script, just a minor detail.


MUHAHAHAHAHA

Share this post


Link to post
Share on other sites

Wow, this is really handy, nice job!

One thing though, the help file says that WIN+X will center the mouse, but its set for WIN+H in you script, just a minor detail.

dude this is a amazing script, what makes it amazing its the idea.I mean ppl could do this , but i doubt ppl could come out with this amazing idea. Nice job on your first script !!!

Share this post


Link to post
Share on other sites

#14 ·  Posted

Hi Lekrem,

I was looking for a program that activates the current screensaver when I move the mouse into one of the 4 corners like in OS X. This is how I came across your program.

I finaly tested Hot Corners on Vista. As I usually work under a non-administrator account, I found out that your code only calls the default screensaver. I changed the code to use the current users screensaver, and if none is defined, to ignore it.

I also corrected some minor spelling mistakes and added some #includes without which I get compile errors.

It now works fine for me. Thanks for this usefull program.

I have included the au3 file and I have commented the changes. Hot Corners.au3

Have fun!

Best regards,

Denis

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0