
marcushe
Members-
Posts
16 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by marcushe
-
How to get the controls in a window??
marcushe replied to marcushe's topic in AutoIt General Help and Support
Seeems no perfect solution here. WinGetClassList only return all class names ,nothing else. So How can i get control id for each one?Ai.................. If Autoit is free, where can i find the source code, maybe i wan't to modify the 'WinGetClassList' function -
in a script,Can i get all the controls in a window ? I need to identify which kind of window it is by its all controls: such as ,A form with 2 button and processname is "XXXX" is form1,3 button whose size are bigger than 165X37 and processname is "AAAA" is form2 Thus what functions i need are: 1. Get all controls 2. What kind of control is it 3. How big is it 4. Its position 5. Its controlID
-
Environment: OS, WinRE,version gotton by Ver----Microsoft Windows [version 6.1.7201] Autoit: v3.3.0.0 Question: on this WinRE, if i tried to launch Autoit, a message showed : The subsystem needed to support the image type is not present. 1. What's the minimum subsystem required by Autoit????? 2. How can i make this OS enabled to launch Autoit???? 3. If i can't launch Autoit ,any sugguestions?????
-
Fail in getting ClassNameNN from WPF application
marcushe replied to marcushe's topic in AutoIt General Help and Support
Ha, tanks SmOke_N . -
Working Environment: Vista SP1, WPF application ,autoit Target : Use autoit to click on 'Cancel' button on WPF Step: 1. install Ranorex Spy to get NAME property of button - Cancel 2. include <DotNetIdentification.au3> 3. Launch au3info.exe to get title and text ,Au3info can merely get wintitle ,other info as class/classNN/Text are all null 4. Invok NET_ControlGetHandleByName($wintitle,$Wintext,$Control) Result: Autoit didn't click Cancel button I find when WinGetClassList is invoked in NET_ControlGetHandleByName.au3 , Return value is "" ,however, @error=0 So , WinGetClassList is the root cause. My Question: Must i use C++ .net to implement this script? Any good suggestion?
-
To acknowledge DirectUI,WPF,.Net....HuHu,Maybe need new programs. Sicne my knowledage about these is limited i have no measure to develpe
-
Self resolved this case, read many article at Microsoft instrument: 1. setProperty ("SelectionNamespaces", "xmlns:ns='urn:schemas-microsoft-com:unattend'") ' God. _XMLDomwrapper must be upgrade ' Or if XML used default namespace like xml="xxxxxx" ' we'll have trouble . We'll get nothing by XPath after ' invoke _XMLOpenFile 2. Then i can use Xpath="\ns:unattend\settings[@pass=" & Chr(34) & "oobeSystem" & "]\*" Caution: 1. If use appendChild to insert a child node ,you must offer a namespace if defaultnamespace is used. createNode(NodeElement,YourNodeName,YourNamespace) 'YourNamespace="urn:schemas-microsoft-com:unattend" 2.By default ,you 'll get a node like <xxxx /> unless you create another child note for it
-
I've found the cause !!!! It's default namespace xmlns="urn:schemas-microsoft-com:unattend" hindering XPath to execute successfully.But i haven't find a way to use default namespace to execute XPath. I've tried: setProperty ("SelectionNamespaces", "xmlns='urn:schemas-microsoft-com:unattend'") but XPath result is still not correct.
-
Need a hand to help me!!!!!Support for XPath in MsXML6.0,I can't get my needed notes by XPath Environment:XPP SP3,English Tool:Autoit3 with _XMLDomWrapper.au3 Target:From unattend.xml(when installing XP or Vista, you 'll use), delete /unattend/settings [pass="oobeSystem"]/Component[name="Microsoft-Windows-Shell-Setup"]/OOBE . Unattend.xml: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing></servicing> <settings pass="specialize"> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86"> <OOBE><HideEULAPage>false</HideEULAPage></OOBE> </component> </settings> <unattend> Steps: Questioin: 1. xpath="/unattend/*" , No children notes ? 2. xpath="/*",result notes are :servicing,seetings, except unattend ? 3. xpath="/",result is unattend 4. xpath="//settings[1]",No children notes? 5.Xpath="/unattend/settings[@pass=" & Chr(39) & "oobeSystem" & Chr(39) & "]/component[@name=" & Chr(39) & "Microsoft-Windows-Shell-Setup" & Chr(39) & "]" Spitting blood to ask a help....
-
I'm creating a script to automatically install McAfee and manipulate , when i meet a obstacle----Object on McAfee Gui is recognized as Internet Explorer_Server. However I tried functions of IE.au3 (_IEAttach) , no IE object is succefully returned. It's a headache problem, Does any experienced guys know ?
-
I'm creating a script to automatically install McAfee and manipulate , when i meet a obstacle----Object on McAfee Gui is recognized as Internet Explorer_Server. However I tried functions of IE.au3 (_IEAttach) , no IE object is succefully returned. It's a headache problem, Does any experienced guys know ?