Jump to content

Auto3Lib


PaulIA
 Share

Recommended Posts

Paul,

Excellent set of functions. I working on a script that uses the event log functions, and everything is going well. I'm to the part where I'm building in some error checking. _EventLog_Open indicates that it returns 0 for a failure. The following code does not seem to return 0.

$hEventLog = _EventLog_Open("", "nothing")
 msgBox(4096,"Error", $hEventLog)

Am I misinterpreting the help file? My thoughts are (sometimes way off base ;-), if there is not a log file called nothing then it should fail.

Link to comment
Share on other sites

Paul,

Excellent set of functions. I working on a script that uses the event log functions, and everything is going well. I'm to the part where I'm building in some error checking. _EventLog_Open indicates that it returns 0 for a failure. The following code does not seem to return 0.

$hEventLog = _EventLog_Open("", "nothing")
 msgBox(4096,"Error", $hEventLog)

Am I misinterpreting the help file? My thoughts are (sometimes way off base ;-), if there is not a log file called nothing then it should fail.

$sSourceName

From MSDN

The name of the log.

If a custom log cannot be found, the event logging service opens the Application log; however, there will be no associated message or category string file

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

One thing I noticed is that array element 12 (username) _EventLog_Read - truncates the user name in a domain environment. So if the username is domain\username it displays just the domain name.

Edited by davezub
Link to comment
Share on other sites

One thing I noticed is that array element 12 (username) _EventLog_Read - truncates the user name in a domain environment. So if the username is domain\username it displays just the domain name.

In the _EventLog_DecodeUserName change the return from

Return $aAcctInfo[1]oÝ÷ ÚÚºÚ"µÍ]    ÌÍØPXØÝ[ÖÌ

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Gary,

What percentage of Auto3Lib have you ported to the beta? What does this entail? (I might be willing to help a little if I have the necessary skills.)

List of what hasn't been done (shorter list):

  • Animation
  • Clipboard
  • Menu
  • Network Share
  • String (not sure I'll do this one
  • ToolBar

  • Windows Networking
The include file format has to be certain ways now, also the function Headers.

Using a Template Builder that builds the templates for the help from the include file(s).

Edited by GaryFrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Hello folks. Can anyone tell me wht I'm getting this errors and warnings?

C:\_\AutoIt3\Include\A3LMemory.au3(59,59) : WARNING: $MEM_RELEASE: possibly used before declaration.

$bResult = _Mem_VirtualFree ($pMemory, 0, $MEM_RELEASE)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\AutoIt3\Include\A3LMemory.au3(88,34) : WARNING: $MEM_RESERVE: possibly used before declaration.

$iAlloc = BitOR($MEM_RESERVE,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\AutoIt3\Include\A3LMemory.au3(88,47) : WARNING: $MEM_COMMIT: possibly used before declaration.

$iAlloc = BitOR($MEM_RESERVE, $MEM_COMMIT,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\AutoIt3\Include\A3LMemory.au3(88,60) : WARNING: $MEM_SHARED: possibly used before declaration.

$iAlloc = BitOR($MEM_RESERVE, $MEM_COMMIT, $MEM_SHARED)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\AutoIt3\Include\A3LMemory.au3(89,70) : WARNING: $PAGE_READWRITE: possibly used before declaration.

$pMemory = _Mem_VirtualAlloc (0, $iSize, $iAlloc, $PAGE_READWRITE)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\AutoIt3\Include\A3LMemory.au3(59,59) : ERROR: $MEM_RELEASE: undeclared global variable.

$bResult = _Mem_VirtualFree ($pMemory, 0, $MEM_RELEASE)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\_\AutoIt3\Examples\New1.au3 - 1 error(s), 5 warning(s)

I need to use some memory functions for this problem..

http://www.autoitscript.com/forum/index.ph...c=56213&hl=

But I simply cannot go over these errors <_< Installed latest AutoIt beta.

Thank you in advance for any advice!

Edited by odklizec
Link to comment
Share on other sites

  • Moderators

Do you have the A3LMemory.au3 include at the top of your script?

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.

Link to comment
Share on other sites

$src = @ScriptDir & '\Image.jpg'
$dst = @ScriptDir & '\Image.bmp'
#Include <A3LGDIPlus.au3>
_GDIP_Startup ()
$himage = _GDIP_ImageLoadFromFile ($src)
$sclsid = _GDIP_EncodersGetCLSID ("BMP")
$result = _GDIP_ImageSaveToFileEx ($himage, $dst, $sclsid)
_GDIP_ShutDown ()oÝ÷ Û­}½á·­j+wöÊ$nëwÛÞ[zÖ¢}ý·
+«­¢+ØÐìÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕѽ%ÐÌÀäÈíM¥QÀäÈ츸ÀäÈíÕѽ¥Ð̹áÅÕ½Ðì½ÉɽÉMÑ=ÕÐÅÕ½ÐíèÀäÈíUÍÉÌÀäÈíå

thanks!

Link to comment
Share on other sites

Update of where I'm at on this

List of what hasn't been done (shorter list):

  • Animation
  • Clipboard
  • Menu
  • Network Share
  • String (not sure I'll do this one)
  • ToolBar

  • Windows Networking
Edited by GaryFrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Gary you are really GENIUS.

Thank you VERY MUCH for that BIG work on Auto3Lib port <_<

Update of where I'm at on this

List of what hasn't been done (shorter list):

  • Animation
  • Clipboard
  • Menu
  • Network Share
  • String (not sure I'll do this one)

  • ToolBar
  • Windows Networking
Just need to do the examples for the Toolbar and then I can submit.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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