www.autohotkey.com Open in urlscan Pro
2606:4700:3031::6815:5987  Public Scan

URL: https://www.autohotkey.com/boards/viewtopic.php?style=1&t=95487
Submission: On March 18 via manual from US — Scanned from DE

Form analysis 3 forms found in the DOM

GET ./search.php?style=1&sid=ef8ffde9e1941729d890997c9b5e0e6e

<form action="./search.php?style=1&amp;sid=ef8ffde9e1941729d890997c9b5e0e6e" method="get" id="search">
  <fieldset>
    <input name="keywords" id="keywords" type="search" maxlength="128" title="Search for keywords" class="inputbox search tiny" size="20" value="" placeholder="Search…">
    <button class="button button-search" type="submit" title="Search">
      <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">Search</span>
    </button>
    <a href="./search.php?style=1&amp;sid=ef8ffde9e1941729d890997c9b5e0e6e" class="button button-search-end" title="Advanced search">
						<i class="icon fa-cog fa-fw" aria-hidden="true"></i><span class="sr-only">Advanced search</span>
					</a>
    <input type="hidden" name="sid" value="ef8ffde9e1941729d890997c9b5e0e6e">
    <input type="hidden" name="style" value="1">
  </fieldset>
</form>

GET ./search.php?style=1&sid=ef8ffde9e1941729d890997c9b5e0e6e

<form method="get" id="topic-search" action="./search.php?style=1&amp;sid=ef8ffde9e1941729d890997c9b5e0e6e">
  <fieldset>
    <input class="inputbox search tiny" type="search" name="keywords" id="search_keywords" size="20" placeholder="Search this topic…">
    <button class="button button-search" type="submit" title="Search">
      <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">Search</span>
    </button>
    <a href="./search.php?style=1&amp;sid=ef8ffde9e1941729d890997c9b5e0e6e" class="button button-search-end" title="Advanced search">
					<i class="icon fa-cog fa-fw" aria-hidden="true"></i><span class="sr-only">Advanced search</span>
				</a>
    <input type="hidden" name="t" value="95487">
    <input type="hidden" name="sf" value="msgonly">
    <input type="hidden" name="sid" value="ef8ffde9e1941729d890997c9b5e0e6e">
    <input type="hidden" name="style" value="1">
  </fieldset>
</form>

POST ./viewtopic.php?style=1&f=76&t=95487&sid=ef8ffde9e1941729d890997c9b5e0e6e

<form method="post" action="./viewtopic.php?style=1&amp;f=76&amp;t=95487&amp;sid=ef8ffde9e1941729d890997c9b5e0e6e">
  <div class="dropdown-container dropdown-container-left dropdown-button-control sort-tools">
    <span title="Display and sorting options" class="button button-secondary dropdown-trigger dropdown-select dropdown-toggle">
      <i class="icon fa-sort-amount-asc fa-fw" aria-hidden="true"></i>
      <span class="caret"><i class="icon fa-sort-down fa-fw" aria-hidden="true"></i></span>
    </span>
    <div class="dropdown hidden">
      <div class="pointer">
        <div class="pointer-inner"></div>
      </div>
      <div class="dropdown-contents">
        <fieldset class="display-options">
          <label>Display: <select name="st" id="st">
              <option value="0" selected="selected">All posts</option>
              <option value="1">1 day</option>
              <option value="7">7 days</option>
              <option value="14">2 weeks</option>
              <option value="30">1 month</option>
              <option value="90">3 months</option>
              <option value="180">6 months</option>
              <option value="365">1 year</option>
            </select></label>
          <label>Sort by: <select name="sk" id="sk">
              <option value="a">Author</option>
              <option value="t" selected="selected">Post time</option>
              <option value="s">Subject</option>
            </select></label>
          <label>Direction: <select name="sd" id="sd">
              <option value="a" selected="selected">Ascending</option>
              <option value="d">Descending</option>
            </select></label>
          <hr class="dashed">
          <input type="submit" class="button2" name="sort" value="Go">
        </fieldset>
      </div>
    </div>
  </div>
</form>

Text Content

AUTOHOTKEY COMMUNITY

Let's help each other out

Skip to content

Search Advanced search
 * Quick links
    * 
    * Unanswered topics
    * Active topics
    * 
    * Search
    * 
    * Web Search
    * 
    * The team
    * 

 * FAQ
 * Login
 * Register

 * Home Board index AutoHotkey (v1.1 and older) Ask for Help (v1)
 * Search


COPY HIGHLIGHTED TEXT AND SEARCH GOOGLE TOPIC IS SOLVED

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys

Forum rules
Post Reply
 * Email topic
 * Print view

Search Advanced search
3 posts • Page 1 of 1

ebsalo Posts: 1 Joined: 12 Oct 2021, 09:22


COPY HIGHLIGHTED TEXT AND SEARCH GOOGLE

 * Report
   
 * @
   
 * Quote
 * 

Post by ebsalo » 12 Oct 2021, 09:35

I tried to create a shortcut that could copy any given highlighted text and
search for it on Google. It occasionally works, but often it searches for the
previous item that was on the Clipboard, as if it doesn't register the copy
portion (although sometimes it does copy the highlighted text, but it searches
for the previous text that I used this script on). Just some inconsistencies.
I'm a thoroughgoing novice, so any help would be appreciated. Thanks in advance!

Here's my code:


Code: Select all - Download - Toggle Line numbers

^!+x::
    KeyWait, Ctrl
    KeyWait, u
    Send, {Ctrl Down}c{Ctrl Up}
    ClipWait, 1
    if (ErrorLevel)
        return
    IfWinExist, ahk_class MozillaWindowClass
    {     Run, % "http://www.google.com/search?hl=en&q=" Clipboard
    } Else
    Run, % "http://www.google.com/search?hl=en&q=" Clipboard
Return


I'm having a similar issue with the code I use to search Merriam Webster:



Code: Select all - Download - Toggle Line numbers

^!+m::
    KeyWait, Ctrl
    KeyWait, u
    Send, {Ctrl Down}c{Ctrl Up}
    ClipWait, 1
    if (ErrorLevel)
        return
    IfWinExist, ahk_class MozillaWindowClass
    {   Run, % "https://www.merriam-webster.com/dictionary/" . CLIPBOARD . ""
    } Else
    Run, % "https://www.merriam-webster.com/dictionary/" . CLIPBOARD . ""
Return

[Mod edit: [code][/code] tags added.]
Top

--------------------------------------------------------------------------------


safetycar Posts: 435 Joined: 12 Aug 2017, 04:27


RE: COPY HIGHLIGHTED TEXT AND SEARCH GOOGLE  TOPIC IS SOLVED

 * Report
   
 * @
   
 * Quote
 * 

Post by safetycar » 16 Oct 2021, 06:02

Empty the clipboard so that ClipWait doesn't act based on what was there
before... Clipboard := "" before the copy instruction.
Top

--------------------------------------------------------------------------------


erbanku Posts: 7 Joined: 07 Oct 2021, 23:04


RE: COPY HIGHLIGHTED TEXT AND SEARCH GOOGLE

 * Report
   
 * @
   
 * Quote
 * 

Post by erbanku » 16 Oct 2021, 09:19

I suggest you copy the text and then click a short key to search with Google.
Below is mine, After copy the text clicks Alt+Space to conduct a search. Simple
and handy.


Code: Select all - Download - Toggle Line numbers

!space:: Run https://www.google.com/search?q=%clipboard%

Top

--------------------------------------------------------------------------------

Post Reply
 * Email topic
 * Print view

Display: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by:
AuthorPost timeSubject Direction: AscendingDescending

--------------------------------------------------------------------------------

3 posts • Page 1 of 1

Return to “Ask for Help (v1)”

Jump to
 * AutoHotkey Foundation
 * ↳   About This Community
 * ↳   Forum Issues
 * AutoHotkey (v2, current version)
 * ↳   Ask for Help (v2)
 * ↳   Gaming
 * ↳   Scripts and Functions (v2)
 * ↳   Gaming
 * ↳   Tutorials (v2)
 * ↳   Tips and Tricks
 * ↳   Wish List
 * ↳   Suggestions on Documentation Improvements
 * ↳   Bug Reports
 * ↳   AutoHotkey Development
 * ↳   AutoHotkey_H
 * ↳   Ask for Help
 * ↳   Development
 * ↳   Editors
 * ↳   Adventure IDE
 * ↳   Old Topics
 * ↳   AHK Studio
 * ↳   Notepad++
 * ↳   Pulovers Macro Creator
 * ↳   SciTE4AutoHotkey
 * ↳   Visual Studio Code
 * ↳   Announcements
 * ↳   General Discussion
 * AutoHotkey (v1.1 and older)
 * ↳   Ask for Help (v1)
 * ↳   Gaming Help (v1)
 * ↳   Scripts and Functions (v1)
 * ↳   Gaming Scripts (v1)
 * ↳   Tutorials (v1)
 * ↳   Tips and Tricks (v1)
 * General
 * ↳   Other Utilities & Resources
 * ↳   Other Programming Languages
 * ↳   C/C++
 * ↳   ASM
 * ↳   C#
 * ↳   KeySharp
 * ↳   Off-topic Discussion
 * ↳   RPA
 * Other languages
 * ↳   Looking for Volunteers in other languages
 * ↳   Deutsch (German)
 * ↳   Ich brauche Hilfe
 * ↳   Spiele
 * ↳   Skripte und Funktionen
 * ↳   Tutorials
 * ↳   Tooltime
 * ↳   Allgemeines
 * ↳   中文 (Chinese)
 * ↳   请求帮助
 * ↳   脚本函数
 * ↳   教程资料
 * ↳   相关工具
 * ↳   其他
 * ↳   Español (Spanish)
 * ↳   Pedir Ayuda
 * ↳   Automatización de Juegos
 * ↳   Scripts y Funciones
 * ↳   Tutoriales
 * ↳   Otras Utilidades y Recursos
 * ↳   General
 * ↳   Русский (Russian)
 * ↳   Помощь
 * ↳   Скрипты для Игр
 * ↳   Скрипты и библиотеки
 * ↳   Статьи и руководства
 * ↳   Прочие ресурсы и ПО.
 * ↳   Свободное общение
 * ↳   Français (French)
 * ↳   J'ai besoin d'aide
 * ↳   Scripts et Fonctions
 * ↳   Tutoriels
 * ↳   Autres Utilitaires et Ressources
 * ↳   Hors Sujet
 * ↳   Português (Portuguese)
 * ↳   Ajuda e Suporte Geral
 * ↳   Scripts e Funções
 * ↳   Tutoriais
 * ↳   Outras Ferramentas e Recursos
 * ↳   Outros Assuntos
 * ↳   한국어 (Korean)

 * Home Board index
 * 
 * All times are UTC-05:00
 * Delete cookies
 * The team
 * Contact us

Powered by phpBB® Forum Software © phpBB Limited

Privacy | Terms