Page 1 of 1

Dexpot Hot Corners

Posted: 09.10.2006 23:41:01
by hammergom
Hi there :-) I love your program.

Thought I could give back a little. Here's my hack for Hot Corner support

like OSX...enjoy

Here's something kind of cool that I did for Dexpot.

I used Autoit3 to write a script and then compiled into an executable which gives Dexpot

Hot Corners.

Here's the link to Autoit3: http://www.autoitscript.com/autoit3

Autoit3 is FREE ;-)

Here's the code:

While 1
$Mpos = MouseGetPos()
If $Mpos[0] <20> @desktopheight -20 Then
Sleep(100)
Send("#{F2}")
Endif
If $Mpos[0] > @desktopwidth -20 And $Mpos[1] > @desktopheight -20 Then
Sleep(100)
Send("#{F3}")
EndIf
Sleep(100)
Wend

Copy and paste the above into a new au3 file, ( DO NOT USE NOTEPAD, IT WON'T WORK,

USE THE SCITE EDITOR THAT COMES WITH AUTOIT3 ) then run the script or if you prefer

compile your new script into an executable file with Autoit3. If you compile it with options

you can even give it a custom tray icon and it will be a stand alone app.

This script uses the bottom corners of the screen to send either Winkey +F2 or send

Winkey+F3.

Just by mousing over the bottom corners of the screen you call the Expose and Preview like

features of Dexpot.

Pretty cool I think...more OSX like...he,he,he.

If you want the corners at the Top of your sceen, just edit your script to this:

While 1
$Mpos = MouseGetPos()
if $mou[0] < 20 AND $mou[1] <20> @desktopwidth -20 AND $mou[1] < 20 Then
Sleep(100)
Send("#{F3}")
EndIf
Sleep(100)
Wend

Hope you find this usefull.

L8tr,

HaMMeR=GoM=