Sign in to follow this  
Followers 0
jpm

Autoit-gui 102.16

23 posts in this topic

Hi everybody,

Please find the sunday release

  • Added : new control "avi" in GuiSetControl to display animated files.

    Thanks to Holger.

  • Added : new control "updown" in GuiSetControl to inc/decrement an edit control value.
  • Added : Appendix to describe Gui Control Styles.
  • Added : GuiSetControl can be used in GuiMsg() loop.
  • Fixed : GuiSetControlData will empty correctly the list.
  • Changed : GuiWrite on edit control append/erase
download as usal at http://www.hiddensoft.com/fileman/users/jpm/AutoIt3-gui/

Share this post


Link to post
Share on other sites



Great work JP - And Great work Jon and others for an excellent tool!!!!! Unfortunately I gotta go catch a plane and cannot play with the latest release until I gate back Tuesday night.

Share this post


Link to post
Share on other sites

I'm very interested in the new GuiSetControl("avi"...) function, but the provided example is not working for me. I tried to change some things but no luck with that.

Currently running Win2k, SP 4. Any ideas? :D

Share this post


Link to post
Share on other sites

The window is just blank but the two buttons are there.

I can click them but nothing happens.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Yeah, I think there's bug...

I'll check now my code...

Hmmm....nothing found, everything is woking fine here:

try this:

Global $ACS_AUTOPLAY = 4
GUICreate("Animation",300,200)
$ani = GUISetControl("avi","shell32.dll|150",50,10,-1,-1,$ACS_AUTOPLAY)
$ani2 = GUISetControl("avi","c:\windows\system32\shell32.dll|150",50,80)
GUIWaitClose()
Exit

Do you see something?

Is maybe your search-path false?

Holger

Edited by Holger

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

This code produces an empty GUI for me :D

I linked all the files to their paths to make sure but no luck...

-

What is "shell32.dll|150" going to look like when it works? For what dows the |150 stand?

Edited by Raider

Share this post


Link to post
Share on other sites

This code produces an empty GUI for me :D

I linked all the files to their paths to make sure but no luck...

-

What is "shell32.dll|150" going to look like when it works? For what dows the |150 stand?

@raider

which OS are you running with? which version of the file?

msgbox(0,@OSVersion,FileGetVersion(@windowsdir & "\system32\shell32.dll"))

Share this post


Link to post
Share on other sites

@raider: "shell32.dll|150" means the "avi" with the resource-number 150 in the "shell32.dll".

"shell32.dll" is normally in the default windows search path thatswhy you don't need to expand the whole path to that.

So you could use another number like 151, 152 or 160.

One tool for instance to see what resources are in a file is here:

http://www.users.on.net/johnson/resourcehacker/

Holger

P.S.:here are some files and the resources (it's from XP but I think most should work with W2K too):

ieakui.dll,404 -> gear wheels
hdwwiz.cpl,105 -> pc with magnifying glass (XP-style)
inetcfg.dll,2376 -> moving earth
mmfutil,1020 -> 'sandclock'
msdxm.ocx,114 -> signals are send from pc to a server and back
msgina.dll,2413 -> ctrl-Alt-Del (logonhelp)
msieftp.dll,256 -> copy from webfolder to local folder
msieftp.dll,257 -> copy from local folder to webfolder
msieftp.dll,258 -> delete from webfolder
netshell.dll,21200 -> pc with magnifying glass (old style)
newdev.dll,300 -> pc with magnifying glass (XP-style)
objsel.dll,208 -> Active Directory-search
rsnotify.exe,137 -> copy from server to local folder
shell32.dll,150 -> moving flashlight
shell32.dll,151 -> small magnifying glass on a document
shell32.dll,152 -> small magnifying glass on a pc
shell32.dll,160 -> move a few documents from one folder to another(XP-style)
shell32.dll,161 -> copy only one (by one) document from one to another folder
shell32.dll,162 -> move a document to the trash
shell32.dll,163 -> delete the trash
shell32.dll,164 -> delete directly a document(XP-style)
shell32.dll,165 -> change a document
shell32.dll,166 -> magnifying glass on the earth (XP-style)
shell32.dll,167 -> move a few documents from one folder to another(old style)
shell32.dll,168 -> copy only one (by one) document from one to another folder(old style)
shell32.dll,169 -> delete directly a document(old style)
shell32.dll,170 -> copy a document from earth (i-net/web) to a local folder
syssetup.dll,122 -> moving color line (like logon moving line)
------------------
windows\srchasst\srchui.dll,107 -> magnifying glass checks a document
program files\common files\microsoft shared\artgalry\artgalry.exe,289 -> binoculars looks
program files\common files\system\wab32res.dll,1171 -> magnifying glass checks a addressbook
program files\netmeeting\conf.exe,137 -> a hand push keys on a telephone

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

I got the shell32.dll clips and the inetconnect.avi running by reinstalling AU3GUI :D

When I try to play another .avi file I get a windows error message that says that my clip is not a valid windows file and that I should check that with my windows installation disk... I tried several files with different compressions (DivX, Xvid, uncompressed) and nothing works :)

(I can't provide an exact errormessage because I have to translate it but this is as close a sit gets:

AutoIt v3: AutoIt3-gui.exe - Image corrupt

The application or DLL d:\Scripts\r-tool\GUI\dtuc.avi is not a valid Windows-File. Check this with the installation disk.

[OK]"

Thanks for all the help :huh2:

Edited by Raider

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

@raider: these errormessages appear cause your other files are real avi-files I think.

Resource-AVI-files must have no sound! and cannot be compressed like normal avi-files (xvid, divx, etc).

I think the compression-format must be "Microsoft Video 1" (with NO sound) -> a lot of websites say that.

Upd.: I testet it -> doesn't work, maybe you need a really animation tool...

Regards Holger

Edited by Holger

Share this post


Link to post
Share on other sites

Yep, i tested it too and it did not work.

What do you mean by "real animation tool"?

Or, what would be even better... Is it possible to play .gif files? You know, not only those with one frame but animated ones.

Share this post


Link to post
Share on other sites

@raider: no, it's not possible to play gif-files with the avi-function, only 'resource-build-in' -avi-files.

I think in the www there are tools/programs to create such animations or convert them into a by "windows accepting avi-format".

Share this post


Link to post
Share on other sites

I finally found something that can create those AVI files.

You can get it here: http://www.bloodshed.net/avi.zip

It creates an AVI with a bunch of BMP or ICO files :D

Thanks for your great support :huh2:

-Raider

Share this post


Link to post
Share on other sites

No Problem :D

Sorry for bugging again, but is it possible that progressbars are somewhat messed up?

When I try to display one I just get a small window in the low right corner of my screen (actually just a title bar) and the place where I want my bar is just empty...

This little window has the classname "classname=msctls_progress32"

GuiCreate("Prcbartest", 500, 500)
GuiSetControl("progress", "empty", 5, 5, 200, 20)
GuiShow()
sleep(5000)

Anyone able to reproduce?

Share this post


Link to post
Share on other sites

I am getting a Hard Crash:

AppName: autoit3.exe AppVer: 3.0.102.16 ModName: comctl32.dll

ModVer: 6.0.2800.1106 Offset: 0003d91b


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

@raider: yeah, thats a problem in the official 16th version.

Thanks for info to this bug.

Sorry, I didn't see that cause I used already my actually 'new'progress-function-gui :D

@jpm: I found the problem in the 'old' progress-function:

maybe you forgot to integrate the changed 'new' version that I sent you:

HWND CGuiBox::CreatePROGRESS(const char* Text,HWND hWnd,int id,int X,int Y,int W,int H,int Style,int Exstyle)
{
    HWND    A;

    if ( Style==-1 )
  Style=0;
    A = _CreateControl(0,PROGRESS_CLASS,NULL,Style,X,Y,W,H,hWnd,NULL,NULL,NULL,false);
    SendMessage(A,(UINT)PBM_SETBKCOLOR,(WPARAM)0,(LPARAM) CLR_DEFAULT);
    SendMessage(A,(UINT)PBM_SETBARCOLOR,(WPARAM)0,(LPARAM) CLR_DEFAULT);
    SendMessage(A,(UINT)PBM_SETPOS,(WPARAM) 0,(LPARAM)0);
    SendMessage(A,PBM_SETRANGE,0,MAKELONG(0,100));
    SendMessage(A,(UINT)PBM_SETSTEP,1,0);

    if (m_nCurSizeable == 0)
  GUICtrl[m_nMaxCtrl].nSizeable = GUI_SZ_ENABLE;

    return A;

Regards Holger

P.S:I've send you an email its better...

Edited by Holger

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