Sign in to follow this  
Followers 0
skippynz

jpg image - width and height info

14 posts in this topic

does anyone know if autoit can pull out the width and height from an image file ?

Share this post


Link to post
Share on other sites



window spy can.


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

do you mean the autoit v3 active window info control from the autoit install or a difference package ?

Share this post


Link to post
Share on other sites

can someone help me with this beta coding ??? ive never used it and not sure why there are underscores at the end of these lines etc, when i run that code using the beta i get errors starting on line 17 then some more further down the script

cheers

Local $ret = DllCall("kernel32.dll","int","CreateFile",_
                        "str",$sFile,_
                        "int",0x80000000,_
                        "int",0,_
                        "ptr",0,_
                        "int",3,_
                        "int",0x80,_
                        "ptr",0)

Share this post


Link to post
Share on other sites

The underscore can be used when a code of line becomes to long, and you want to split to

to multiple lines to make it more readable. And a change a time back made it required to

have a space before the underscore, and this code is from the before that change. Try this :

Local $ret = DllCall("kernel32.dll","int","CreateFile", _
                        "str",$sFile, _
                        "int",0x80000000, _
                        "int",0, _
                        "ptr",0, _
                        "int",3, _
                        "int",0x80, _
                        "ptr",0)

Share this post


Link to post
Share on other sites

ok thanks for that, now im getting an error on this line...

DllStructDelete($p)

i downloaded and am using the beta v3.1.1.104 - is this the latest ?

Share this post


Link to post
Share on other sites

Replace the line DllStructDelete($p) with $p = 0

Is there a list Cyber/Anyone ... like a bad word list that people have made scripts in the past using certain features that were available at the time, that don't work now? I made a UDF and put it in Tidy for this particular one just in case a while back... since I usually have to Tidy most scripts I see on here just to be able to follow them correctly anyway.


[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

It really depends on how long back in time you want to travel.. first thing that came

to my mind was the big change with the GUI-functions, but that was a long time ago...

Is there a list Cyber/Anyone ... like a bad word list that people have made scripts in the past using certain features that were available at the time, that don't work now? I made a UDF and put it in Tidy for this particular one just in case a while back... since I usually have to Tidy most scripts I see on here just to be able to follow them correctly anyway.

Share this post


Link to post
Share on other sites

It really depends on how long back in time you want to travel.. first thing that came

to my mind was the big change with the GUI-functions, but that was a long time ago...

I don't see many scripts anymore that people ask questions about more than 3 or 4 months old (at least they 'typically' don't re-hash the thread). To be honest, dllstructdelete is the only one that came to my mind that is forbode basically.

You and Gary seem to keep the GUI stuff fairly up to date, and I think that people that have created / want to create new ones, tend to go with ya'lls new releases and update their old. It's been along time that I can remember trying to use a GUI function in an old script that didn't work, that hasn't already been improved by someone else.

I could be wrong, and thus my topic/question basically useless, just thought it would be nice for the noobs if they didn't have to keep asking the question.


[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

Hmm...I tried for a while to understand what you were talking about, but since

I didn't manage to do so, I can only guess that you're mixing me with Holger..

Correct ?

You and Gary seem to keep the GUI stuff fairly up to date, and I think that people that have created / want to create new ones, tend to go with ya'lls new releases and update their old.

Share this post


Link to post
Share on other sites

Hmm...I tried for a while to understand what you were talking about, but since

I didn't manage to do so, I can only guess that you're mixing me with Holger..

Correct ?

I did !! ;) Sorry! :lmao:


[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

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