Jump to content

scdxorange

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by scdxorange

  1. Thanks Weaponx!
  2. Sorry maybe I didn't explain it clearly. The original XML is: <Settings> <Syslog AP="0" Level="0" CC="0" IP="" CN="0"/> </Settings> The XML to insert: <SubSettings> <DebugLog JD="3" CCN="3" EC="3" MC="3" CC="3"/> <LeaveRegistry Enabled="0" /> </SubSettings> After insert, it should be: <Settings> <Syslog AP="0" Level="0" CC="0" IP="" CN="0"/> <SubSettings> <DebugLog JD="3" CCN="3" EC="3" MC="3" CC="3"/> <LeaveRegistry Enabled="0" /> </SubSettings> </Settings> I don't want to create those nodes one by one. Is there any simple method to insert an existing XML? Thanks!
  3. How to insert a couple of nodes? For example XML1 <Settings> <Syslog AP="0" Level="0" CC="0" IP="" CN="0"/> </Settings> XML2 <SubSettings> <DebugLog JD="3" CCN="3" EC="3" MC="3" CC="3"/> <LeaveRegistry Enabled="0" /> </SubSettings> How to insert XML2 to the blank field of XML1? Thanks!
  4. OK, it works now. Thanks!
  5. I have an interesting problem. XML <Settings> <Syslog AP="0" Level="0" CC="0" IP="" CN="0"/> </Settings> CODE_1 Dim $name[1], $value[1] _XMLFileOpen($filename) $temp = _XMLGetAllAttrib("Settings/Syslog", $name, $value) CODE_2 _XMLFileOpen($filename) $temp = _XMLGetAttrib("Settings/Syslog", "AP") CODE_1 could read attributes correctly, but CODE_2 cannot, it returns $temp = -1, and the error is "Attribute not found". What's the problem? Thanks!
  6. There are scripts as following in FF.au3 $sCommand = "gBrowser.tabContainer.selectedIndex = 0" $sCommand = 'content.document.location.href = "about:"' The question is, how do AutoIT recognize these commands? How do these commands combine with Firefox?
  7. Yes, I tried _FFSetGet($Socket, '.location.href="http://74.125.95.103"') But there is an error says "Reference error: FF_AutoItScript is not defined". Any idea?
  8. Thanks Stilgar. I tried: $Socket = _FFStart ("about:blank") _FFSetGet($Socket, '.location.href="http://74.125.95.103"') But there is an error says "Reference error: FF_AutoItScript is not defined". Could you please correct me? Thanks!
  9. I tried "http://74.125.95.103", it still doesn't work.
  10. There is a ff.au3 for firefox automation, refer to: http://www.autoitscript.com/forum/index.ph...irefox&st=0 I could use $socket = _FFStart ("http://www.google.com") to access google website, but I cannot use its IP address to access, such as: $socket = _FFStart ("74.125.95.103") But the server which I need to access doesn't have a dns name, I could only use its IP address. Any suggestion? Thanks!
  11. I could use $socket = _FFStart ("http://www.google.com") to access google website, but I cannot use its IP address to access, such as: $socket = _FFStart ("74.125.95.103") But the server which I need to access doesn't have a dns name, I could only use its IP address. Do you have any idea? Thanks!
  12. I tried the following example but failed. The script is: func startnotepad (ByRef $i) While $i>0 run("notepad") $i=$i-1 WEnd EndFunc And I run the following command in "cmd.exe" startnotepad.exe 5 Nothing happened after I executed the command. What should I do? Thanks!
  13. Does AutoIt support "fun.exe -parameter"? For example, I have a "fun.au3" and generated a "fun.exe". If I double click "fun.exe", it then could execute. But I want add some parameter after "fun.exe", for example, I want to run it in "cmd.exe", and use this command "fun.exe -parameter". Does AutoIt support this? How to? Thanks!
×
×
  • Create New...