Jump to content

marcushe

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by marcushe

  1. 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
  2. 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
  3. 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?????
  4. Autoit has its own shortage that is not compatible with .Net applicaitons(WPF). I've experimented on Ranorex ,which is a good tool except must be paid($220 for a runtime part). I want to know , how do you resolve this hurdle? Program in c#/C++ ,or other tools as Ranorex?
  5. I'm being tormenting by automation project ! At least 17*3 persons are using our automated tools , which i consider are just a little part of our test project. Many of workmates don't regard automated tools, that make me uncomfortable. How you think about automation?
  6. 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?
  7. Nice , Thank you ,Brett It's working I work on "Code Architects Regex Tester"-a regular expression tool Source: OOaaAA 009s o00 Pattern: (?i).o*^*\s{0,5}.*$ Match: OOaaAA 009s o00
  8. I want to in Regular Expression ignore case(Case insensitive). Can i set ?? In Vbscript , it can be set to case insensitive , however ,in Autoit3 , i don't discover whether it can be set to case insensitive
  9. To acknowledge DirectUI,WPF,.Net....HuHu,Maybe need new programs. Sicne my knowledage about these is limited i have no measure to develpe
  10. 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
  11. 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.
  12. 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....
  13. Such like winexist("","") . Present all parameters require exact text/number ,it will not help us if we want to find a window named 'Us.exe' that will change to 'US.exE' next time. QTP support regular expression in each parameter.
  14. 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 ?
  15. 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 ?
×
×
  • Create New...