Hey everyone! I'm using Autohotkey and love it!
I'd love some help with the following:
Clicking F10 a textbox opens where I can input a text.
Then a website opens, and the text I have used should be placed in the searchbox of that site.
Example: I want to search google for "marshmallow". I wanna hit F10 and then I get a textbox where i can write "Marshmallow". Then google opens, and the searchbox is selected and the Word "mashmallow" is typed/pasted and then searched for.
Any idea how?
Open a website - input text in a textbox
- Blackholyman
- Posts: 1293
- Joined: 29 Sep 2013, 22:57
- Location: Denmark
- Contact:
Re: Open a website - input text in a textbox
Code: Select all
F10::
InputBox, x , Fast Google, Write something, , , , , , , 15
Run, www.google.com/search?hl=&q=%x%
return
Courses on AutoHotkey
My Autohotkey Blog
Re: Open a website - input text in a textbox
Thanks! The google was just an example.Blackholyman wrote:Code: Select all
F10:: InputBox, x , Fast Google, Write something, , , , , , , 15 Run, www.google.com/search?hl=&q=%x% return
I am inside a window where i want this to be able to select the input box. There is no queries sent as its javabased. How do it select the actual inputbox?
Re: Open a website - input text in a textbox
You can use
if the textbox is always in the same place.
Otherwise you can check out
or perhaps
Code: Select all
Click x, y
Otherwise you can check out
Code: Select all
ControlFocus
Code: Select all
ImageSearch
- Blackholyman
- Posts: 1293
- Joined: 29 Sep 2013, 22:57
- Location: Denmark
- Contact:
Re: Open a website - input text in a textbox
Try and give so very exact info
As every little thing needs to be done in its own way
If its a box in the window then its a control
if its in a webpage its an element
If its in a javaprogram its an object or something else
And the code to use depends on what you are trying to interact with
And so on...
As every little thing needs to be done in its own way
If its a box in the window then its a control
if its in a webpage its an element
If its in a javaprogram its an object or something else
And the code to use depends on what you are trying to interact with
And so on...
Courses on AutoHotkey
My Autohotkey Blog
Who is online
Users browsing this forum: Marium0505 and 354 guests