| View previous topic :: View next topic |
| Author |
Message |
niwi
Joined: 27 Feb 2005 Posts: 128 Location: Heidelberg, Germany
|
Posted: Wed Mar 02, 2005 5:47 pm Post subject: is there a command like PixelSetColor? |
|
|
Hi,
I haven't found this not yet: but is there such a command to change the color of a pixel? This could be usefull for simple drawings without loading images (just like lines or boxes).
Regards, NiWi. |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Wed Mar 02, 2005 7:54 pm Post subject: |
|
|
| No, there isn't a command like that yet. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Wed Mar 02, 2005 8:04 pm Post subject: |
|
|
| AutoHotkey Planned Features wrote: | | PixelWaitColor: Waits for a pixel to change color (BeastMaster). | Chris maybe you would want to think about PixelChangeColour too, being it possible and not hard to impliment ofcourse. _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Thu Mar 03, 2005 2:25 am Post subject: |
|
|
| Well, the API has a SetPixel() function in it, but any changes made by it aren't likely to be permanent (probably lost the moment a window or game redraws itself). Does anyone else have a need for this? I'm wondering what use it might have. |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Thu Mar 03, 2005 2:30 am Post subject: |
|
|
| Pixel-by-pixel drawing in a gui, perhaps? Surely there must be some way to permanently alter a pixel in a window owned by the script. As for the uses, you could use a loop to draw your own shapes and lines. Not as nice-looking as a group-box, but way more versatile. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Thu Mar 03, 2005 2:38 am Post subject: |
|
|
| Interesting, and GUI drawing is already on the to-do list (though I'm pretty sure SetPixel() would not be appropriate for it). |
|
| Back to top |
|
 |
niwi
Joined: 27 Feb 2005 Posts: 128 Location: Heidelberg, Germany
|
Posted: Thu Mar 03, 2005 5:24 pm Post subject: |
|
|
Hi Chris,
yes, I like to have such a function just for drawing simple shapes. But it is not realy important.
Regards, NiWi. |
|
| Back to top |
|
 |
[¤GoO¤]
Joined: 22 Feb 2005 Posts: 60 Location: Sweden
|
Posted: Mon Mar 07, 2005 9:20 am Post subject: PixelSetColor |
|
|
| Chris wrote: | | Does anyone else have a need for this? I'm wondering what use it might have. |
Well, to be honest with you, the only thing AHK lacks is the power of creating graphics.
I used to work with BASIC before I started with AHK, and I miss the ability to create simple shapes and colors in AHK.
Then it would be possible to create simple games, graphics applications or mathematical graphs etc.
Keep up the good work! _________________ "Make everything as simple as possible, but not simpler."
- Albert Einstein (1879-1955) |
|
| Back to top |
|
 |
|