Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (43 - 45 of 3827)

Ticket Resolution Summary Owner Reporter
#43 Fixed IniReadSectionNames returning incorrect number of sections (extra blank section) lte5000
Description

IniReadSectionNames returns an extra blank section that does not exist in the INI file. This behavior occurs on Windows 98 SE. The function returns the correct number of sections on Windows XP SP2.

Example:

FileDelete("test.ini")
IniWrite("test.ini", "section1", "key1", "abc")
$var = IniReadSectionNames("test.ini")
MsgBox(0, "how many sections", $var[0])
For $i = 1 To $var[0]
 MsgBox(0, "section #" & $i, $var[$i])
Next
#44 Rejected Input, in InputBox use Send command heryisme@…
Description

Send("{CTRLDOWN}") Send("{C}") Send("{CTRLUP}") Sleep(50)

$1=InputBox("On Hand", "Avaliabel On Hand")

Send("{CTRLDOWN}") Send("{V}") Send("{CTRLUP}")

;I want to save a Value from variable $1 in script, so I can use it later ;Returns the string that was entered ;Thanks for the Answer

#45 Wont Fix Resizing GUI after _GUICtrlStatusBar_EmbedControl (Marquee Progress bar) Gary big_daddy
Description

The progress bar disappears when you try to resize the gui in the following example. I've tried in a larger example to resize the status bar and re-embed the control after the WM_SIZE message with the same results.

If you enable the commented code and resize the gui it will hard crash AutoIt.

#include <GuiConstantsEx.au3>
#include <GuiStatusBar.au3>

_Main()

Func _Main()

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

	; Create GUI
	$hGUI = GUICreate("StatusBar Embed Control", 400, 300)
	GUISetStyle(BitOR($WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_SIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU))

	$hStatus = _GUICtrlStatusBar_Create($hGUI)
	_GUICtrlStatusBar_SetMinHeight($hStatus, 20)
	_GUICtrlStatusBar_SetParts($hStatus, $aParts)
	_GUICtrlStatusBar_SetText($hStatus, "Part 1")
	_GUICtrlStatusBar_SetText($hStatus, "Part 2", 1)

	; Embed a progress bar
	$progress = GUICtrlCreateProgress(0, 0, -1, -1, $PBS_SMOOTH)
	$hProgress = GUICtrlGetHandle($progress)
	_GUICtrlStatusBar_EmbedControl($hStatus, 2, $hProgress)

	; *** Warning *** Resizing the window with the following enabled will hard crash AutoIt.
;~     $progress = GUICtrlCreateProgress(0, 0, -1, -1, $PBS_MARQUEE)
;~     $hProgress = GUICtrlGetHandle($progress)
;~     _GUICtrlStatusBar_EmbedControl ($hStatus, 3, $hProgress)
;~     _SendMessage($hProgress, $PBM_SETMARQUEE, True, 200)

	GUISetState()
EndFunc   ;==>_Main

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
Note: See TracQuery for help on using queries.