ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: easily 'remote-start' Google-search from Google Sidebar

(1/1)

brotherS:
Hi,

you maybe know that I love the new, great Google Sidebar: http://desktop.google.com/en/ (improved again). I just miss tiny feature - back when I use the old Desktop Search I had a Google search field in my taskbar which I could jump to with Ctrl+g. Not possible anymore  :(

Now it looks like this:
DONE: easily 'remote-start' Google-search from Google Sidebar

So a tiny script for Ctrl+g would just need to place the cursor at -10 pixel from right side of screen and -10 pixel from bottom from screen and click the left mouse button.



--- ---;Google Sidebar search with Ctrl+g
;https://www.donationcoder.com/forum/index.php?topic=1252.0
^g::
[please fill with script, thank you]
;Google Sidebar search with Ctrl+g

brotherS:

--- ---;Google Sidebar search with Ctrl+g
;https://www.donationcoder.com/forum/index.php?topic=1252.0
^g::
if WinExist("ahk_class _GD_Sidebar")
{
    WinActivate
    MouseClick, left, 156, 1011
    return
}
;Google Sidebar search with Ctrl+g

I think I made it :D

Improvements welcome!

Carol Haynes:
I decided to give GDS a try but your script didn't work for me immeditaely. I have modified two things:


* If the bar is in autohide mode it moves the mouse to the left of the screen and waits for it to open
* I have put in different coordinates to suit my screen size (1280x1024)
;Google Sidebar search with Ctrl+g
;https://www.donationcoder.com/forum/index.php?topic=1252.0
^g::
if WinExist("ahk_class _GD_Sidebar")
{
    WinActivate
    MouseMove, 0,950   
    Sleep, 600
    MouseClick, left, 50, 950
    return
}
;Google Sidebar search with Ctrl+g
--- End quote ---

I wanted to find a better way of opening that hidden window but unfortunately the window doesn't have any title text to identify it by and all the commands I tried needed title text to unhide the window??? Anyone got a neater solution? 600ms is a bit long but it was the shortest period that seems to work consistently - the window opening speed depends on what else your system is doing at the time.

brotherS:
Yeah, I don't use autohide, but I guess you'll always need to adjust scripts like these to fit your desktop and Sidebar width. For example, I use the Windows taskbar on the left side (very 1337 ;)) and the GDSidebar on the right side of the screen.

Navigation

[0] Message Index

Go to full version