Jump to content

is3ggp

Members
  • Posts

    3
  • Joined

  • Last visited

is3ggp's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for the reply. Your reply was extra useful as it forced me to review a section of code I had assumed was solid--but it wasn't. There was a bug in the way I was forming the parameters. Thanks again!
  2. I'm having trouble running a perl script that requires command line parameters through autoit. My workaround is dirty and sloppy--I open a command prompt and send keys to it to make it work. In the example below, I need to pass parameters to myscript.pl and not perl.exe: RunWait('"C:\perl\bin\perl.exe" "C:\scripts\myscript.pl"') Regardless of where I place the parameters in relation to the quotes, it doesn't seem to work. Hopefully I'm just missing something painfully easy and obvious...
  3. Hello everyone. Longtime reader/lurker, and due to the wealth of information on this site have never needed to make a post until now. To the amazing AutoIt community: thank you! I'm having a similar problem as the OP with IE.au3 and frames. I'm working with the following frameset: <frameset name="top" rows="60,*" border="0" frameSpacing="0" frameBorder="0" > <frame frameborder=0 border=0 frameSpacing=0 src="TopMenu.aspx" name="top" noresize> <FRAMESET cols="180,*" frameSpacing="0" frameBorder="0" > <frame name="menubar" src="MainMenu.aspx" scrolling="auto" noresize> <frame name="body" src="StartPage.aspx" frameborder="1" marginwidth="5" noresize> </FRAMESET> <noframes> <p>This page requires frames, but your browser does not support them.</p> </noframes> </frameset>As you can see I have a frameset within a frameset. Perhaps that's the problem... does IE.au3 not support this? Here are some code snippets I've tested and the outcome: $oIE = _IECreate ("http://siteurl/") $oMenuFrame = _IEFrameGetObjByName ($oIE , "menubar") MsgBox(0, "test", "success")Result: The message box never displays. No errors in the SciTE console. Script just stops. $oIE = _IECreate ("http://siteurl/") $oTopFrame = _IEFrameGetObjByName ($oIE, "top") $oMenuFrame = _IEFrameGetObjByName ($oTopFrame , "menubar") MsgBox(0, "test", "success")Result: The message box never displays. No errors in the SciTE console. Script just stops. $oIE = _IECreate ("http://siteurl/") $oFrames = _IEFrameGetCollection($oIE) MsgBox(0, "test", @extended)Result: The message box does display, with the number 3. So it is detecting the frames to some extent. $oIE = _IECreate ("http://siteurl/") $oFrames = _IEFrameGetCollection($oIE) $iNumFrames = @extended For $i = 0 to ($iNumFrames - 1) ;this is the example loop from the help file $oFrame = _IEFrameGetCollection ($oIE, $i) MsgBox(0, "Frame Info", _IEPropertyGet ($oFrame, "locationurl")) Next MsgBox(0, "test", "complete")Result: Only the "complete" message box displays. The loop doesn't seem to do anything even though I know iNumFrames is 3. Any assistance or guidance would be greatly appreciated. Thanks!
×
×
  • Create New...