Jump to content

aByte

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

aByte's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Oh, what a toxic function. It only works when the mouse is in the Edge window. Is there a way to ensure that the mouse is in the Edge window? With https://www.autoitscript.com/autoit3/docs/functions/MouseMove.htm I should at least reach the position. But how do I find the browser window if it doesn't start in full screen?
  2. Sorry I can't edit my posts. Now it doesn't work again. $url = "https://google.de" ;Edge starten Run(@ComSpec & " /c start microsoft-edge:" & $url ,"",@SW_HIDE) ;Edge Vollbild Sleep(2000) Send("{ALTDOWN}{SPACE}{x}{ALTUP}") ;Beim Edge schließen wir noch die alten Fenster WinActivate("[REGEXPTITLE:.*Microsoft Edge$]") Sleep(1000) Send('^!{f4}') Send("{CTRLDOWN}{ALTDOWN}{F4DOWN}{F4UP}{CTRLUP}{ALTUP}")
  3. the following snippet works: Send("{CTRLDOWN}{ALTDOWN}{F4DOWN}{F4UP}{CTRLUP}{ALTUP}")
  4. Oh, I noticed something. In the browser the URL window opened, this happens with the key F4, if I press you alone. Could it be that not all keys are pressed at the same time?
  5. Unusually sometimes (every 10 times) it works. And then again not, I have also played with the Slepptimes of this it seems to sen independently. To check it I used the shortcut for fullscreen before entering it. Also this is only executed occasionally. $url = "https://google.de" ;Edge starten Run(@ComSpec & " /c start microsoft-edge:" & $url ,"",@SW_HIDE) ;Edge Vollbild Sleep(2000) Send("{ALTDOWN}{SPACE}{x}{ALTUP}") ;Beim Edge schließen wir noch die alten Fenster WinActivate("[REGEXPTITLE:.*Microsoft Edge$]") Sleep(1000) Send('^!{f4}')
  6. Hello, no change when I perform it manually so "Real" with the keys it works. Do I have to select the window first? If so, how do I do it?
  7. Hello, Thanks for the quick answer. I have now replaced RUNWAIT with RUN. No change. $url = "https://google.de" ;Edge starten Run(@ComSpec & " /c start microsoft-edge:" & $url ,"",@SW_HIDE) ;Beim Edge schließen wir noch die alten Fenster Sleep(1000) Send("{CTRLDOWN}{ALTDOWN}{F4}{CTRLUP}{ALTUP}")
  8. Hello, I'm not trying to do a script in AUTOIT. The Edge Browser should be started and the open windows should be closed. The key combination for this is CTRL + ALT + F4. closes all tabs except the active tab. My script is really simple but it doesn't work. What am I doing wrong? $url = "https://google.de" ;Edge starten RunWait(@ComSpec & " /c start microsoft-edge:" & $url ,"",@SW_HIDE) ;Beim Edge schließen wir noch die alten Fenster Sleep(1000) Send("{CTRLDOWN}{ALTDOWN}{F4}{CTRLUP}{ALTUP}")
×
×
  • Create New...