AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is this possible with AHK??

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
stewie7griffin



Joined: 14 May 2008
Posts: 6
Location: my house

PostPosted: Wed May 14, 2008 11:01 pm    Post subject: Is this possible with AHK?? Reply with quote

i was wondering if i could click in one area then click in another and hav it draw a straight line on the screen from those two points except extend the line 22 inches outwards?

and if it IS possible then is it possible to hav that line reflect off the wall of a trapezoidal shape defined in the code?


______________
/ /\ \
/ / \ Line \
/ / \ \
/ / . Point 1 \
/____________________\

. Point 2

plz and thank you (^^Example above ^^)
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
stewie7griffin



Joined: 14 May 2008
Posts: 6
Location: my house

PostPosted: Wed May 14, 2008 11:02 pm    Post subject: Reply with quote

srry the example didnt come out to well >.<
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
stewie7griffin



Joined: 14 May 2008
Posts: 6
Location: my house

PostPosted: Wed May 14, 2008 11:05 pm    Post subject: Reply with quote

                      _____________
                     /      /\              \
                    /      /  \ Line        \
                   /      /    \                \
                  /      /       . Point 1      \
                 /____________________\

                                     . Point  
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Troll
Guest





PostPosted: Wed May 14, 2008 11:42 pm    Post subject: Reply with quote

HEARD OF THE PHUCKING EDIT BUTTON?








phucking use it Evil or Very Mad
Back to top
Troll
Guest





PostPosted: Wed May 14, 2008 11:43 pm    Post subject: Reply with quote

Also, RTFM. (Read.The.Phucking.Manual.)


MouseClick, MouseClickDrag, MouseMove

are what you need.
Back to top
NotLoggedIn_Conquer
Guest





PostPosted: Wed May 14, 2008 11:45 pm    Post subject: Reply with quote

Check out this page for drawing on-screen:
http://www.autohotkey.com/forum/topic7378.html
Back to top
stewie7griffin



Joined: 14 May 2008
Posts: 6
Location: my house

PostPosted: Wed May 14, 2008 11:48 pm    Post subject: Reply with quote

ok i dont want to DRAW ON THE **** SCREEN i want a line that EXTENDS FROM MY MOUSE when ever i move it to BOUNCE/REFLECT off of an invisible line

like a pool game for instance an online pool game i want to a fvckin line to help GUIDE MY SHOTS
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
interiot



Joined: 06 Nov 2005
Posts: 64

PostPosted: Thu May 15, 2008 12:00 am    Post subject: Reply with quote

You're looking for the ExtendoReflectoRay() Win32 API call, perhaps?

</sarcasm> You'll want some combination of loop, MouseGetPos, and the functions mentioned above. The precise incantations are left as an exercise for the reader.
Back to top
View user's profile Send private message
Troll
Guest





PostPosted: Thu May 15, 2008 12:19 am    Post subject: Reply with quote

You clearly have some sort of anger problem, and also some sort of hope that someone will be persuaded (somehow) to practically write this script for you.

So, bury this topic and forget you ever attempted a scripting language.

After your scene of immaturity on the IRC channel, don't expect much help on this forum. Don't be surprised if you get a ban.
Back to top
interiot



Joined: 06 Nov 2005
Posts: 64

PostPosted: Thu May 15, 2008 12:56 am    Post subject: Reply with quote

Absolutely agreed regarding the IRC discussion. It's fine if you're not familiar with coding, or if you find it very difficult to understand the AHK manual. But the only way you'll convince others to volunteer to help is is if you're VERY VERY patient with them (ie. the exact opposite of your approach so far).
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 948

PostPosted: Thu May 15, 2008 3:49 am    Post subject: Reply with quote

Troll wrote:
After your scene of immaturity on the IRC channel...

hmmm... I take that to mean there was a reason for the seemingly-gratuitous enragement of a random n00b.

Anyways, drawing on the screen is exactly what the OP is asking for, even though they don't understand what 'drawing' can mean on a computer. It is certainly possible for AHK to store the mouse XY when the LButton goes down, then (repeatedly) calculate the offset of the current XY and draw a line from the current XY, in the direction of the stored XY, continuing for however many pixels and changing direction at specified borders. The line can easily be cleared from the screen the next time the mouse moves.

As for help with the actual code, there are a number of people here who will do just that, provided that 'help' does not mean 'doing everything'.
_________________
My Home Thread
More Common Answers: 1. It's in the FAQ 2. Ternary ( ? : ) guide 3. Post code with [code][/code] tags
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group