Jump to content

Recommended Posts

Is there a way to make the image bigger? Would I have to make every frame bigger as it is being displayed or could I make them all bigger and display the enlarged frames?

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to post
Share on other sites
  • Replies 181
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

No it doesn't speak, I lied. That is impossible. It's about setting animated GIF (and every other type of images) to a GUI control. How is this done for animated GIF? Few simple steps: - created Ima

Hi @Mbee have you tried my example in post #151? in short you can: 1) transform your gif image to binary string using the following nice tool by mr. @wakillon. https://www.autoitscript.c

Pass binary to the function _GUICtrlCreateGIF($bBinary, "", ...  

Posted Images

Is there a way to make the image bigger? Would I have to make every frame bigger as it is being displayed or could I make them all bigger and display the enlarged frames?

It's possible, but in my opinion it just adds more and unnecessary confusion.

That's the reason why I didn't implement it in the first place, nor do I intend to.

♡♡♡

.

eMyvnE

Link to post
Share on other sites

It's possible, but in my opinion it just adds more and unnecessary confusion.

That's the reason why I didn't implement it in the first place, nor do I intend to.

OK

Is there some way it could be done with the GDIPlus functions instead? I am trying to make it support multiple image types but i can't wrap my head around DLL calls.

I am using a script given to me earlier on in this thread. my goal is to make something similar (identical is better) to the windows xp image viewer. Normally I would be able to do this, but you used DLL calls instead of the GDIPlus functions, so I don't know how it works.

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to post
Share on other sites

OK

Is there some way it could be done with the GDIPlus functions instead? I am trying to make it support multiple image types but i can't wrap my head around DLL calls.

I am using a script given to me earlier on in this thread. my goal is to make something similar (identical is better) to the windows xp image viewer. Normally I would be able to do this, but you used DLL calls instead of the GDIPlus functions, so I don't know how it works.

In the meantime Authenticity wrote wrappers for all gdip functions. You can find all functions here if you think it would be easier for you to comprehend.

♡♡♡

.

eMyvnE

Link to post
Share on other sites

In the meantime Authenticity wrote wrappers for all gdip functions. You can find all functions here if you think it would be easier for you to comprehend.

WAOH

That helped me with a compleatly different question.....thanks?

*edit*.....and raised a lot more.....

Edited by corgano

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to post
Share on other sites
  • 4 months later...
  • 2 months later...

I thought maybe to add code for x64 AutoIt, so I did.

Also _GUICtrlCreateGIF() function take all kind of input from now. It can be GIF file, GIF binary, PE resource, even string. All this is valid:

; GIF File path
_GUICtrlCreateGIF("Some.gif", "", 10, 10, $pGIF)

; Binary data
_GUICtrlCreateGIF($bGIF, "", 10, 10, $pGIF)

; PE Resource (file GIF.dll, Type: GIF, Name: 4)
_GUICtrlCreateGIF("GIF.dll", "GIF;4", 10, 10, $pGIF)

; PE Resource (file OtherGIF.dll, Type: RES, Name: BLAH, Language: 1033)
_GUICtrlCreateGIF("OtherGIF.dll", "RES;BLAH;1033", 10, 10, $pGIF)

; GIF string
_GUICtrlCreateGIF(FileRead("Some.gif"), "", 10, 10, $pGIF)

I wrote it just now - there could be bugs. ...nahh, I'm lying.

How advanced is this?

Edited by trancexx

♡♡♡

.

eMyvnE

Link to post
Share on other sites

I've just realized that by adding few (almost literally) lines of code I could make it working for all kind of images, not just GIFs.

AdmiralAlkex, would you be kind to write me a function for the example script to list to array all files found in folder based on extension (but to be able to specify more than one extension). You have something like that in ShiftER, right?

♡♡♡

.

eMyvnE

Link to post
Share on other sites

Yes I have such a func, but it's not really optimal (I think) and dependent on globals. As I was already rummaging around in Shifter looking for something to improve, I will take a look at this right now.

Edit: The sorting will be weird though (you probably noticed that when you tested ShiftER)

Edit2: A good movie started on TV, I will come back later (assuming I'm still awake :blink: )

Edited by AdmiralAlkex
Link to post
Share on other sites

I am using your GIF Animation Udf and its great! But I am running into one problem. If the window with a _GUICtrlCreateGIF GIF animation gets turned into a child window via _WinAPI_SetParent(), the GIF will not animate. Is there a possible solution for this problem?

Link to post
Share on other sites

I am using your GIF Animation Udf and its great! But I am running into one problem. If the window with a _GUICtrlCreateGIF GIF animation gets turned into a child window via _WinAPI_SetParent(), the GIF will not animate. Is there a possible solution for this problem?

Could you post a snippet?

♡♡♡

.

eMyvnE

Link to post
Share on other sites

You have a problem with folders in _FolderListFilesToArray(). It will include folders called "IAmAFolder.jpg" and such. Add:

If @extended = 1 Then ContinueLoop

After the If @error

:blink:

Link to post
Share on other sites

You have a problem with folders in _FolderListFilesToArray(). It will include folders called "IAmAFolder.jpg" and such. Add:

If @extended = 1 Then ContinueLoop

After the If @error

:blink:

Yes Sir Admiral Sir.

Will update at 19:00 hours.

Btw, I have found a way to remove almost all additional win message processing. WM_PAINT should be enough for even the most demanding GUIs.

♡♡♡

.

eMyvnE

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...