shaolindragon Posted October 6, 2020 Share Posted October 6, 2020 Hello people, I have started AUTOIT a few days ago and I love it. My goal is to make 3D graphics, but not built in ones. I have my reasons. I have a virtual color page made in vir[$y] and i want this string with colorbytes copied into a GDI. SETPixel is way too slow for that and I am stuck with find the correct method. Can anyone help me out please? I salute you, fellow coders :) Link to comment Share on other sites More sharing options...
Sidley Posted October 6, 2020 Share Posted October 6, 2020 Not entirely sure what you're looking to achieve here, but if it's just to present a coloured string then check out the _GDIPlus_GraphicsDrawStringEx function. Link to comment Share on other sites More sharing options...
shaolindragon Posted October 6, 2020 Author Share Posted October 6, 2020 1 hour ago, Sidley said: Not entirely sure what you're looking to achieve here, but if it's just to present a coloured string then check out the _GDIPlus_GraphicsDrawStringEx function. No I have a string filled with colorbytes, it's not about characters, so you can expect 4 byte groups which represent alpha,red,blue, green. Just to make things faster than just plotting. Link to comment Share on other sites More sharing options...
caramen Posted October 6, 2020 Share Posted October 6, 2020 (edited) Look my avatar. We could help you much better on your issue if we could see your code. Regards. Edited October 6, 2020 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki Link to comment Share on other sites More sharing options...
shaolindragon Posted October 6, 2020 Author Share Posted October 6, 2020 4 minutes ago, caramen said: Look my avatar. We could help you much better on your issue if we could see your code. Regards. I see. I get that part. Only I am writing a library, so that won't be as easy. But I will try, thank you! Link to comment Share on other sites More sharing options...
shaolindragon Posted October 7, 2020 Author Share Posted October 7, 2020 Sorry but showing a code would inappropriate at this time. I can't even think about where to start. I just have 1 simple question: I have a string filled with colorbytes and i want the whole string to be put on a screen as fast as possible plot can not do that. Link to comment Share on other sites More sharing options...
JockoDundee Posted October 7, 2020 Share Posted October 7, 2020 13 hours ago, shaolindragon said: I have a string filled with colorbytes and i want the whole string to be put on a screen as fast as possible have at it champ https://www.autoitscript.com/autoit3/docs/libfunctions/_GDIPlus_BitmapCreateFromMemory.htm Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
shaolindragon Posted October 9, 2020 Author Share Posted October 9, 2020 On 10/8/2020 at 1:17 AM, JockoDundee said: have at it champ https://www.autoitscript.com/autoit3/docs/libfunctions/_GDIPlus_BitmapCreateFromMemory.htm yeah I was already wrestling with this one, then I realised there is just no normal way of simply put a colorbyte string somewhere. I investigated this, and I wanted to see if i could fake the handle somehow, but it showed me a pointer. So, another dead end. Why are there allways so many dead ends one might think. Anyway, I think I solved it, because this routine could also handle a .BMP file instead of a .GIF file. And I can make BMP'S in a string. That should do it. I'll just keep wrestling, thanks 😊 Link to comment Share on other sites More sharing options...
JockoDundee Posted October 9, 2020 Share Posted October 9, 2020 6 hours ago, shaolindragon said: yeah I was already wrestling with this one, then I realised there is just no normal way of simply put a colorbyte string somewhere. Honestly, you seem confused. What do you mean no “normal way” of putting a colorbyte string somewhere? What’s a normal way? And while were at it, what exactly do you mean by “colorbyte string”? It’s not a term of art typically used in GDI. 6 hours ago, shaolindragon said: I investigated this, and I wanted to see if i could fake the handle somehow, but it showed me a pointer... You don’t need to “fake the handle”, you use the handle to draw your “string”. 6 hours ago, shaolindragon said: So, another dead end. Why are there allways so many dead ends one might think. One might also think “hey maybe I should post some code”. 6 hours ago, shaolindragon said: Anyway, I think I solved it, because this routine could also handle a .BMP file instead of a .GIF file. And I can make BMP'S in a string. That should do it. Oh you solved it, now? Using just dead ends? And the routine doesn’t “also handle a .BMP file”, it handles a string in BMP format, which is about as close a thing to a “colorbyte string” as you are gonna get. That’s why it was recommended in the first place. 6 hours ago, shaolindragon said: I'll just keep wrestling, thanks 😊 Wait, is it solved or not? Like I said, you seem confused. Musashi and TheXman 2 Code hard, but don’t hard code... Link to comment Share on other sites More sharing options...
shaolindragon Posted October 9, 2020 Author Share Posted October 9, 2020 3 hours ago, JockoDundee said: Honestly, you seem confused. What do you mean no “normal way” of putting a colorbyte string somewhere? What’s a normal way? And while were at it, what exactly do you mean by “colorbyte string”? It’s not a term of art typically used in GDI. You don’t need to “fake the handle”, you use the handle to draw your “string”. One might also think “hey maybe I should post some code”. Oh you solved it, now? Using just dead ends? And the routine doesn’t “also handle a .BMP file”, it handles a string in BMP format, which is about as close a thing to a “colorbyte string” as you are gonna get. That’s why it was recommended in the first place. Wait, is it solved or not? Like I said, you seem confused. Link to comment Share on other sites More sharing options...
shaolindragon Posted October 9, 2020 Author Share Posted October 9, 2020 ok, well if I sound confused then just drop it. I have no way of explaining this any further. and thanx for the sarcasm Link to comment Share on other sites More sharing options...
shaolindragon Posted October 9, 2020 Author Share Posted October 9, 2020 it is amazing how fanatic you defend yourself. if i sound confused is it me or is it you? I have never seen a person that does not understand the term colorstring. in asperger language that would be: a collection of characters that represent a series of bytes that form a color, is that clear enough? or do you still not understand that term? I come from the old days of assembly programming. this autoit seriously sucks big time. whatever i want is just completely impossible without an intensive study. and i won't anymore abstract terms for it, because then you get all freak out again, but this language is simply terrible ok? have fun yourself! Link to comment Share on other sites More sharing options...
shaolindragon Posted October 9, 2020 Author Share Posted October 9, 2020 you know all you robots here, you might wanna look into a persons question ok? i have explained myself EXTREMELY WELL TO THE UTTER LIMITS OF MY BRAIN. or did I not??????? what other language should i speak to make myself even more clear? robotlanguage? are you bots? and why you need my code? that's gonna make things easier? wtf? Link to comment Share on other sites More sharing options...
shaolindragon Posted October 9, 2020 Author Share Posted October 9, 2020 and yes, NOW you can call me confused thank you. I hope you're happy now Link to comment Share on other sites More sharing options...
Developers Jos Posted October 9, 2020 Developers Share Posted October 9, 2020 enough. *Click* TheSaint, Musashi and Sidley 1 1 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts