Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/30/2017 in all areas

  1. I am not logging into session 0. I am scheduling a program to run autonomously. All other jobs are run as a background process, in this particular situation the UI could not be removed. In order to automate this the UI is displayed using interactive services and session 0. Are there other options to run this cobol program and go through a progression of button presses?
    1 point
  2. Miliardsto, How about this: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("Test", 500, 500, -1, -1) $cButton_0 = GUICtrlCreateButton("Child 0", 10, 10, 80, 30) $cButton_1 = GUICtrlCreateButton("Child 1", 10, 50, 80, 30) $cButton_2 = GUICtrlCreateButton("Child 2", 10, 90, 80, 30) GUISetState(@SW_SHOW, $hGUI) ; guis Global $hChild_[3] Global $countGUI = UBound($hChild_) - 1 Global $gui = 0 $hChild_[0] = GUICreate("Child 0", 350, 300, 150, 0, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) GUISetBkColor(0xFF0000) GUISetState(@SW_SHOW, $hChild_[0]) $hChild_[1] = GUICreate("Child 1", 350, 300, 150, 0, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) GUISetBkColor(0x00FF00) GUISetState(@SW_HIDE, $hChild_[1]) $hChild_[2] = GUICreate("Child 2", 350, 300, 150, 0, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) GUISetBkColor(0x0000FF) GUISetState(@SW_HIDE, $hChild_[2]) GUIRegisterMsg($WM_NCHITTEST, "_NCHITTEST") While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $cButton_0 _All_Hide() GUISetState(@SW_SHOW, $hChild_[0]) $gui = 0 Case $cButton_1 _All_Hide() GUISetState(@SW_SHOW, $hChild_[1]) $gui = 1 Case $cButton_2 _All_Hide() GUISetState(@SW_SHOW, $hChild_[2]) $gui = 2 EndSwitch WEnd Func _All_Hide() GUISetState(@SW_HIDE, $hChild_[0]) GUISetState(@SW_HIDE, $hChild_[1]) GUISetState(@SW_HIDE, $hChild_[2]) EndFunc Func _NCHITTEST($hWnd, $iMsg, $wParam, $lParam) For $i = 0 To $countGUI If $hWnd = $hChild_[$i] Then Local $aPos = WinGetPos($hWnd) If Abs(BitAND(BitShift($lParam, 16),0xFFFF)- $aPos[1]) < 500 Then Return $HTCAPTION ExitLoop EndIf Next Return $GUI_RUNDEFMSG EndFunc M23
    1 point
  3. Hello This works for me in Windows 10x64 #RequireAdmin WinActivate("Windows Security") ControlClick("Windows Security","","Button1") Saludos
    1 point
  4. A regex workbench https://regex101.com/ AutoIt own StringRegex() help.
    1 point
  5. Well, I have found and fixed the problem in the AssocArrayDelete function, but have uncovered some other bugs. Also, I am adding AssocArrayDisplay(), which returns a string with all the assigned key-value pairs in the sequence in the array and AssocArraySorted(), which returns a string with all the assigned key-value pairs, in order by the key. I am adding a couple of support routines to help with AssocArraySorted, like other support routines, they are not meant to be called directly.
    1 point
  6. Nutster, Nice to see you around again after so long. Given that Maps are still only a feature in the Beta trunk, I am looking forward to the new version of this UDF. M23
    1 point
×
×
  • Create New...