AutoHotkey Community

It is currently May 27th, 2012, 1:17 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: July 7th, 2008, 12:27 am 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
Well this is what i used to write macro's for Fullscreen games...

Code:
frozen = -1
Gui, Add, Text, x10 w100 h25,  Mouse Position`t 
Gui, Add, Text, x+5 wp hp vMPos
Gui, Add, Text, x10 w100 h25,  Colour
Gui, Add, Text, x+5 wp hp vMcolor
Gui, Add, Button, x50 y70, Freeze (F2)
Gui, Add, Button, x150 y70, Copy
Gui, Show,, WIN SPY
WinSet, AlwaysOnTop, On, WIN SPY

SetTimer, MouseGetPos, 10



MouseGetPos:
 if frozen = -1
  {
  MouseGetPos, Mousex, Mousey
  PixelGetColor, color, %Mousex%, %Mousey%
  GuiControl,, MPos, %Mousex%, %Mousey%
  GuiControl,, Mcolor, %color%
  Return
  }
  else if frozen = 1
  {
  Return
  }

ButtonFreeze(F2):
F2::
EnvMult, frozen, -1
Return

ButtonCopy:
Clipboard = %Mousex%, %Mousey%  %color%
Return,

Enjoy

_________________
Image
I know i have 6 legs. It's cuz I'm special.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon and 13 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