Jump to content

MyEarth

Active Members
  • Posts

    404
  • Joined

  • Last visited

Community Answers

  1. MyEarth's post in Listview remove column selection was marked as the answer   
    Resetting $nCurCol do the things, thanks anyway but this time i have found the answer by myself
  2. MyEarth's post in How to get text from this window was marked as the answer   
    ControlListView
  3. MyEarth's post in GuiCtrlCreateInput automatically hit Enter was marked as the answer   
    #include <EditConstants.au3> #include <GUIConstantsEx.au3> Local $Flag = True ; declare a flag $Form1_1 = GUICreate("test") $Input1 = GUICtrlCreateInput("", 72, 16, 136, 28, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) GUICtrlSetLimit($Input1, 4, 4) GUISetState(@SW_SHOW) $ButtonDummy = GUICtrlCreateDummy() Local $EnterArray[1][2] = [["{ENTER}", $ButtonDummy]] ; Dim is deprecated GUISetAccelerators($EnterArray) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ButtonDummy Enter() EndSwitch If StringLen(GUICtrlRead($Input1)) = 4 And $Flag Then ; check if the value and the flag $Flag = False GUICtrlSendToDummy($ButtonDummy) ; send enter ElseIf StringLen(GUICtrlRead($Input1)) <= 3 And Not $Flag Then ; if not clear the flag $Flag = True EndIf WEnd Func Enter() MsgBox(0, "", "Enter pressed") EndFunc ;==>Enter I prefer WM_COMMAND but for a new autoit user that was an easy way
  4. MyEarth's post in Strange TimerInit stubbornness was marked as the answer   
    Local $timer = TimerInit() Local $dif = TimerDiff($timer) ConsoleWrite($dif & @LF) While 1 $dif = TimerDiff($timer) If $dif > 5000 Then ConsoleWrite($dif & @CR) ExitLoop EndIf WEnd Result:
    0.127669857481887 5000.00642539764
  5. MyEarth's post in Disable an Accelerator? was marked as the answer   
    Solved, i need to pass the handle in my case:
    GUISetAccelerators("", $Handle)
  6. MyEarth's post in MP3 lenght from exe resource was marked as the answer   
    I have reach my goal reading this thread:
    '?do=embed' frameborder='0' data-embedContent>>
    Expecially Melba post, thanks to him
  7. MyEarth's post in FindWindowByCaption? was marked as the answer   
    I have resolved with _WinAPI_FindWindow + WinGetTitle in the same line. A note, for the class in FindWindow you don't need to write [CLASS:ETC] but directly the class, that was my error.
    Thank you firefox for your help
  8. MyEarth's post in GUI Buttom like checkbox was marked as the answer   
    I have serched for button the is a style of a checkbox:
    #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> $Form = GUICreate("Form", 247, 233, -1, -1) $Button = GUICtrlCreateCheckbox("I'm a button", 72, 56, 97, 33, $BS_PUSHLIKE) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button If GUICtrlRead($Button) = $GUI_CHECKED Then ConsoleWrite("PRESSED" & @CRLF) If GUICtrlRead($Button) = $GUI_UNCHECKED Then ConsoleWrite("UNPRESSED"& @CRLF) EndSwitch WEnd
  9. MyEarth's post in About screen capture was marked as the answer   
    Read here:
    '?do=embed' frameborder='0' data-embedContent>>
×
×
  • Create New...