Jump to content

Recommended Posts

Posted

It's when you see things like this you realize how far you have to go to master the AutoIT language. Awesome job!

A few comments:

In my PC, the color picker (choose color for text) totally messed up the gui when closing the color picker. Like the gui was not redrawn. Had to exit the program. Not sure if this is general.

Also a suggestion or two: would be nice to have a ini or SQLite database settings file so that I could store and save settings from the program ? These could also be used with a sister script : command line version like

c:> wmimg.exe  /S mymark1  *.png

to watermark using setting "mymark1"

..and perhaps also a drag-n-drop version now we are at the wishes ? ;)

But hey, wishes are free. Again: thank you for your awesome work so far. I will save this script and learn from it.

I am just a hobby programmer, and nothing great to publish right now.

Posted

@engjcowi, mesale0077, JScript, FlutterShy, Myicq: thanks for your feedback!

@Myicq: what os are you using. which AutoIt version? I never saw this mess up! I will add drag 'n' drop, a sub menu for batch watermarking images and commandline options for batch processing from external programs. About saving settings to a ini file I need to think about it whether it makes sense.

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted (edited)

UEZ, thanks for that.

I think the settings file would be good, since you have so many options.

My version info here:

@AutoITVersion = 3.3.8.1 (I can use others no problem, just happened to test here)

@OsBuild = 2600

@OsType = Win32_NT

@OSVersion = WIN_XP

@OsLang = 0406 da_DK

@OsServicePack = SP3

Screenshot:

Posted Image

Edited by Myicq

I am just a hobby programmer, and nothing great to publish right now.

Posted

I tested it in a VM running WinXP but the GUI still looks good after closing the color picker GUI.

Does it appear also when you don't choose a color and press Cancel? Show me the screenshot please.

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

It does appear also after pressing Cancel. But there are 100s of things that can be different from my machine here to your VM.

Btw: the gui also messes up if I drag your program around the screen, especially if I dragit outside visible screen area and back.

Not sure why, perhaps GDI area / functions ? My simple Autoit scripts don't do this.

Let me know how I can / should test for you.

I am just a hobby programmer, and nothing great to publish right now.

Posted

Can you replace this code with the original one and test again?

Case $idButtonColor_WM
                $iColorFont_WM = _ChooseColor(2, $iColorFont_WM, 2, HWnd($hGUI_WM))
                If Not @error Then
                    GUICtrlSetBkColor($idButtonColor_WM, $iColorFont_WM)
                    _WinAPI_RedrawWindow(HWnd($hGUI_WM), 0, 0, BitOR($RDW_INVALIDATE, $RDW_UPDATENOW))
                    UpdatePreview_WM()
                    $iSaveColor_WM = $iColorFont_WM
                Else
                    $iColorFont_WM = $iSaveColor_WM
                EndIf

It is in the main While loop.

Thanks,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted (edited)

Same thing, no difference after replacing that code block.

But I think it's not releated to this button as dragging the GUI around also causes artifacts.

Is there other GDI+ test suites, or somewhere I can identify versions of GDI+ ?

Just to possibly target at my installation here, or potential version info clashes.

EDIT: dragging issue seems to happen only when an image is loaded.

Initially when no image is loaded I can drag as I want. Main window does not go "bad"

Edited by Myicq

I am just a hobby programmer, and nothing great to publish right now.

Posted

Hello UEZ, nice and useful script! *****

But on my WinXP I have the same error with messing up the window if a picure is loaded.

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Posted (edited)

Thanks to funkey who found the problem -> WM_ERASEBKGND_WM is causing the issue on non aero desktops, also on Win7!

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

Drag-and-drop would be wonderful, but not wanting to abuse, it would be great if had something related to image resizing, Madonna mia, splendid!

For me to put multiple images on the web, it came came from heaven, it is easy to manipulate and very intuitive!!! :thumbsup:

Posted Image again * 2...

JS

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Posted (edited)

Drag-and-drop would be wonderful, but not wanting to abuse, it would be great if had something related to image resizing, Madonna mia, splendid!

For me to put multiple images on the web, it came came from heaven, it is easy to manipulate and very intuitive!!! :thumbsup:

Posted Image again * 2...

JS

Drag 'n' drop is already implemented since version 0.55 and now in 0.60 you can resize the image -> press More button and select Resize.

What will come next?: command line parameters to call it from a batch job which will be a pain in the ass to implement all the possible features and settings...

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

What will come next?: command line parameters to call it from a batch job which will be a pain in the ass to implement all the possible features and settings...

Depends how you implement it, doesn't it ? I would myself do this:

* in main GUI, make a button "save parameter set", ask for a name and save all parameters in an SQLite DB "settings.db"

* from batch, call something like toolname.exe -s mysetup

* you only need one parameter to check for. If left out, take a default.

* possibly allow override of text to watermark ?

* possibly allow parameter -f [db|ini] to use either SQLite or ini format.

In any case, this looks very promising!

I am just a hobby programmer, and nothing great to publish right now.

Posted (edited)

That would make sense when all images have the same dimension! What if you have different image sizes? Just think about it (font size, image stamp size, radius, etc)! Otherwise you will use all default settings except color, position, type (circular / standard) and fx type of the text. Then it's not so hard I think.

Is the issue with the messed up screen fixed now for you?

Btw, I added "Emboss" as a text effect. I will release it when the rotation of the text is working as I want (I've rewritten that part).

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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...