Jump to content

CreeTar

Members
  • Posts

    16
  • Joined

  • Last visited

CreeTar's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hey there, when I open the example au3 from _IECreateEmbedded and try to run it, it results in APPCRASH of autoit3.exe. Same happens also in an example script from myself: Opt("GUIOnEventMode", 1) Local $objIE = _IECreateEmbedded() Local $hwnd = GUICreate("Loading...", 500, 200, 10, 10) GUICtrlCreateObj($objIE, 10, 10, 400, 100) _IEBodyWriteHTML($objIE, "<b>rabbit</b>") GUISetOnEvent($GUI_EVENT_CLOSE, "ExitProgram") GUISetState(@SW_SHOW) While 1 WEnd Func ExitProgram() Exit EndFunc If i uncomment _IEBodyWriteHTML it is loading the application, if not it will crash. Any hints? Using AutoIt3Wrapper v.2.1.2.9 on 3.3.9.5, AutoIt3.exe ended.rc:-1073741819
  2. can somebody upload the file to a hoster? can't wait for alpha-status, seeing that release cycles are quite long i want the Local $array[0] and the Local $var = Null features ( cant you kick out the stuff you declare alpha and release 3.3.9.5 beta using the simple features? the last full release is quite some time ago
  3. Thanks, works as it should i don't mind BETA Is there a change log and you know when it will be official? My boss might not like it ^^
  4. Hey there, my problem is this COM function from OTA (Open Test Architecture) for HP ALM (Application Lifecycle Management): Local $objTestStepNew = $objTestStepFactory.AddItem(Ptr(0)) ; create new test step Now here is the problem, Visual Basic Script supports NULL, but AutoIt does not from some reason. If I do not pass NULL it will create the element immediately, which is a bad bad way to create a new Design Test Step. I already tried "null", "", ptr(0), chr(0)... they do not work. And either the step is created so the given value was interpreted as String like "null" or "0" or it says invalid parameter It works in Visual Basic Script using .AddItem(Null), but I would love to use AutoIt for it! Any Ideas? Thanks for your help. Edit: I also tried to use one of the COM functions that return NULL themselves but this was also interpreted as "0", I think AutoIt is converting NULL to 0 all the time
  5. it seems the problem was that the script itself needs Admin status while the SciTE runs without Admin priviledge and therefore cannot catch the STDOUT or whatever ^^ it works if i start SciTE as Admin... I try if this fixed the main script and thansk for your help
  6. did not work unfortunately, must be something with my SciTE settings, my script always works If i remove #RequireAdmin it works, but how can that be? Script: #RequireAdmin #Region #AutoIt3Wrapper_Change2CUI=y #AutoIt3Wrapper_icon=i.ico #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_Res_Comment=123 #AutoIt3Wrapper_Res_Description=345 #AutoIt3Wrapper_Res_Fileversion=0.30.0.21 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_LegalCopyright=678 #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #AutoIt3Wrapper_Res_Icon_Add=cnp.ico #AutoIt3Wrapper_Res_Icon_Add=r.ico #AutoIt3Wrapper_Res_Icon_Add=c.ico #EndRegion AutoItSetOption("MustDeclareVars", 1) ConsoleWrite("start Main()" & @CRLF) Exit Console >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\xxx\xxx.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams +>19:52:21 Starting AutoIt3Wrapper v.2.0.0.3 Environment(Language:0407 Keyboard:00000407 OS:WIN_VISTA/ CPU:X64 OS:X64) >Running AU3Check (1.54.14.0) from:C:\Program Files (x86)\AutoIt3 +>19:52:21 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\xxx\xxx.au3" +>19:52:21 AutoIT3.exe ended.rc:0 +>19:52:22 AutoIt3Wrapper Finished >Exit code: 0 Time: 1.628
  7. Hello, I put some ConsoleWrite's into my script but I don't get any into the console of the SciTE. The first suspicion is that when I hit F5 the program is running but the console says already Exit code: 0 but the program is not yet exited >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\xxxxx.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams +>17:38:38 Starting AutoIt3Wrapper v.2.0.0.3 Environment(Language:0407 Keyboard:00000407 OS:WIN_VISTA/ CPU:X64 OS:X64) >Running AU3Check (1.54.14.0) from:C:\Program Files (x86)\AutoIt3 +>17:38:38 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\xxxxx.au3" +>17:38:38 AutoIT3.exe ended.rc:0 +>17:38:39 AutoIt3Wrapper Finished >Exit code: 0 Time: 1.837 The ConsoleWrite is before the first function of the script so i should have been in the console for sure. Is it some part of the SciTE Properties? #AutoIt3Wrapper_icon=i.ico #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_Res_Comment=Execute this program #AutoIt3Wrapper_Res_Description=Analyze system #AutoIt3Wrapper_Res_Fileversion=0.30.0.18 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_LegalCopyright=xxxxx #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #AutoIt3Wrapper_Res_Icon_Add=cnp.ico #AutoIt3Wrapper_Res_Icon_Add=r.ico #AutoIt3Wrapper_Res_Icon_Add=c.ico AutoItSetOption("MustDeclareVars", 1) Any tips what might cause this problem? I checked also au3.properties but it seems fine ## Debug Output Options (to permanent change your selection copy them to SciTEUser.Properties and change it there # Debug MessageBox Option 2="All" 1="No @extended" 0="No @extended & @error". debug.msgbox.option=0 # Debug Console Option 3="All" 2="No SystemTime" 1="No SystemTime & Return" 0="No SystemTime, Return & Error". debug.console.option=1 # Debug Trace Option 3="All" 2="No SystemTime" 1="No SystemTime & Return" 0="No SystemTime, Return & Error". debug.trace.option=1 Cheers
  8. cheers for the help, i initialize the variable now with -123 and hope that does it. next time i do an event GUI and not that annoying polling stuff
  9. but on the other hand $a==$b returns false, how come? since AutoIt is not very type-orientated and variables can't be delcared as int or string this should not happen
  10. How come that this code: $a = 0 $b = "empty to prevent" ConsoleWrite($a=$b) will return TRUE, according to the Help "=" is for in-casesensitive string comparison. But obviously it fails here. Or can't i compare a number with a string? The problem is cause by a GetMsg() which is 0, but to prevent a button from working I just gave him a random string, still the comparison hits with TRUE.
  11. Wow, that is quite annoying ^^ i did it right in the one script and now messed it up precious 20min. of my life thanks a lot for spotting it
  12. Hi, short problem, while dragging my edit field does not recognize that something was dragged onto it. Opt("GUIOnEventMode", 1) GUICreate("test", -1, -1, 300, 300, $GUI_SS_DEFAULT_GUI, $WS_EX_ACCEPTFILES) ;so gui accept files GUISetOnEvent($GUI_EVENT_DROPPED, "dropdropdrop") ;no matter where i drag and drop, dropdropdrop is never called GUICtrlCreateInput("", 10, 10, 290, 290, $ES_MULTILINE) ;my edit GUICtrlSetState($GUI_DROPACCEPTED, -1) ;does also accept a drop I had before a version using no EventMode, but I found it cleaner for programming. Any tips? I searched the board but haven't found something, only non-eventmode examples. Regards
  13. Thanks for the example, I always struggle a bit with RegEx
  14. Aww, I wanted to avoid such "hardcoded" solution, then i might try to remove simply all whitespaces including 31 and 160. that way i should be safe without getting down to chars again.
  15. hehe, i used your script and it says: 31 different from 160 pos. 18 '' different from '' on position 18 So does it mean its ASCII 31 vs. ASCII 160? But 31 is underscore and i don't see the underscore, i got a log file and it says: 2010-01-14 20:37:00 >> Checking available updates 2010-01-14 20:37:05 >> 1 updates found: Internet Explorer 8 für Windows XP 2010-01-14 20:37:07 >> Downloading 1 of 1 Internet Explorer 8 für Windows XP 2010-01-14 20:37:10 >> Installing 1 of 1 Internet Explorer 8 für Windows XP IE-Tags 1/2: 0/0 2010-01-14 20:37:24 >> Result for 1 of 1 Internet Explorer 8 für Windows XP: failed (Exception: 80240022) So how can I avoid this, if I don't even "see" the difference? Is there a way to convert the string?
×
×
  • Create New...