Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/03/2013 in all areas

  1. This UDF has been rewritten - the new version can be found here. ---------------------------------------------------------------------------------------------- [New version] - 28 Aug 16 Added: The UDF is now RTL sensitive. Thanks to shai for the request. New UDF and examples below. Details of previous versions: The GUIExtender UDF allows you to have multiple sections within your GUIs which can be either static or extendable. The extendable sections can be extended and retracted either by UDF created buttons or programmatically by other controls or HotKeys. The controls on the sections are fully functional and there is no overlap problem when retracted (see the details section if you want to know how). The UDF can be used in both MessageLoop and OnEvent modes and with both native and UDF created controls, as well as embedded objects and child GUIs. Details of how the UDF works for those who are interested: The UDF and plenty of commented examples are in the attached zip: As always, happy to receive brickbats or bouquets. M23
    1 point
  2. PhoenixXL, I think the OP wants to be able to use the autoit info tool to detect the details of the button, but can't because of the group control. There are a couple of options: 1: Hide the group. Just run this code before using the autoit info tool: ControlHide("Autoit", "", "Button3") 2: Get a more powerful info tool. Spy++ allows you to see window hierarchies, which would make this very easy to do. Unfortunately Spy++ is a more advanced tool and is not quite as easy to do. 3: Do it manually. This is very complicated and probably not necessary, but look at _WinAPI_EnumChildWindows if you want to get the handles to all the children of a window.
    1 point
  3. just use with combination of Class and Instance ControlClick("", "", "[CLASS:Button;INSTANCE:3]") from the help file Search Controls in the helpfile for more information
    1 point
  4. What do you mean by that. If you want to retrieve an unique identifier of the control the event occurred from use @GUI_CtrlId or @GUI_CtrlHandle from the respective function. for receiving class info use _WinAPI_GetClassName check it from the helpfile
    1 point
  5. martin

    AutoitObject + Koda

    I know very little about AutoItObject, but I have made a variation of your script which shows the same problem. I tried using OnEventMode to see if it made any difference but it does not. My conclusion is that there is something wrong with AutoItObject. But I might be using an old version and so might you, and I might be wrong. Check that the latest version gives the same problem and if it does then add a post in the autoitobject thread with this problem - you are more likely to get a reply from someone who can help you there. You should also check that this problem isn't already being dealt with of course. ;Includes das telas #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include "C:\Program Files\Autoit3\include\AutoitObject.au3" Dim $doexit _AutoItObject_StartUp() extern2("Window 1") ;create window without using objects Global $C_Analista = _Analista_create();global detentora do objeto ANALISTA $C_Analista.formMain $C_Analista = 0;destroy th eobject _AutoItObject_Shutdown();don't forget this line although the examples do Func _Analista_create() Local $oClassObject = _AutoItObject_Class() $oClassObject.Create() $oClassObject.AddMethod("formMain", "_Analista_main") $oClassObject.AddDestructor("_DestructorForAnalista") Return $oClassObject.Object EndFunc ;==>_Analista_create Func _Analista_main($oSelf) extern2("window from object") EndFunc func extern2($title) AutoItSetOption("guioneventmode",1) $doexit = 0 #region ### START Koda GUI section ### Form=E:\Rami Sistemas\Produto\Telas\AnalistaFormMain.kxf $AnalistaFormMain = GUICreate($title, 224, 438, 10, 10);, BitOR($WS_SYSMENU, $WS_BORDER, $WS_CAPTION)) GUISetState(@SW_SHOW) #endregion ### END Koda GUI section ### ConsoleWrite("step 4" & @LF) GUISetOnEvent($GUI_EVENT_CLOSE, "CloseGui") While $doexit = 0 sleep(30) WEnd EndFunc ;==>_Analista_main Func CloseGui() ConsoleWrite("close gui?" & @LF) $doexit = 1 EndFunc Func _DestructorForAnalista($oSelf) ConsoleWrite("!...destructing... 'Analista'" & @CRLF) EndFunc ;==>_DestructorForAnalista
    1 point
  6. Melba23

    Counting time remaining

    michaelslamet, I would do it like this: $iCurr_Average= 0 $iPasses = Random(3, 10, 1) For $i = 1 To $iPasses ; Get a timestamp $iBegin = TimerInit() ; A random Sleep Sleep(Random(1000, 5000, 1)) ; How long was that $iThis_Time = Int(TimerDiff($iBegin)) ConsoleWrite("Pass " & $i & " time: " & $iThis_Time & @CRLF) ; Just for display ; Calculate new average If $i > 1 Then $iCurr_Average = Int((($iCurr_Average * $i - 1) + $iThis_Time) / ($i + 1)) Else $iCurr_Average = $iThis_Time EndIf ConsoleWrite("Calc average: " & $iCurr_Average & @CRLF) ; Just for display ; Calculate time remaining $iTime_Remaining = ($iPasses - $i) * $iCurr_Average ConsoleWrite("Remaining: " & $iTime_Remaining & @CRLF) Next All clear? M23
    1 point
  7. I allready had _IEErrorHandlerRegister() employed. I've just been to stupid to tell google what I'm looking for But now I found what I've been looking for: I had moved this webpage to the trusted sites where protected mode was turned off. After removing the URL from trusted sites every thing is working again! Thanks for your help.
    1 point
×
×
  • Create New...