Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (154 - 156 of 3866)

Ticket Resolution Summary Owner Reporter
#627 No Bug Using a re-sizable GUI and _GUICtrlStatusBar_EmbedControl cause AutoIt to hard-crash. anonymous
Description

Creating a GUI interface that is re-sizable (BitOR($WS_MAXIMIZEBOX, $WS_SIZEBOX, $WS_TILEDWINDOW)) and then using _GUICtrlStatusBar_EmbedControl() this will make AutoIt hard crash

Tested for AutoIt v. 3.2.12.1 and 3.2.13.9

Example

#include <WindowsConstants.au3>
#include <GuiConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <ProgressConstants.au3>
#include <SendMessage.au3>

Opt('MustDeclareVars', 1)

$Debug_SB = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work



Local $hGUI, $hProgress, $hInput, $input, $progress, $hStatus
Local $aParts[4] = [80, 160, 300, -1]

; Create GUI
$hGUI = GUICreate("StatusBar Embed Control", 400, 300, -1, -1, BitOR($WS_MAXIMIZEBOX, $WS_SIZEBOX, $WS_TILEDWINDOW))

;===============================================================================
; defaults to 1 part, no text
$hStatus = _GUICtrlStatusBar_Create ($hGUI)
_GUICtrlStatusBar_SetMinHeight ($hStatus, 20)

;===============================================================================
GUISetState()

; Initialize parts
_GUICtrlStatusBar_SetParts ($hStatus, $aParts)
_GUICtrlStatusBar_SetText ($hStatus, "Part 1")
_GUICtrlStatusBar_SetText ($hStatus, "Part 2", 1)

; Embed a progress bar
If @OSTYPE = "WIN32_WINDOWS" Then
	$progress = GUICtrlCreateProgress(0, 0, -1, -1, $PBS_SMOOTH)
	$hProgress = GUICtrlGetHandle($progress)
	_GUICtrlStatusBar_EmbedControl ($hStatus, 2, $hProgress)
Else
	$progress = GUICtrlCreateProgress(0, 0, -1, -1, $PBS_MARQUEE) ; marquee works on Win XP and above
	$hProgress = GUICtrlGetHandle($progress)
	_GUICtrlStatusBar_EmbedControl ($hStatus, 2, $hProgress)
	;_SendMessage($hProgress, $PBM_SETMARQUEE, True, 200) ; marquee works on Win XP and above
EndIf

$input = GUICtrlCreateInput("This is Embeded", 0, 0)
$hInput = GUICtrlGetHandle($input)
_GUICtrlStatusBar_EmbedControl ($hStatus, 3, $hInput, 3)

GUIRegisterMsg($WM_SIZE, "WM_SIZE")

; Loop until user exits
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()


; Resize the status bar when GUI size changes
Func WM_SIZE($hWnd, $iMsg, $iwParam, $ilParam)
    _GUICtrlStatusBar_Resize ($hStatus)
    Return $GUI_RUNDEFMSG
EndFunc   ;==>WM_SIZE
#629 No Bug iniwrite / iniread doesn't work on file called "clock.ini" alucke@…
Description

The code

$ini = @ScriptDir&"\clock.ini"
MsgBox(1,"",IniRead ( $ini, "Settings", "test", "nix" ))
IniWrite ( $ini, "Settings", "test", "13" )

on first execution the message is "nix" on second execution it's "13", but the file "clock.ini" is NOT created, nowhere on the entire disk I can find the file. But still the value is stored somewhere.

Naming the file to "click.ini" works as expected.

There is something special about the filename "clock.ini".

I searched the registry and found that instead of storing the data in the file it got stored in the registry:

[HKEY_USERS\S-1-5-21-1229272821-527237240-839522115-1003\Software\Microsoft\Clock]
"iFormat"="1"

[HKEY_USERS\S-1-5-21-1229272821-527237240-839522115-1003\Software\Microsoft\Clock\settings]
"test"="13"
#630 No Bug DriveMapAdd doesn't work on Vista With Use of #RequireAdmin. Tlem
Description

Sorry for the ticket 614 (http://www.autoitscript.com/trac/autoit/ticket/614) I doesn't give all the precisions of my testings (I apologize).

This is the script :

;#RequireAdmin
If DriveMapAdd("Y:", "\\myserver\stuff") Then
	MsgBox(0, "Info", "Drive mounted.")
	If DriveMapDel("Y:") Then MsgBox(0, "Info", "The drive is Unmounted")
Else
	MsgBox(16, "Info", "The drive was not mounted")
EndIf

If you launch the script with admin right or if you add #RequireAdmin on the top of the script, it said that all is okay but in explorer no drive is mapped ???

Is it something normal, or I make a mistake?

Note: See TracQuery for help on using queries.