Sign in to follow this  
Followers 0
Rad

Color... chooser... menu thing

15 posts in this topic

You know the paint color selector thing, is it possible to simply open that up and use it to get hexcodes or anything? Or is that gradiant image a file that you can make show up in your program?

Share this post


Link to post
Share on other sites



You could always just do a screen shot of it, then edit it exactly like you want... and if you want to call it to do some color sorting, you could use a GUI to call it up.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I just did that, but now you have to have the image in a certain folder and thats no good! ><

How do you get the directory of the .exe (when its compiled)? I could make it take image "\image\ColorGradiant.JPG" but that doesnt work

--

Or even better, possible to add image into the .exe?

Edited by Rad

Share this post


Link to post
Share on other sites

FileInstall()


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Ummmmmmm I have absolutely no idea how to use that though.. once again helpfile leaves much to be questioned :P

Share this post


Link to post
Share on other sites

FileInstall() is really straight forward in the helpfile. If your having problems with that... Then maybe you should take a look at this thread before you try things like this: http://www.autoitscript.com/forum/index.ph...opic=19434&st=0


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Well you say straightforward, I understand what it does (I think) except I dont know how your supposed to "install" a file without knowing the location. I have a .jpg Ill include in a ZIP now how the heck can I make a directory out of that when anyone who downloads can choose where to dl

Share this post


Link to post
Share on other sites

If you know where the file is on 'Your' computer... that's all you need to know, and where 'You Want' to put on someone elses.

$MyComputerFile = 'C:\MyPics\MyPic.jpg'; can't use a variable for the source file, but I wanted to show you it was from your computer.
$InstallTheirComputer = @TempDir & 'AnyNameIWant.jpg'
If Not FileExists($InstallTheirComputer) Then
    FileInstall('C:\MyPics\MyPic.jpg', $InstallTheirComputer)
EndIf

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

AH! That worked! TY!

The helpfile tells you to do it a different way like:

FileInstall ( "source", "dest" [, flag] )

So I did FileInstall("C:\Documents and settings...", "C:\Documents and settings...") it worked, but.. once you compile it puts the image inside too?

Share this post


Link to post
Share on other sites

but.. once you compile it puts the image inside too?

You got it :P


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

so what do u want a color picker?

or what can u please repost exactly what u want

post some stuff want u want ill look at it tommorow just search the scripts and scraps if u want a color chooser there are plenty

i do suggest the help file :P its a good read i recommend it im submitting it to oprah to be put into her book clubs best read :lmao:

Edited by thatsgreat2345

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Im set it works, had the color picker and system setup I just wanted a gradiant in the selectable field.... Here take a look at finished product attached here

If you feel I did not properly credit you just say so HERE with the name you want credited and I will add to the credits "about" list

EH I added SmOke_N and a few others to the list :P

Edited by Rad

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Hmm, I went ahead and downloaded it against my better judgement being an .exe... Looks like you got what you wanted... good job.

My only problem is, you wrote it in AutoIt and not one of the special thanks went to any AutoIt Member... seems a bit condescending.

But good job.

Edit

Guess I replied prematurely... No need to have my name there :P... I just thought it was weird.

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

A suggestion, without using your program, because I've never even seen the game... but the 'About' button, seems your using a 'Splash' with a delay... it was a bit annoying not being able to just exit out of it... have you thought of just making that a Child GUI?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

could of used the UDF _ChooseColor if you have the beta

$i_ReturnType = 0 then COLORREF rgbcolor is returned (default)

$i_ReturnType = 1 then Hex BGR Color is returned

$i_ReturnType = 2 Hex RGB Color is returned


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0