Search found 3 matches

by Dest938572
28 Nov 2019, 10:16
Forum: Ask for Help (v1)
Topic: Space after WinActive in #If-statemen
Replies: 2
Views: 407

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 (v1)
Topic: Pass variable to OnMessage Topic is solved
Replies: 2
Views: 606

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 (v1)
Topic: Get the URL of the current (active) browser tab
Replies: 196
Views: 138856

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