Search found 217 matches

by Getfree
04 Nov 2019, 22:28
Forum: Ask For Help
Topic: Send keys into inactive Browser
Replies: 12
Views: 640

Re: Send keys into inactive Browser

It's not possible to send keyboard or mouse input to an unfocused Chrome window. Some time ago I gave a short explanation of why this limitation exist on Chrome and not other programs. https://www.autohotkey.com/boards/viewtopic.php?f=76&t=67985&p=292422#p292422 The only way to simulate keypresses o...
by Getfree
02 Nov 2019, 16:07
Forum: Ask For Help
Topic: Just looking for a simple toggle feature (on/off)
Replies: 4
Views: 511

Re: Just looking for a simple toggle feature (on/off)

I see. Then may be something like this:

Code: Select all

enabled:= false

~$LButton::
	if( enabled ){
		KeyWait LButton, T0.0
		If ErrorLevel
			While GetKeyState("LButton", "P"){
				Click
				Sleep 25
			}
	}
return

!k:: enabled := !enabled
by Getfree
01 Nov 2019, 17:46
Forum: Ask For Help
Topic: Just looking for a simple toggle feature (on/off)
Replies: 4
Views: 511

Re: Just looking for a simple toggle feature (on/off)

Did you try something like this?

Code: Select all

~k:: Suspend
by Getfree
31 Oct 2019, 14:57
Forum: Ask For Help
Topic: Erasing a specific cookie from google chrome with AHK?
Replies: 3
Views: 473

Re: Erasing a specific cookie from google chrome with AHK?

Just create a bookmark with this URL: javascript:void(document.cookie = ' cookie_name =; Max-Age=-99999999; path= / ') The red parts must match exactly the cookie you want to delete. This is a called a "Bookmarklet" by the way. Whenever you click that bookmark while being on the page that contains t...
by Getfree
30 Oct 2019, 23:59
Forum: Ask For Help
Topic: Autohotkey for Mac
Replies: 27
Views: 39009

Re: Autohotkey for Mac

I'm not talking about automation tools in general. I'm talking about AHK only. The AutoHotkey library is not portable. Some functions in it are, but many others are not. Now, I you only seek partial compatibility between versions of AHK, then that's indeed possible but you'll only create chaos with ...
by Getfree
30 Oct 2019, 22:58
Forum: Ask For Help
Topic: Autohotkey for Mac
Replies: 27
Views: 39009

Re: Autohotkey for Mac

Forget about the language. AHK is a library of functions and objects. For example: - the DllCall function - COM objects - windows class names - pointer sizes on different platforms - ansi vs unicode strings - the Send function with its different modes and quirks - the keyboard and mouse hooks - clip...
by Getfree
30 Oct 2019, 18:52
Forum: Ask For Help
Topic: Autohotkey for Mac
Replies: 27
Views: 39009

Re: Autohotkey for Mac

Unfortunately there's no way to implement a version of AHK for Mac. Its implementation is way too tied to the Windows API. You would have to emulate so much about the Windows API inside Mac OS that you would end up with an emulation layer similar to Wine . But we already know that such an emulation ...
by Getfree
29 Oct 2019, 15:27
Forum: Ask For Help
Topic: Chrome spicific Tab size Topic is solved
Replies: 3
Views: 413

Re: Chrome spicific Tab size Topic is solved

Chrome extensions are much better tools for this sort of tasks than AHK is. For example: Tab Layouts You can arrange your tabs into layouts on separate windows in a click. Tile Tabs WE You can take tabs from parent windows and arrange them in layouts of tiled sub-windows. AutoControl Shortcut Manage...
by Getfree
22 Oct 2019, 14:16
Forum: Ask For Help
Topic: Calling a vbscript/WSH, that does old fashioned sendkeys, and getting out of the way
Replies: 4
Views: 352

Re: Calling a vbscript/WSH, that does old fashioned sendkeys, and getting out of the way

Can you please show your shortcut command line.
Is it something like this? cscript path\to\my\script.vbs

Also, can you show the AHK script you are using to run that .vbs script.
by Getfree
22 Oct 2019, 14:04
Forum: Ask For Help
Topic: Partial web automation - keyboard shortcuts
Replies: 4
Views: 348

Re: Partial web automation - keyboard shortcuts

There are myriads of shortcut managers that do this on Chrome and other browsers. Just google " shortcut manager for <browser_name> ". If you want a recommendation, use this one: AutoControl Shortcut Manager It can redefine Chrome's native shortcuts (like F1 in your case). Otherwise, just search for...
by Getfree
19 Oct 2019, 12:43
Forum: Ask For Help
Topic: How do I select first 10 messages in a folder in Gmail for Window 10
Replies: 2
Views: 168

Re: How do I select first 10 messages in a folder in Gmail for Window 10

You want to select those messages and then do what with them? This task takes only two clicks (a click on the first message, and then SHIFT+click on the 10th message). Why would you need to automate this? Unless you also want to automate what you'll do next with those messages. We need more context....
by Getfree
01 Oct 2019, 08:10
Forum: Ask For Help
Topic: Ctrl+W doesn't work after Chrome browser is focused Topic is solved
Replies: 5
Views: 341

Re: Ctrl+W doesn't work after Chrome browser is focused Topic is solved

I wish more people knew about Chrome extensions. They would save countless ours of tedious coding by using the right tools for the job. What you wanted is Ctrl + G to copy the selected text and then open a google search for that text. I do something like that as well. You can set that up in 10 secon...
by Getfree
30 Sep 2019, 20:15
Forum: Ask For Help
Topic: Push microphone on google.com
Replies: 1
Views: 144

Re: Push microphone on google.com

It depends on how you are opening that URL (which AHK library or technique you are using).

It's better if you post your script and indicate the place in the code where you want to click the mic button.
by Getfree
26 Sep 2019, 13:44
Forum: Ask For Help
Topic: Help with a macro Topic is solved
Replies: 2
Views: 140

Re: Help with a macro Topic is solved

You have to use {Blind} mode.
Read about it here: https://www.autohotkey.com/docs/commands/Send.htm
by Getfree
26 Sep 2019, 11:44
Forum: Ask For Help
Topic: Interacting with IE with COM Interface and Java Script
Replies: 24
Views: 1333

Re: Interacting with IE with COM Interface and Java Script

Assuming your web browser control is in the variable wb, any of these two lines should work:

wb.document.frames["application"].getElementById("USERNAME.DUMMY.DUMMY").value := "Mary"

wb.document.parentWindow.frames["application"].getElementById("USERNAME.DUMMY.DUMMY").value := "Mary"
by Getfree
23 Sep 2019, 14:07
Forum: Ask For Help
Topic: How to wait for specific tab to be opened before performing action
Replies: 6
Views: 218

Re: How to wait for specific tab to be opened before performing action

Whenever a specific window is opened? Or whenever a specific tab is opened? The difference is important. What if the window/tab is not focused? Does your script work on unfocused windows or inactive tabs? It really depends on what you want to do with that window/tab/webpage. Some operations will wor...
by Getfree
22 Sep 2019, 23:04
Forum: Ask For Help
Topic: Right click and drag broken
Replies: 14
Views: 993

Re: Right click and drag broken

When you hover your mouse on the "Trigger" pane (the left side of the shortcut), you can see a button that says + Condition.
There you can choose where/when the trigger will work.
by Getfree
22 Sep 2019, 19:20
Forum: Ask For Help
Topic: Can Windows or the active program tell the difference between AHK and real keypresses?
Replies: 4
Views: 469

Re: Can Windows or the active program tell the difference between AHK and real keypresses?

Programs are, in fact, able to tell the difference between physical keystrokes and injected keystrokes. Whether a program cares to check that, is another story. Most program don't mind whether keystrokes are real or simulated. Those that do mind, like games, will ignore injected keystrokes entirely....
by Getfree
22 Sep 2019, 16:32
Forum: Ask For Help
Topic: Right click and drag broken
Replies: 14
Views: 993

Re: Right click and drag broken

Well, that's when things get complicated. Now you have to decide whether to block the right button depending on whether you moved the mouse AFTER pressing the button. This is, of course, impossible to do because the pre-condition for blocking the button is in the future. So, you have to simulate the...

Go to advanced search