Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (205 - 207 of 3893)

Ticket Resolution Summary Owner Reporter
#100 No Bug ControlSend Error ChrisL
Description

in Autoit 3.2.10 and 3.2.11 controlsend doesn't just send the characters to the control but wipes out any data that was previously there.

This never used to be the case. I expect the string of data in the input box to be added to not wip[ed out on every button press.

This is a cut down version of the script to demonstrate the issue

[code] #include <GuiConstants.au3>

$keyboard = GuiCreate("Lab Setup", 700, 522,(@DesktopWidth-700)/2, (@DesktopHeight-522)/2 ,$WS_CAPTION, $WS_EX_TOPMOST)

GuiCtrlCreateLabel ("Some data is missing from the database please enter this manually", 40, 10, 600, 40) GUICtrlSetFont (-1, 14)

GuiCtrlCreateLabel ("1st line of address:", 40, 47, 99, 40)

$Input_1 = GuiCtrlCreateInput("", 140, 40, 340, 30) GUICtrlSetFont (-1, 14)

GuiCtrlCreateLabel ("Town:", 40, 97, 99, 40) $Input_2 = GuiCtrlCreateInput("", 140, 90, 340, 30) GUICtrlSetFont (-1, 14)

GuiCtrlCreateLabel ("Phone Number:", 40, 147, 99, 40) $Input_3 = GuiCtrlCreateInput("", 140, 140, 340, 30,$ES_NUMBER) GUICtrlSetFont (-1, 14)

$Button_1 = GuiCtrlCreateButton("1", 20, 190, 40, 40) $Button_2 = GuiCtrlCreateButton("2", 70,190, 40, 40) $Button_3 = GuiCtrlCreateButton("3", 120,190, 40, 40) $Button_4 = GuiCtrlCreateButton("4", 170,190, 40, 40) $Button_5 = GuiCtrlCreateButton("5", 220,190, 40, 40) $Button_6 = GuiCtrlCreateButton("6", 270,190, 40, 40) $Button_7 = GuiCtrlCreateButton("7", 320,190, 40, 40) $Button_8 = GuiCtrlCreateButton("8", 370,190, 40, 40) $Button_9 = GuiCtrlCreateButton("9", 420,190, 40, 40) $Button_0 = GuiCtrlCreateButton("0", 470,190, 40, 40)

GuiSetState() Global $Active = ControlGetFocus(""); edit1 is active

While 1

$msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case $msg = $Button_1

pressed ("1")

Case $msg = $Button_2

pressed ("2")

Case $msg = $Button_3

pressed ("3")

Case $msg = $Button_4

pressed ("4")

Case $msg = $Button_5

pressed ("5")

Case $msg = $Button_6

pressed ("6")

Case $msg = $Button_7

pressed ("7")

Case $msg = $Button_8

pressed ("8")

Case $msg = $Button_9

pressed ("9")

Case $msg = $Button_0

pressed ("0")

Case Else ;This is the cunning bit that sets the Focus back to the last input box rather than the last button pressed

If not StringinStr (ControlGetFocus (""), "button") then $active = ControlGetFocus ( "")

EndSelect

WEnd

Func Pressed ($Key)

ControlFocus("","",$active)

ControlSend ("","",$active, $key ,0)

EndFunc code

#546 Rejected FileOpen() Shared/exclusive access Valik ChrisL
Description

I would find it useful to add a new flag or flags to the FileOpen() function for FILE_SHARE_NONE, FILE_SHARE_READ and FILE_SHARE_WRITE.

Sometimes it is necessary to read and write to a file exclusively and if we could use an optional flag at the end of FileOpen() for shared access or exclusive access.

I don't know if you could do it by adding another numerical flag to the existing set, or have a 3rd optional parameter 1 for exclusive and 0 for Shared (deault)

I am aware that there are work arounds for this but it would be much neater for AutoIt to support it natively.

Thanks

#2075 Fixed GUICtrlSetImage changes icon position on resizable window Jon ChrisN
Description

When a window is resized & the icon control is moved from its original position, updating it with GUICtrlUpdateImage moves it to its original position again.

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 185, 139, 192, 148, BitOR($GUI_SS_DEFAULT_GUI,$WS_SIZEBOX,$WS_THICKFRAME))
$Icon1 = GUICtrlCreateIcon(@ScriptDir & "\default.ico", -1, 16, 88, 32, 32)
GUICtrlSetResizing(-1, $GUI_DOCKLEFT+$GUI_DOCKBOTTOM+$GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
GUISetState(@SW_SHOW)
AdlibRegister("updateicon")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
EndSwitch
WEnd
Func updateicon()
GUICtrlSetImage($Icon1, @ScriptDir & "\default.ico")
EndFunc

Forum thread: http://www.autoitscript.com/forum/topic/136001-problem-with-icon-position-when-using-guictrlsetimage/page__view__findpost__p__949740

Note: See TracQuery for help on using queries.