AutoHotkey Community

It is currently May 27th, 2012, 6:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: October 17th, 2010, 10:41 pm 
Offline

Joined: October 30th, 2009, 1:03 am
Posts: 26
trying to modify HOTCORNERS, a directional "when the mouse touches boarder" = launcher thing no mouse-clicking

http://www.autohotkey.com/forum/viewtop ... highlight=

Is, LEFT,RIGHT,UP,DOWN possible...
as hotspot\direction instead of just CORNERS?

8 directions = superior to 4 no?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2010, 5:01 am 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6073
Location: San Diego, California
You posted almost the exact question 10 months in that thread.

>>Is, LEFT,RIGHT,UP,DOWN possible...

What do you mean by this?

>>8 directions = superior to 4 no?

are you referring to the 4 corners and the 4 sides of the screen, total 8 ?

If that is what you want, just add more tests to the script, >after< the existing tests

Code:
 a |---Y<T---|  b
--------------------
 e |         |     

X<T|         |X>Xmax
   |         |     
--------------------
 c |-Y>Ymax--|  d


;Commands for top left corner
a is ->  if (MouseY < T and MouseX < T and

b is ->  if (MouseY < T and MouseX > Xmax and

c is ->  if (MouseY > Ymax and MouseX < T and

;Commands for bottom right corner
d is ->  if (MouseY > Ymax and MouseX > Xmax and

; add new tests after the existing tests
e would be ->  if (MouseX < T and



Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2010, 6:46 am 
Offline

Joined: June 8th, 2009, 8:09 pm
Posts: 84
here an example of a 'touch' button on the right side of the screen which can be moved anywhere I made for one of my scripts:

Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#NoEnv
#Persistent
#SingleInstance force
#NoTrayIcon
SendMode Input
SetWorkingDir %A_ScriptDir%


OnMessage(0x200, "WM_MouseMove")
CustomColor = 99FF00 
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow 
Gui, Color, %CustomColor%
Gui, add, picture, h150 w12 guimove, touch1.png
WinSet, TransColor, %CustomColor%
Gui, Show, x1904 y625
return

WM_MouseMove() {
   runwait, [insert whatever prog here]
}

cc2:
uimove:
PostMessage, 0xA1, 2,,, A
Return

~XButton1::
Gui, Destroy
exitapp
return


requires a 'touch1.png' in same directory - color rectangle of your choice.

Leef_me: hello! :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Bing [Bot], dra, HotkeyStick, migz99, mKnight, Wicked, XstatyK and 55 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group