Jump to content

Changing focus in IE


thatsmychin

Recommended Posts

Noob ducky user here...as in, just received it in the mail a few hours ago.  I've been working on a prank payload for hours now that seems to work great on Windows 7.  Windows 10...not so much. 

DEFAULT_DELAY 100
DELAY 1000
GUI r
DELAY 200
STRING iexplore
ENTER
DELAY 1000
CONTROL T
DELAY 200
STRING http://geektyper.com/plain/
ENTER
DELAY 200
STRING 6
F11

Windows 10 keeps the focus on the url field and "6" is input before http://...

Any thoughts on how to make this work on both?  I can't find a solution that moves the focus to the page.  Bonus: If you can help me 'click' the "Automate" button on that page I'll give you 5 gold stars.

Link to comment
Share on other sites

As an example, 

GUI r
STRING chrome https://www.somesite.com/
ENTER

Also, have you played around with the TAB key at all? Count how many TABs it takes to get the focus where you want it. Assuming it's always in the same place, that would work too. A little cumbersome, but it would work.

Edited by Decoy
Link to comment
Share on other sites

Your issue was pressing '6' before going into fullscreen. By default, the focus is set to the URL field, but going into fullscreen mode switches the focus to the window itself (at least in few tests I just did before posting that code change). Worked fine for me. I tried both IE and Chrome.

Link to comment
Share on other sites

32 minutes ago, thatsmychin said:

Ugh!  Such simple solutions!  Works like a charm.  Thanks for the help all.

For whatever reason, it stopped allowing me to post replies on the forum the other day. You can make the script even shorter:

 

DELAY 2000
GUI r
DELAY 200
STRING iexplore -k http://geektyper.com/plain/
ENTER
DELAY 5000
STRING 6

 

The -k option automatically opens the website in fullscreen mode.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...