| View previous topic :: View next topic |
| Author |
Message |
stewie7griffin
Joined: 14 May 2008 Posts: 6 Location: my house
|
Posted: Wed May 14, 2008 11:01 pm Post subject: Is this possible with AHK?? |
|
|
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 |
|
 |
stewie7griffin
Joined: 14 May 2008 Posts: 6 Location: my house
|
Posted: Wed May 14, 2008 11:02 pm Post subject: |
|
|
| srry the example didnt come out to well >.< |
|
| Back to top |
|
 |
stewie7griffin
Joined: 14 May 2008 Posts: 6 Location: my house
|
Posted: Wed May 14, 2008 11:05 pm Post subject: |
|
|
_____________
/ /\ \
/ / \ Line \
/ / \ \
/ / . Point 1 \
/____________________\
. Point |
|
| Back to top |
|
 |
Troll Guest
|
Posted: Wed May 14, 2008 11:42 pm Post subject: |
|
|
HEARD OF THE PHUCKING EDIT BUTTON?
phucking use it  |
|
| Back to top |
|
 |
Troll Guest
|
Posted: Wed May 14, 2008 11:43 pm Post subject: |
|
|
Also, RTFM. (Read.The.Phucking.Manual.)
MouseClick, MouseClickDrag, MouseMove
are what you need. |
|
| Back to top |
|
 |
NotLoggedIn_Conquer Guest
|
|
| Back to top |
|
 |
stewie7griffin
Joined: 14 May 2008 Posts: 6 Location: my house
|
Posted: Wed May 14, 2008 11:48 pm Post subject: |
|
|
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 |
|
 |
interiot
Joined: 06 Nov 2005 Posts: 64
|
Posted: Thu May 15, 2008 12:00 am Post subject: |
|
|
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 |
|
 |
Troll Guest
|
Posted: Thu May 15, 2008 12:19 am Post subject: |
|
|
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
|
Posted: Thu May 15, 2008 12:56 am Post subject: |
|
|
| 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 |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 948
|
Posted: Thu May 15, 2008 3:49 am Post subject: |
|
|
| 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 |
|
 |
|