Custom Query (3933 matches)
Results (451 - 453 of 3933)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #2754 | No Bug | Bug in guiSetState( @SW_RESTORE, $gui ) .... | ||
| Description |
I basicly just redefine Minize, Maximize, Restore and Close ... because in my application I will need to do some stuff in there .... but here the problem, script start and display a hello world, if I minimize it, and click on the icon on the task bar( actually restoring it ) the restore works fine, window is at the right place... but if I maximine the window and minimize it , the restore bring back a window NOT maximized ! if you comment out this line guiSetOnEvent( $GUI_EVENT_RESTORE, "wndRestore" ) and let windoze do the restore a maximized window minimized in the task bar will be restore as a maximized window, so do you think ? ... maybe there is a "bug" in the "guiSetState( @SW_RESTORE, $gui )" ... #include <guiconstants.au3> #include <constants.au3> func wndMinimize() guiSetState( @SW_MINIMIZE, $gui ) endfunc func wndMaximize() guiSetState( @SW_MAXIMIZE, $gui ) endfunc func wndRestore() guiSetState( @SW_RESTORE, $gui ) endfunc func wndClose() exit endfunc opt( "GUIOnEventMode", 1) $flag = bitOr( $WS_SYSMENU, $WS_MINIMIZEBOX, $WS_SIZEBOX, $WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS) ;$flag = 0 $gui = guiCreate( "Hello World", 200, 200, 200, 200, $flag ) guiSetOnEvent( $GUI_EVENT_MINIMIZE, "wndMinimize" ) guiSetOnEvent( $GUI_EVENT_MAXIMIZE, "wndMaximize" ) guiSetOnEvent( $GUI_EVENT_RESTORE, "wndRestore" ) guiSetOnEvent( $GUI_EVENT_CLOSE, "wndClose" ) guiSetState( @SW_SHOW ) while 1 sleep( 1000 ) wend |
|||
| #2757 | No Bug | SciTE Config for AutoIt3 ver.1.6.11 starts with an error and then closes | ||
| Description |
Hello, I downloaded the zipped version of SciTE and wanted to run the SciTE Config to adjust the color settings, but it always throws an error on startup saying: Line 2188 (File "<path to the \SciteConfig.exe>"): Error: Variable used without being declared. I haven't set any variables or such, I started the program from scratch. To verify this behavior, I deleted all files and downloaded them again from your webpage, with the same result. Best regards Jörg P.S. You all do an incredible job!!! Great tool. |
|||
| #3563 | Fixed | Function _IEBodyReadText() from IE.au3 needs to check .innerText is a valid property | ||
| Description |
To avoid this (albeit infrequent) problem: Return SetError($_IESTATUS_Success, 0, $oObject.document.body.innerText) Return SetError($_IESTATUS_Success, 0, $oObject.document.body^ ERROR which is related to function _IEBodyReadText() from IE.au3 the missing property checking (similar as done in other IE.au3 functions which need it) is respectfully asked to be included with the correction offered for this function as follows for your consideration please: Func _IEBodyReadText(ByRef $oObject)
If Not IsObj($oObject) Then
__IEConsoleWriteError("Error", "_IEBodyReadText", "$_IESTATUS_InvalidDataType")
Return SetError($_IESTATUS_InvalidDataType, 1, 0)
EndIf
If Not __IEIsObjType($oObject, "browserdom") Then
__IEConsoleWriteError("Error", "_IEBodyReadText", "$_IESTATUS_InvalidObjectType", "Expected document element")
Return SetError($_IESTATUS_InvalidObjectType, 1, 0)
EndIf
;------------------------------------------------------------------------------------------
; Check to verify that the document body object has an innerText property, if not, skip trying to return its contents
;
; Setup internal error handler to Trap COM errors, turn off error notification,
; check object property validity, set a flag and reset error handler and notification
;
Local $bIsInnerText = True
; Trap COM errors and turn off error notification
$bStatus = __IEInternalErrorHandlerRegister()
If Not $bStatus Then __IEConsoleWriteError("Warning", "_IEBodyReadText", _
"Cannot register internal error handler, cannot trap COM errors", _
"Use _IEErrorHandlerRegister() to register a user error handler")
; Turn off error notification for internal processing
$iNotifyStatus = _IEErrorNotify() ; save current error notify status
_IEErrorNotify(False)
; Check conditions to verify that the property exists
If $bIsInnerText Then
$sTmp = $oObject.document.body.innerText ; Is .innerText a valid property?
If @error Then $bIsInnerText = False
EndIf
; restore error notify
_IEErrorNotify($iNotifyStatus) ; restore notification status
__IEInternalErrorHandlerDeRegister()
;------------------------------------------------------------------------------------------
If $bIsInnerText Then
Return SetError($_IESTATUS_Success, 0, $oObject.document.body.innerText)
Else
__IEConsoleWriteError("Error", "_IEBodyReadText", "$_IESTATUS_InvalidObjectType", "Expected innerText element")
Return SetError($_IESTATUS_InvalidObjectType, 1, 0)
EndIf
EndFunc ;==>_IEBodyReadText
|
|||
