Search found 751 matches

by GEV
20 Feb 2019, 01:16
Forum: Ask For Help
Topic: Windows 10 apps
Replies: 11
Views: 220

Re: Windows 10 apps

To clearly identify such a window, combine SetTitleMatchMode 2 multiple criteria within the WinTitle parameter WinText e.g.: SetTitleMatchMode 2 ; If WinActive("WinTitle ahk_class WinClass", "WinText", "ExcludeTitle", "ExcludeText") If WinActive("Photos ahk_class ApplicationFrameWindow", "Photos")
by GEV
19 Feb 2019, 05:05
Forum: Ask For Help
Topic: How to get text from another script's LIstView?
Replies: 2
Views: 52

Re: How to get text from another script's LIstView?

Try ControlGetText or WinGetText.
by GEV
19 Feb 2019, 01:31
Forum: Ask For Help
Topic: Is there any way to make menus to appear near where I'm typing instead where my mouse pointer is?
Replies: 1
Views: 59

Re: Is there any way to make menus to appear near where I'm typing instead where my mouse pointer is?

A_CaretX and A_CaretY are the current X and Y coordinates of the caret (text insertion point). The coordinates are relative to the active window unless CoordMode is used to make them relative to the entire screen. If there is no active window or the caret position cannot be determined, these variab...
by GEV
18 Feb 2019, 05:53
Forum: Ask For Help
Topic: Help, please (basically I want to change the behavior of a key to "reproduce" to "reproduce/pause")
Replies: 2
Views: 65

Re: Help, please (basically I want to change the behavior of a key to "reproduce" to "reproduce/pause")

F6:: Status := marcador.Status.RunningState If Status = 0 ; paused marcador.Resume Else If Status = 2 ; reading marcador.Pause Else { clipboard := "" Send ^c ClipWait, 0.5 say := clipboard marcador := ComObjCreate("SAPI.SpVoice") try marcador.Voice := marcador.GetVoices().Item(3) marcador.Speak(say...
by GEV
14 Feb 2019, 09:32
Forum: Ask For Help
Topic: How to make KeyWait ignore another hotkey? Topic is solved
Replies: 3
Views: 111

Re: How to make KeyWait ignore another hotkey? Topic is solved

Try Send_B := true $a:: If (Send_B) { Send, B{Enter} ToolTip, A was pressed`, B was sent. } else Send, a return $1:: Send_B := false ToolTip, Please press A KeyWait, a, D Send, {BackSpace}{Space 5} ToolTip Send_B := true return $2:: Send_B := false ; ... ToolTip Send_B := true return ; ...
by GEV
13 Feb 2019, 03:54
Forum: Ask For Help
Topic: Using mouse buttons to Open, Close and Cycle tabs in Chrome Topic is solved
Replies: 7
Views: 223

Re: Using mouse buttons to Open, Close and Cycle tabs in Chrome Topic is solved

Try also

Code: Select all

~RButton & WheelUp:: 
	NoContextMenu := true
	Send ^{PgUp}
return

~RButton & WheelDown::
	NoContextMenu := true
	Send ^{PgDn}
return

#If (NoContextMenu)

	~*RButton Up:: 
		Send {Esc}
		NoContextMenu := false
	return

#If
by GEV
11 Feb 2019, 17:26
Forum: Ask For Help
Topic: How to build Capslock override? Topic is solved
Replies: 4
Views: 141

Re: How to build Capslock override? Topic is solved

Forget it and try this: #SingleInstance Force #Persistent SetCapsLockState, Off SetTimer, NotepadCapslock, 500 ; Checks for Notepad active every half second return NotepadCapslock: IfWinActive, ahk_exe notepad.exe { SetTimer, NotepadCapslock, off SetCapsLockState, On WinWaitNotActive, ahk_exe notepa...
by GEV
11 Feb 2019, 15:06
Forum: Ask For Help
Topic: Code Error what did I do wrong?
Replies: 3
Views: 116

Re: Code Error what did I do wrong?

$w:: Keywait, w, T0.5 If ErrorLevel ;w key was pressed for more than .5 seconds { Process, Exist, WINWORD.EXE ;msgbox errorLevel `n%errorLevel% If errorLevel = 0 Run, WINWORD.EXE else { IfWinExist, Microsoft Office Word, OK ;checks to see if the annoying "do you want to continue searching from the ...
by GEV
02 Feb 2019, 08:08
Forum: Ask For Help
Topic: Order of pressing modifier keys affects the result
Replies: 51
Views: 1558

Re: Order of pressing modifier keys affects the result

Could you test the hotkeys with another keyboard?
Some keyboards can't handle particular combinations of three keys, which is known as "key jamming and ghosting".
https://en.wikipedia.org/wiki/Rollover_(key)
by GEV
01 Feb 2019, 13:08
Forum: Ask For Help
Topic: Hi! Need some help - simple script
Replies: 5
Views: 166

Re: Hi! Need some help - simple script

I'm looking for is a script that would allow me to use the right shift as an up arrow when pressed but retain the shift function if held . ; Release RShift after pressing it to send Up RShift Up:: If (A_PriorKey = "RShift") ; If RShift was pressed alone Send, {Up} ; up arrow return ; https://autoho...
by GEV
01 Feb 2019, 12:12
Forum: Ask For Help
Topic: Hi! Need some help - simple script
Replies: 5
Views: 166

Re: Hi! Need some help - simple script

Try
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=61412&p=260190#p260190

Replace
Send, #{Space}
with
Send, {Up} ; up arrow
by GEV
01 Feb 2019, 09:59
Forum: Ask For Help
Topic: [Resolved] Problem with Script. Topic is solved
Replies: 2
Views: 142

Re: Problem with Script. Topic is solved

Code: Select all

Loop
{
	IfWinActive website.com - Mozilla Firefox
	{
	   GuiControlGet, Db, , Button1
	   GuiControlGet, Rb, , Button2
	   ...
	   Sleep 50
	}
}
You can't make it run itself in the background because of GetKeyState.
by GEV
01 Feb 2019, 09:12
Forum: Ask For Help
Topic: FileCreateDir problem Topic is solved
Replies: 2
Views: 113

Re: FileCreateDir problem Topic is solved

#If WinActive("ahk_class CabinetWClass") ; explorer F1:: for window in ComObjCreate("Shell.Application").Windows { fullpath := "" try fullpath := window.Document.Folder.Self.Path If WinActive("ahk_id " . Window.HWND) break } ; MsgBox "%fullpath%" window := "" WinGetActiveTitle, MyWin v := SubStr(My...
by GEV
31 Jan 2019, 03:17
Forum: Ask For Help
Topic: 'Hotkey' Command has no effect
Replies: 3
Views: 92

Re: 'Hotkey' Command has no effect

To follow gregster's advice:

Place

the hotkey creation
Hotkey, ^!z, MyLabel
within

and
MyLabel:
outside

the auto-execute section.
by GEV
30 Jan 2019, 07:03
Forum: Ask For Help
Topic: Change AHK Icon in TaskBar
Replies: 1
Views: 89

Re: Change AHK Icon in TaskBar

A workaround could be to run the script compiled, by adding this to the auto-execute section:

Code: Select all

If !A_IsCompiled
{
    RunWait ahk2exe.exe /in "%A_ScriptFullPath%" /icon myicon.ico
    SplitPath, A_ScriptFullPath,,,, name_no_ext
    Run, %A_ScriptDir%\%name_no_ext%.exe
    ExitApp
}
by GEV
30 Jan 2019, 05:21
Forum: Ask For Help
Topic: Prevent Hotstring Expanding when Type Hotstring + Number + EndChar
Replies: 2
Views: 89

Re: Prevent Hotstring Expanding when Type Hotstring + Number + EndChar

GavinPen wrote:
30 Jan 2019, 05:09
::gt::get
when I type 'gt1' then a space, the expansion is triggered, and gt1 is overwritten by 'get' (actually by 'gget').
This is not the normal behavior (try it in a stand-alone script). Something else is wrong in your script.
by GEV
28 Jan 2019, 05:50
Forum: Ask For Help
Topic: using wildcards in WinActivate function?
Replies: 2
Views: 97

Re: using wildcards in WinActivate function?

See
https://autohotkey.com/docs/commands/SetTitleMatchMode.htm

If you don't understand something, feel free to ask.

Go to advanced search