Jump to content

sieurcoug

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by sieurcoug

  1. I can't get the Chrome UDF working. I have Windows 7 with Google Chrome up to date : Version 65.0.3325.181 (Build officiel) (32 bits) Installation on Autoit Extention in developer Mode is ok (screenshot here). These 3 functions are working : _ChromeShutdown _ChromeStartup _ChromeDocWaitForExistenceByTitle (or due to timeout ?) Other functions are not working, for example : _ChromeEval("alert('hello world');") _ChromeEval("document.getElementById('content_reflink').innerHTML;") returns @error:2 --> "there was no response from Chrome" Any ideas how to make this work ?
  2. oops, I mean it doesn't click my control "MacromediaFlashPlayerActiveX3". As far as I know there's only one control called "MacromediaFlashPlayerActiveX3" on my page. I got the ClassNameNN with AutoIt Window Info This is a Flash button in a frameset. Thanks Kurt for yout reply
  3. The ControlClick function in my code below returns "success", but it doesn't click at all my control !! if WinActivate("Bienvenue") Then $resFocus = ControlFocus("Bienvenue", "", "MacromediaFlashPlayerActiveX3") $resClick = ControlClick("Bienvenue", "", "MacromediaFlashPlayerActiveX3", "left") MsgBox(0, "Go", "Activate : yes | Focus : " & $resFocus & " | Click : " & $resClick) EndIf The msgbox displays : "Activate : yes | Focus : 1 | Click : 1" I can't use Control ID, because it's always different. Do you know my control isn't clicked ?
  4. Hello, Based on your help, I went further and manage to "catch" the frame where my SWF are. But _IETagNameGetCollection only find the OBJECT tags and not the EMBED tags. This sample code gives all the elements in my frame but bot the EMBED. $oElements = _IETagNameAllGetCollection ($oFrame) For $oElement In $oElements MsgBox(0, "Element Info", "Tagname: " & $oElement.tagname & @CR & "innerText: " & $oElement.innerText) Next What I need is to get the src attribute "myobject.swf" in my HTML code below in order to do a _IEAction ($o_object, "click"). Any idea ? <object classid="clsid:F25CDT6E-YE8D-11kl-59T8-454859559213" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="19" height="5"> <param name="movie" value="./myobject.swf"> <param name="quality" value="high"> <embed src="./myobject.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="19" height="5"></embed> </object>
  5. Thanks for your help I tried _IETagNameGetCollection($oIE, "object", 2) But I get the return 7 from @ERROR : no match. The object is in a frameset. Is it the problem ?
  6. I can't manage to make auto-it click a SWF object in IE. My HTML Code : <object classid="clsid:F25CDT6E-YE8D-11kl-59T8-454859559213" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="19" height="5"> <param name="movie" value="./myobject.swf"> <param name="quality" value="high"> <embed src="./myobject.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="19" height="5"></embed> </object> I tried this, but this doesn't work : _IEAction (IEGetObjByName ($oIE, "clsid:F25CDT6E-YE8D-11kl-59T8-454859559213"), "click") Any idea ?
  7. Hello, I want to schedule an Autoit exe file launch. So I used the "at" dos command line to execute my program : c:\> at 16:13 /interactive /next: 28 D:\myfile.exe But the problem is that myfile.exe is launched with the SYSTEM (NetworkService) user context. Thus loosing my Firefox and Thunderbird profiles. I searched on this forum and tried the RunAsSet command, without success. Do you know how to : either set the user environnement (Unix-like "su -") to my current logged-in username ? or either easily schedule myfile.exe ?Thanks a lot for your help !
×
×
  • Create New...