Search found 3 matches

by Dest938572
28 Nov 2019, 10:16
Forum: Ask For Help
Topic: Space after WinActive in #If-statemen
Replies: 2
Views: 307

Space after WinActive in #If-statemen

Why do this example works even if an active window is not notepad.exe?

Code: Select all

#If, WinActive ("ahk_exe notepad.exe")
F3::
	MsgBox, 12312121 
return
If I remove the space after the word "WinActive" it works properly.
Is it a feature or a bug?
by Dest938572
04 Sep 2019, 10:08
Forum: Ask For Help
Topic: Pass variable to OnMessage Topic is solved
Replies: 2
Views: 360

Pass variable to OnMessage Topic is solved

Hello! I need to use some variables inside OnMessage handlers. Here is example: Why does myVar is empty? myVar = "hello world" Gui, New, hwndhGui AlwaysOnTop Resize GuiControl, Font, hwndhGui Gui, Show, H120 x700 y200 OnMessage(0x201, "WM_LBUTTONDOWN") return ;MouseClick handler WM_LBUTTONDOWN() { O...
by Dest938572
02 Jul 2019, 08:36
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 138
Views: 82298

Re: Get the URL of the current (active) browser tab

atnbueno wrote:
08 Jun 2014, 13:19

Short version: The code below finds out the URL of the current (active) browser tab for most of the modern browsers.
Awesome script, thank you Antonio.
It works perfect more than 5 years.

Go to advanced search