Zedna Posted October 24, 2007 Share Posted October 24, 2007 Submitted the following for the beta:EventLog functionsTime functionsHeader functionsGDI+ functionsScreen Capture functions BIG thanks Gary!! Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
davezub Posted October 28, 2007 Share Posted October 28, 2007 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 More sharing options...
GaryFrost Posted October 28, 2007 Share Posted October 28, 2007 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 More sharing options...
davezub Posted October 28, 2007 Share Posted October 28, 2007 Cool....Thanks Link to comment Share on other sites More sharing options...
davezub Posted October 29, 2007 Share Posted October 29, 2007 (edited) 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 October 29, 2007 by davezub Link to comment Share on other sites More sharing options...
GaryFrost Posted October 29, 2007 Share Posted October 29, 2007 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 More sharing options...
tinjaw Posted October 29, 2007 Share Posted October 29, 2007 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.) Link to comment Share on other sites More sharing options...
GaryFrost Posted October 29, 2007 Share Posted October 29, 2007 (edited) 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):AnimationClipboardMenuNetwork ShareString (not sure I'll do this oneToolBar Windows NetworkingThe 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 November 8, 2007 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 More sharing options...
odklizec Posted November 1, 2007 Share Posted November 1, 2007 (edited) 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 November 1, 2007 by odklizec Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 1, 2007 Moderators Share Posted November 1, 2007 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 More sharing options...
odklizec Posted November 1, 2007 Share Posted November 1, 2007 Thanks for suggestion but yes, I have the #include <A3LMemory.au3> at the top of script.. #include <Misc.au3> #include <A3LConstants.au3> #include <A3LMemory.au3> #include <A3LWinAPI.au3> ... Link to comment Share on other sites More sharing options...
Zedna Posted November 1, 2007 Share Posted November 1, 2007 (edited) Use Auto3Library only with 3.2.8.1 release version (as I do). As far as I know latest beta 3.2.9.4 may collide with its new UDFs where Gary added lots of Auto3Library's functionality. Edited November 1, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
odklizec Posted November 2, 2007 Share Posted November 2, 2007 Oh silly me You are of course right Zedna. Thanks for tip! Link to comment Share on other sites More sharing options...
SandelPerieanu Posted November 2, 2007 Share Posted November 2, 2007 $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 More sharing options...
SandelPerieanu Posted November 4, 2007 Share Posted November 4, 2007 auto3lib with 3.2.9.5 Beta or later don't work for me... thx! Link to comment Share on other sites More sharing options...
Achilles Posted November 4, 2007 Share Posted November 4, 2007 Beta is moving towards containing all of AutoItlib... wait for the next release and most of it will be incorporated so you won't even need AutoItLib anymore. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
GaryFrost Posted November 8, 2007 Share Posted November 8, 2007 (edited) Update of where I'm at on thisList of what hasn't been done (shorter list):AnimationClipboardMenuNetwork ShareString (not sure I'll do this one)ToolBar Windows Networking Edited November 8, 2007 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 More sharing options...
Zedna Posted November 8, 2007 Share Posted November 8, 2007 Update of where I'm at on thisGary you are really GENIUS.Thank you VERY MUCH for that BIG work on Auto3Lib port Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
GaryFrost Posted November 10, 2007 Share Posted November 10, 2007 Gary you are really GENIUS.Thank you VERY MUCH for that BIG work on Auto3Lib port Update of where I'm at on thisList of what hasn't been done (shorter list):AnimationClipboardMenuNetwork ShareString (not sure I'll do this one) ToolBarWindows NetworkingJust 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 More sharing options...
BrettF Posted November 10, 2007 Share Posted November 10, 2007 If you ever want any help with any examples or anything... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts