Jump to content

Recommended Posts

Posted

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?

  • Moderators
Posted

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.

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.

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
  • Moderators
Posted

FileInstall()

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.

Posted

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

  • Moderators
Posted

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

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.

Posted

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

  • Moderators
Posted

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

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.

Posted

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?

  • Moderators
Posted

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

You got it :P

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.

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
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
  • Moderators
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

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.

  • Moderators
Posted

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?

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.

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
×
×
  • Create New...