AutoHotkey Community

It is currently May 27th, 2012, 9:08 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Crosshairs for ANY FPS
PostPosted: November 14th, 2011, 12:28 pm 
Offline

Joined: November 12th, 2011, 11:20 am
Posts: 15
Location: Hey, I'm Here
Hey, Guys
Ive got a script for crosshairs for any game

The Instructions are F2 To exit and F3 to Suspend

the code is:
Code:
gui, +AlwaysOnTop
Gui, Color, FF0000
WinSet, TransColor,FF0000
gui, -Caption
gui, +border

gui, show, w15 h15, my_gui
WinGetPos, X, Y, W, H, my_gui
SetTimer, WatchCursor, 100
return

WatchCursor:
MouseGetPos,xpos , ypos , id, control
xx:=Xpos+50
yy:=Ypos-
WinMove, my_gui,, xx, yy

return

F2::exitapp ; requires F2 to exit


It took me a while and Im new. Thanks to Leech_me for some of the code

Enjoy!

Note: Please, if you want to redistribute any part of it please give me credit.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2011, 4:50 pm 
Offline

Joined: September 3rd, 2009, 11:26 am
Posts: 93
Have you even tested it?
because it doesnt work...

your saving the mouse pos to xpos and ypos when your reading from Xpos and Ypos (note the capitals)

and why are you taking 50 from x and taking no number from y (yet still including the minus sign?)

it would be alright if it actually worked...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2011, 5:59 pm 
Offline

Joined: May 20th, 2009, 6:18 pm
Posts: 129
Some other crosshair scripts, such as that by evilc, can be found given or listed at
http://www.autohotkey.com/forum/topic62373.html.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2011, 10:27 pm 
Offline

Joined: November 12th, 2011, 11:20 am
Posts: 15
Location: Hey, I'm Here
Hey, Guys
I too agree that the code needs a bit of cleaning up :)

It is my first time and It does work for me Just change the offset to match your ADS.

Sorry if its too simple I was only trying to contribute :(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2011, 3:26 am 
Offline

Joined: May 20th, 2009, 6:18 pm
Posts: 129
Brynaldo, sorry. I didn't mean to pour cold water on your efforts, just to give some info. As for your script, I also had trouble with it, but this may be due in part to not knowing what you were aiming at. What you need and what I need in a crosshairs script is probably quite different. That's ahk for you -- everyone can and should customize the scripts for their own purposes. :D


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Rajat and 9 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