Jump to content

Search the Community

Showing results for tags 'commadnline'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hello guys, I 've written a little application in Autoit which starts IE or firefox with a html file which is generated before. The file contains the URL which shall be started. What I'm trying to do is start firefox in private mode and directly load the file. This doesn't work. All I have done successfully is start firefox in private mode and then "ControlSend" the complete filename (path) and hit enter. Then firefox transforms the path into the file:/// ... syntax and loads the url. This works, but using ControlSend isn't the best way, because it sometimes fails when a sign gets lost during send-process. Does anybody know an option to just use an Autoit command to run a private window with the given filename (path)? The exact call looks this way at the moment: ShellExecute(@ProgramFilesDir & '\Mozilla Firefox\firefox.exe ', '-private-window ', @ProgramFilesDir) ;~ ShellExecute(@ProgramFilesDir & '\Mozilla Firefox\firefox.exe ', ' -private-window' & ' -url file:///' & StringReplace($filename, '\', '/'), @ProgramFilesDir) ConsoleWrite('private Mode FF' & @CRLF) Local $ff_handle = WinWaitActive('Privater Modus - Mozilla Firefox (Privater Modus)', '', 5) Sleep(100) ;~ Opt('SendAttachMode', 1) Opt('SendKeyDelay', 5) Opt('SendKeyDownDelay', 1) ControlFocus($ff_handle, '', '') ControlSend($ff_handle, '', '', $filename & '{ENTER}') The file looks like this: <html> <head> <title> Reporting-Manager ANMELDUNG </title> <script> function createCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; document.cookie = name + "=" + value + expires + ";domain=.dsp-mgY.gaxeg.de;path=/cognos01"; } function eraseCookie(name) { createCookie(name, "", -1); } function logMeIn(){ window.opener=null; eraseCookie("cc_session"); eraseCookie("caf"); eraseCookie("cam_passport"); eraseCookie("userCapabilities"); eraseCookie("CRN"); eraseCookie("CGC"); eraseCookie("usersessionid"); eraseCookie("cea-ssa"); document.getElementById("formLogin").submit(); }; onload = function() { logMeIn(); } </script> </head> <body> <form style="margin:0px;padding:0px;" method="post" action="http://dsp-mgY.gaxeg.de/cognos01/cgi-bin/cognos_module" name="pform" id="formLogin"> <input type="hidden" name="b_action" value="xts.run" id="inputBaction"> <input type="hidden" name="startwel" value="yes" id="inputStartwel"> <input type="hidden" name="m" value="portal/main.xts" id="inputM"> <input type="hidden" name="h_CAM_action" value="logonAs"> <input type="hidden" name="CAMNamespace" value="ldap" id="inputCamNamespace"> <input type="hidden" name="CAMUsername" value="xxx" id="CAMUsername"> <input type="hidden" name="CAMPassword" value="xxx" id="CAMPassword"> <input type="hidden" name="bank21.funktionsmandant" value="0112" id="bank21.funktionsmandant"> <div style="width: 150px; height: 50px; margin-left: auto; margin-right: auto; margin-top: 300px; text-align: center"> <img src="http://dsp-mgY.gaxeg.de/cognos01//ps/portal/images/icon_loading.gif" width="32" height="32"/><br/><br/> Bitte warten<br/><br/> Anmeldung an Reporting ... </div> </form> </body> </html> Thanks for any help. Mega
×
×
  • Create New...