Opera browser

Get help with using AutoHotkey and its commands and hotkeys
Miccull
Posts: 1
Joined: 09 Jan 2018, 06:12

Opera browser

09 Jan 2018, 06:24

Code: Select all

SetTitleMatchMode,1
:*:z::
IfWinActive,ahk_class Opera.exe
{
	Loop
	{
		WinActivate
		SendPlay,{LAlt down}
		sleep 500
		SendPlay,{f}
	}
	Sendplay,{LAlt up}
}
else
MsgBox opera not open

Return
This is my current code . When i run it on opera page it shows me the text box and i can`t figure out why. Im new to autohotkey , can you point out my mistakes and make my script work ?
Im tired of having to do endless pressings of f while keeping the LAlt down because im playing Tribal wars.

P.S sorry for my english , hope it isnt so hard to understand what i meant
User avatar
noname
Posts: 509
Joined: 19 Nov 2013, 09:15

Re: Opera browser

09 Jan 2018, 06:45

Code: Select all

SetTitleMatchMode,1
:*:z::
IfWinActive ahk_exe Opera.exe
{
soundbeep 
}
else
MsgBox opera not open

Return
If you use an exe you need to use ahk_exe not ahk_class.

What are you trying to do because the rest of the code does not make sense to me. :)

update: ok is for a game i missed that ............. also you defined z as a hotstring not as hotkey .
soundcloud.com/user-32706894

Return to “Ask For Help”

Who is online

Users browsing this forum: agrout, Bing [Bot], Google [Bot], JoeWinograd, Schezza, teadrinker and 80 guests