Jump to content

Recommended Posts

Posted

alright, i got the lib to work fine :D

What I am wonder about though, is the color.

it seems that the color is all off, is this normal?

What you're referring to is image quality. That depends on the type of image and the parameters you are using. BMP has best color, biggest file for example. Use Auto3Lib and take a BMP screen shot and then compare that to a screen shot take with a commercial app like HyperSnap. Looks the same to me. :)

Also, if I want to write a screenshot app with performance in mind, what language would you recommend ?

AutoIt is no speed demon, that's for sure, but it's amazing what you can do with it. Run this for some timing tests:

#include <A3LScreenCap.au3>

DoTest("BMP")
DoTest("GIF")
DoTest("JPG")
DoTest("PNG")
DoTest("TIF")

Func DoTest($sExt)
  Local $iI, $iTime

  $iTime = TimerInit()
  for $iI = 1 to 10
    _ScreenCap_Capture("c:\test" & $iI & "." & $sEXT)
  next
  ConsoleWrite("10 " & $sEXT & ".: " & TimerDiff($iTime) & @CR)
EndFunc
If you want brute speed, use something like C++
Auto3Lib: A library of over 1200 functions for AutoIt
Posted

I had an initial problem with the library scripts because the installer put them into a different place than the regular AutoIT folder. So it didn't mix the old and new scripts together. I keep both folders on my computer anyways, since the examples in the Help File point to those older scripts. The only thing is that I have to full qualify the include, since I am not saving my scripts into those folders.

#include <C:\Program Files\AutoIt3\Include\A3LEventLog.au3>
Posted (edited)

I had an initial problem with the library scripts because the installer put them into a different place than the regular AutoIT folder. So it didn't mix the old and new scripts together. I keep both folders on my computer anyways, since the examples in the Help File point to those older scripts. The only thing is that I have to full qualify the include, since I am not saving my scripts into those folders.

#include <C:\Program Files\AutoIt3\Include\A3LEventLog.au3>
The Auto3Lib installer prompts your for the location of your AutoIt directory during the installation. If you have installed AutoIt using the default paths, this is "C:\Program Files\AutoIt3". If you have installed AutoIt using a non standard installation directory, then you need to point the Auto3Lib installer to where ever your AutoIt3 directory resides.

This is not a problem with Auto3Lib and you'll experience the same results with any include files you use. If you don't install them in the AutoIt Include directory, you have to fully qualify the include file name. This is explained in the AutoIt help file under the #include section.

Edited by PaulIA
Auto3Lib: A library of over 1200 functions for AutoIt
Posted

Hi PailIA.

I just used your library in my large work script/program (for treeview manipulation) and it's really GREAT :)

All is working fine - so no problem to report here.

Only one little cosmetic in description/comment for _Listbox_FindTextExact():

; Description ..: Find the first string in a list box that begins with the exact specified stringoÝ÷ ÚÈhºW[y«­¢+ØìÍÉ¥ÁÑ¥½¸¸¸è¥¹Ñ¡¥ÉÍÐÍÑÉ¥¹¥¸±¥ÍнàѡС̥ÐÌäíÌÑáÐáѱäѡ͵ÌÍÁ¥¥ÍÑÉ¥¹
It's not "it's", but "its" in " that has its text" ... :D
Posted

Hey PaulIA

I cant get thee examples with _Header_Create to work. I get this error

>Running:(3.2.3.13):S:\Auto\AutoIt3\beta\autoit3.exe "S:\Auto\test.au3" 
S:\Auto\AutoIt3\include\A3LWinAPI.au3 (1867) : ==> Variable must be of type "Object".: 
$iPID   = $tPID.ID 
$iPID   = $tPID^ ERROR

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

  • Administrators
Posted

Hey PaulIA

I cant get thee examples with _Header_Create to work. I get this error

>Running:(3.2.3.13):S:\Auto\AutoIt3\beta\autoit3.exe "S:\Auto\test.au3" 
S:\Auto\AutoIt3\include\A3LWinAPI.au3 (1867) : ==> Variable must be of type "Object".: 
$iPID   = $tPID.ID 
$iPID   = $tPID^ ERROR

This is related to a feature removed in the latest beta. You'll have to use the previous beta for now, or wait until the lib is updated work around it.
Posted

Release 4.0.0

This release updates the library for the removal of the structure dot notation that was removed from the latest beta.

Auto3Lib: A library of over 1200 functions for AutoIt
Posted

Release 4.0.0

This release updates the library for the removal of the structure dot notation that was removed from the latest beta.

As soon as I get everyting working almost the way I want, along comes Jon.

(Grumble.....grumble....grumble)

Thanks Paul

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Posted

*shuffles around in an apologetic manner*

:D

It could have been worse. You could have decided to remove DllCall. Then what would I do for "fun"? :D Oh well, maybe someday the dot notation will sneak itself back into the syntax when nobody is looking. :)
Auto3Lib: A library of over 1200 functions for AutoIt
Posted

one has to laugh; congrats for all the efforts against all odds; even the people helping you are a problem.. oh well.....

You just have to keep telling yourself: "You're doing this for fun. You're doing this for fun."

Seriously though, I've got to give Jon a lot of credit. I write commercial software for a living and it's tough to make the right call every time, especially when your gut tells you one thing and your users tell you another. He's right to stick with his instincts, no matter how big a pain in the ass it is to the rest of us. :)

Auto3Lib: A library of over 1200 functions for AutoIt
Posted

I'm going to remove the "For" keyword.

Removing "For" in what context? The only ones I know are For...Next and For...In...Next -- you certainly don't mean that do you?

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Posted

Stop it. You're scarying the children...

Well with this kind of crazy talk, the next thing you know he's going to remove the GoTo keyword as well...

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Posted

with last version of autoit3lib

C:\PROGRA~1\AutoIt3\beta\Include\A3LNetShare.au3(420,80) : ERROR: DllStructCreate() [built-in] called with wrong number of args.
    DllStructGetData($tInfo = DllStructCreate($tagFILE_INFO_3, $tData, "BufPtr")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\PROGRA~1\AutoIt3\beta\Include\A3LNetShare.au3(420,81) : ERROR: DllStructGetData() [built-in] called with wrong number of args.
    DllStructGetData($tInfo = DllStructCreate($tagFILE_INFO_3, $tData, "BufPtr"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\PROGRA~1\AutoIt3\beta\Include\A3LNetShare.au3(654,83) : ERROR: DllStructCreate() [built-in] called with wrong number of args.
    DllStructGetData($tInfo = DllStructCreate($tagSESSION_INFO_2, $tData, "BufPtr")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\PROGRA~1\AutoIt3\beta\Include\A3LNetShare.au3(654,84) : ERROR: DllStructGetData() [built-in] called with wrong number of args.
    DllStructGetData($tInfo = DllStructCreate($tagSESSION_INFO_2, $tData, "BufPtr"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\PROGRA~1\AutoIt3\beta\Include\A3LNetShare.au3(903,81) : ERROR: DllStructCreate() [built-in] called with wrong number of args.
    DllStructGetData($tInfo = DllStructCreate($tagSHARE_INFO_2, $tData, "BufPtr")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\PROGRA~1\AutoIt3\beta\Include\A3LNetShare.au3(903,82) : ERROR: DllStructGetData() [built-in] called with wrong number of args.
    DllStructGetData($tInfo = DllStructCreate($tagSHARE_INFO_2, $tData, "BufPtr"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...