
DazGizmo
Active Members-
Posts
30 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
DazGizmo's Achievements

Seeker (1/7)
3
Reputation
-
Thanks Guys... Found the problem!... It was the icon file in the compiler making it fail! Made an error I think in my *.ico image as it does not even preview in explorer..
-
-
Thanks so far to you and others... still no go with the "Error: Unable to add resources"... My Program runs no problem on the test run.
-
Still does not get through the process: "11:39:06 Aut2exe.exe ended with errors because the target exe wasn't created, abandon build. (C:\Users\darre\AppData\Local\AutoIt v3\Aut2exe\~AUADF2.tmp.exe)rc:2" I have a thought it could be with were its putting the tmp building files... I have not found where, or if, this can be changed? I turned off the AV completely and it still failed..
-
Hello Guys Just getting back into AutoIT and have hit a problem on Compiling. Can anyone help to point what could be the cause of it not completing please (See Attached)?
-
Getting state from a Check Box in another program
DazGizmo replied to DazGizmo's topic in AutoIt General Help and Support
Thanks for your input Saludos.... I have read in a few places about grabbing the pixel colour but would rather find a better method if possible... -
Getting state from a Check Box in another program
DazGizmo replied to DazGizmo's topic in AutoIt General Help and Support
Yes, I have looked at your SimplySpy...... How would I go about coding the state and using it some pointers would be great... this is what I get running control+W: https://www.autoitscript.com/forum/topic/153520-iuiautomation-ms-framework-automate-chrome-ff-ie/?do=findComment&comment=1156373 At least we have an element title: [Fresnel:] class: [WindowsForms10.BUTTON.app.0.32b818c_r12_ad1] Having the following values for all properties: Title is: <Fresnel:> Class := <WindowsForms10.BUTTON.app.0.32b818c_r12_ad1> controltype:= <UIA_CheckBoxControlTypeId> ,<50002> , (0000C352) 517;544;195;20 *** Parent Information top down *** 11: Title is: <Edit Default Material Selections> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_WindowControlTypeId> ,<50032> , (0000C370) 191;147;1538;906 "Title:=Edit Default Material Selections;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 10: Title is: <Material Editor> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_WindowControlTypeId> ,<50032> , (0000C370) 482;185;955;830 "Title:=Material Editor;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 9: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 505;230;908;725 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 8: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 505;230;602;725 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 7: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 505;230;602;725 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 6: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 505;230;602;725 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 5: Title is: <> Class := <WindowsForms10.SysTabControl32.app.0.32b818c_r12_ad1> controltype:= <UIA_TabControlTypeId> ,<50018> , (0000C362) 505;273;602;682 "Title:=;controltype:=UIA_TabControlTypeId;class:=WindowsForms10.SysTabControl32.app.0.32b818c_r12_ad1"" 4: Title is: <Advanced> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 509;297;594;654 "Title:=Advanced;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 3: Title is: <Colour:> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 509;297;594;654 "Title:=Colour:;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 2: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 509;401;594;475 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 1: Title is: <Specular Settings> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 513;404;203;163 "Title:=Specular Settings;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 0: Title is: <No texture selected.> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 517;421;195;143 "Title:=No texture selected.;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" ;~ *** Standard code maintainable *** #include "UIAWrappers.au3" AutoItSetOption("MustDeclareVars", 1) _UIA_setVar("oP1","Title:=Edit Default Material Selections;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Edit Default Material Selections _UIA_setVar("oP2","Title:=Material Editor;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Material Editor _UIA_setVar("oP3","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP4","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP5","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP6","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP7","Title:=;controltype:=UIA_TabControlTypeId;class:=WindowsForms10.SysTabControl32.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP8","Title:=Advanced;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Advanced _UIA_setVar("oP9","Title:=Colour:;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Colour: _UIA_setVar("oP10","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP11","Title:=Specular Settings;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Specular Settings _UIA_setVar("oP12","Title:=No texture selected.;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;No texture selected. _UIA_setVar("Fresnel:.mainwindow","title:=Fresnel:;classname:=WindowsForms10.BUTTON.app.0.32b818c_r12_ad1") ;~ Actions split away from logical/technical definition above can come from configfiles ;~_UIA_Action("oP1","highlight") _UIA_Action("oP1","setfocus") ;~_UIA_Action("oP2","highlight") _UIA_Action("oP2","setfocus") ;~_UIA_Action("oP3","highlight") _UIA_Action("oP3","setfocus") ;~_UIA_Action("oP4","highlight") _UIA_Action("oP4","setfocus") ;~_UIA_Action("oP5","highlight") _UIA_Action("oP5","setfocus") ;~_UIA_Action("oP6","highlight") _UIA_Action("oP6","setfocus") ;~_UIA_Action("oP7","highlight") _UIA_Action("oP7","setfocus") ;~_UIA_Action("oP8","highlight") _UIA_Action("oP8","setfocus") ;~_UIA_Action("oP9","highlight") _UIA_Action("oP9","setfocus") ;~_UIA_Action("oP10","highlight") _UIA_Action("oP10","setfocus") ;~_UIA_Action("oP11","highlight") _UIA_Action("oP11","setfocus") ;~_UIA_Action("oP12","highlight") _UIA_Action("oP12","setfocus") _UIA_action("Fresnel:.mainwindow","setfocus") ;~ *** Standard code Flexible*** #include "UIAWrappers.au3" AutoItSetOption("MustDeclareVars", 1) Local $oP11=_UIA_getObjectByFindAll($UIA_oDesktop, "Title:=Edit Default Material Selections;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP11,"setfocus") Local $oP10=_UIA_getObjectByFindAll($oP11, "Title:=Material Editor;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP10,"setfocus") Local $oP9=_UIA_getObjectByFindAll($oP10, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP9,"setfocus") Local $oP8=_UIA_getObjectByFindAll($oP9, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP8,"setfocus") Local $oP7=_UIA_getObjectByFindAll($oP8, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP7,"setfocus") Local $oP6=_UIA_getObjectByFindAll($oP7, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP6,"setfocus") Local $oP5=_UIA_getObjectByFindAll($oP6, "Title:=;controltype:=UIA_TabControlTypeId;class:=WindowsForms10.SysTabControl32.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP5,"setfocus") Local $oP4=_UIA_getObjectByFindAll($oP5, "Title:=Advanced;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP4,"setfocus") Local $oP3=_UIA_getObjectByFindAll($oP4, "Title:=Colour:;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP3,"setfocus") Local $oP2=_UIA_getObjectByFindAll($oP3, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP2,"setfocus") Local $oP1=_UIA_getObjectByFindAll($oP2, "Title:=Specular Settings;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP1,"setfocus") Local $oP0=_UIA_getObjectByFindAll($oP1, "Title:=No texture selected.;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP0,"setfocus") _UIA_setVar("Fresnel:.mainwindow","title:=Fresnel:;classname:=WindowsForms10.BUTTON.app.0.32b818c_r12_ad1") _UIA_action("Fresnel:.mainwindow","setfocus") *** Detailed properties of the highlighted element *** UIA_title:= <Fresnel:> UIA_text:= <Fresnel:> UIA_regexptitle:= <Fresnel:> UIA_class:= <WindowsForms10.BUTTON.app.0.32b818c_r12_ad1> UIA_regexpclass:= <WindowsForms10.BUTTON.app.0.32b818c_r12_ad1> UIA_iaccessiblechildId:= <0> UIA_id:= <FresnelCheckBox> UIA_handle:= <71774> UIA_RuntimeId:= <42;71774> UIA_BoundingRectangle:= <517;544;195;20> UIA_ProcessId:= <10116> UIA_ControlType:= <50002> UIA_LocalizedControlType:= <check box> UIA_Name:= <Fresnel:> UIA_HasKeyboardFocus:= <False> UIA_IsKeyboardFocusable:= <True> UIA_IsEnabled:= <True> UIA_AutomationId:= <FresnelCheckBox> UIA_ClassName:= <WindowsForms10.BUTTON.app.0.32b818c_r12_ad1> UIA_Culture:= <0> UIA_IsControlElement:= <True> UIA_IsContentElement:= <True> UIA_IsPassword:= <False> UIA_NativeWindowHandle:= <71774> UIA_IsOffscreen:= <False> UIA_Orientation:= <0> UIA_FrameworkId:= <WinForm> UIA_IsRequiredForForm:= <False> UIA_IsDockPatternAvailable:= <False> UIA_IsExpandCollapsePatternAvailable:= <False> UIA_IsGridItemPatternAvailable:= <False> UIA_IsGridPatternAvailable:= <False> UIA_IsInvokePatternAvailable:= <True> UIA_IsMultipleViewPatternAvailable:= <False> UIA_IsRangeValuePatternAvailable:= <False> UIA_IsScrollPatternAvailable:= <False> UIA_IsScrollItemPatternAvailable:= <False> UIA_IsSelectionItemPatternAvailable:= <False> UIA_IsSelectionPatternAvailable:= <False> UIA_IsTablePatternAvailable:= <False> UIA_IsTableItemPatternAvailable:= <False> UIA_IsTextPatternAvailable:= <False> UIA_IsTogglePatternAvailable:= <True> UIA_IsTransformPatternAvailable:= <False> UIA_IsValuePatternAvailable:= <False> UIA_IsWindowPatternAvailable:= <False> UIA_ValueIsReadOnly:= <True> UIA_RangeValueValue:= <0> UIA_RangeValueIsReadOnly:= <True> UIA_RangeValueMinimum:= <0> UIA_RangeValueMaximum:= <0> UIA_RangeValueLargeChange:= <0> UIA_RangeValueSmallChange:= <0> UIA_ScrollHorizontalScrollPercent:= <0> UIA_ScrollHorizontalViewSize:= <100> UIA_ScrollVerticalScrollPercent:= <0> UIA_ScrollVerticalViewSize:= <100> UIA_ScrollHorizontallyScrollable:= <False> UIA_ScrollVerticallyScrollable:= <False> UIA_SelectionCanSelectMultiple:= <False> UIA_SelectionIsSelectionRequired:= <False> UIA_GridRowCount:= <0> UIA_GridColumnCount:= <0> UIA_GridItemRow:= <0> UIA_GridItemColumn:= <0> UIA_GridItemRowSpan:= <1> UIA_GridItemColumnSpan:= <1> UIA_DockDockPosition:= <5> UIA_ExpandCollapseExpandCollapseState:= <3> UIA_MultipleViewCurrentView:= <0> UIA_WindowCanMaximize:= <False> UIA_WindowCanMinimize:= <False> UIA_WindowWindowVisualState:= <0> UIA_WindowWindowInteractionState:= <0> UIA_WindowIsModal:= <False> UIA_WindowIsTopmost:= <False> UIA_SelectionItemIsSelected:= <False> UIA_TableRowOrColumnMajor:= <2> UIA_ToggleToggleState:= <1> UIA_TransformCanMove:= <False> UIA_TransformCanResize:= <False> UIA_TransformCanRotate:= <False> UIA_IsLegacyIAccessiblePatternAvailable:= <True> UIA_LegacyIAccessibleChildId:= <0> UIA_LegacyIAccessibleName:= <Fresnel:> UIA_LegacyIAccessibleRole:= <44> UIA_LegacyIAccessibleState:= <1048592> UIA_LegacyIAccessibleDefaultAction:= <Uncheck> UIA_IsDataValidForForm:= <False> UIA_ProviderDescription:= <[pid:9884,hwnd:0x1185E Main:Nested [pid:10116,hwnd:0x1185E Main(parent link):Microsoft: MSAA Proxy (unmanaged:UIAutomationCore.dll)]; Hwnd(parent link):Microsoft: HWND Proxy (unmanaged:uiautomationcore.dll)]> UIA_IsItemContainerPatternAvailable:= <False> UIA_IsVirtualizedItemPatternAvailable:= <False> UIA_IsSynchronizedInputPatternAvailable:= <False> -
Getting state from a Check Box in another program
DazGizmo replied to DazGizmo's topic in AutoIt General Help and Support
-
Getting state from a Check Box in another program
DazGizmo replied to DazGizmo's topic in AutoIt General Help and Support
Okay... sorry forgot that... It's still not reading it correctly... saying it's not checked when it is... -
Getting state from a Check Box in another program
DazGizmo replied to DazGizmo's topic in AutoIt General Help and Support
Thanks for your input but when I run it nothing happens, no msgbox's show up at all... I did change $hWin to $hWind and the Func _IsChecked ($hWindow to $hWind..... -
Getting state from a Check Box in another program
DazGizmo replied to DazGizmo's topic in AutoIt General Help and Support
Many Thanks Malkey for your efforts but it is not returning the correct state as it says Not Checked when It is Checked.... Could it be anything to do with the program being 64bit? -
Really battling with this one as I cannot get the info of the state of the Checkbox... using and testing many references for "IsChecked" to no avail... Anything I am doing wrong or you can suggest please? Tries: 1. ControlFocus($hWnd, "Material Editor", "[HANDLE:0x00000000000814B4]") ;Fresnel True Send("{+}") 2. ControlCommand($hWnd, "Material Editor", "[CLASSNN:WindowsForms10.BUTTON.app.0.32b818c_r12_ad118]", "IsChecked", "") 3. ControlCommand($hWnd, "Material Editor", "[NAME:FresnelCheckBox]", "IsChecked", "") These work but do the same thing: ControlCommand($hWnd, "Material Editor", "[NAME:FresnelCheckBox]", "Check", "") ;will uncheck if already checked ControlCommand($hWnd, "Material Editor", "[NAME:FresnelCheckBox]", "UnCheck", "") ;will check if already unchecked
-
-
Hi... Just getting into some serious Scripting and enjoying it... One thing I have not found yet is how to keep additional GUI Forms and and Mesgbox's to stay within the bounds of the main GUI that calls them rather than Desktop centre etc... Anyone got a simple way of doing this as for the likes of us that drag a GUI across to another monitor but the Forms come up on the main Desktop Centre outside of the main program GUI?
-
Okay.... gone through it and it works perfect.... Brilliant and clever bit of coding @UEZ
- 164 replies