Search found 844 matches

by GEV
15 May 2020, 12:31
Forum: Ask For Help
Topic: GetKeyState not working as expected
Replies: 4
Views: 216

Re: GetKeyState not working as expected

What about this

Code: Select all

~*RButton Up::
If (A_PriorKey != "RButton")
	Send, {Esc}
return
by GEV
14 May 2020, 18:53
Forum: Ask For Help
Topic: Bring Calculator window to top Topic is solved
Replies: 9
Views: 424

Re: Bring Calculator window to top Topic is solved

It doesn't happen to me with Firefox.
by GEV
14 May 2020, 18:22
Forum: Ask For Help
Topic: Bring Calculator window to top Topic is solved
Replies: 9
Views: 424

Re: Bring Calculator window to top Topic is solved

WinActivate --> Remarks
Window titles and text are case sensitive

Code: Select all

IfWinNotExist Calculator
	Run calculator://
; WinWait Calculator, , 3
; If not ErrorLevel
WinActivate Calculator
by GEV
13 May 2020, 16:50
Forum: Ask For Help
Topic: Unable to use Send to send a windows key combination Topic is solved
Replies: 4
Views: 274

Re: Unable to use Send to send a windows key combination Topic is solved

If OBS_Studio is running with admin privileges, then AHK won't intercept the key presses.
Try to run the script as administrator.
by GEV
11 May 2020, 17:27
Forum: Ask For Help
Topic: Possible to re-open all windows & programs?
Replies: 7
Views: 439

Re: Possible to re-open all windows & programs?

You can open the recent items folder and choose which files you want re-open:

Code: Select all

RegRead, recent, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Recent
Run % recent
by GEV
09 May 2020, 16:05
Forum: Ask For Help
Topic: Opposite of WinMinimizeAll Topic is solved
Replies: 13
Views: 681

Re: Opposite of WinMinimizeAll Topic is solved

This is simpler and a bit faster on my system:

Code: Select all

GroupAdd, AllWindows
return

$F1:: WinRestore ahk_group AllWindows
by GEV
09 May 2020, 13:44
Forum: Ask For Help
Topic: Simplifying Remapped Custom Combinations
Replies: 2
Views: 192

Re: Simplifying Remapped Custom Combinations

Space::Control ; bind Space to be Control Space Up:: Send, {Ctrl up} ; release the Control key If GetKeyState("LShift","P") ; LShift+Space MsgBox, LShift+Space else If GetKeyState("Alt","P") ; Alt+Space MsgBox, Alt+Space else If (A_PriorKey = "Space") ; Space was pressed alone Send, {Space} return
by GEV
09 May 2020, 00:54
Forum: Ask For Help
Topic: Loop through YouTube windows
Replies: 7
Views: 314

Re: Loop through YouTube windows

Code: Select all

SetTitleMatchMode, 2
GroupAdd, YouTube_Chrome, YouTube ahk_exe chrome.exe

		RETURN	 ; === end of auto-execute section ===

$z:: GroupActivate, YouTube_Chrome, R
by GEV
09 May 2020, 00:19
Forum: Ask For Help
Topic: Loop through YouTube windows
Replies: 7
Views: 314

Re: Loop through YouTube windows

GroupActivate is what you need in this case.
by GEV
08 May 2020, 17:45
Forum: Ask For Help
Topic: Snap Window to edges everytime different program is launched
Replies: 1
Views: 164

Re: Snap Window to edges everytime different program is launched

https://autohotkey.com/board/topic/80644-how-to-hook-on-to-shell-to-receive-its-messages/ #Persistent SetBatchLines, -1 Process, Priority,, High Gui +LastFound hWnd := WinExist() DllCall( "RegisterShellHookWindow", UInt,hWnd ) MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" ) OnMessage( ...
by GEV
08 May 2020, 02:13
Forum: Ask For Help
Topic: MS Outlook ComObjActive Error: 0x800401E3
Replies: 3
Views: 285

Re: MS Outlook ComObjActive Error: 0x800401E3

Code: Select all

try objOutlook := ComObjActive("Outlook.Application")
See also Dealing with COM errors.
by GEV
07 May 2020, 17:17
Forum: Ask For Help
Topic: Prevent LWin opening Start Menu when pressed for too long, but keep modifying functionality
Replies: 4
Views: 287

Re: Prevent LWin opening Start Menu when pressed for too long, but keep modifying functionality

%A_ThisHotkey% has to be in curly braces in the Send command. I corrected it.
by GEV
07 May 2020, 16:48
Forum: Ask For Help
Topic: Modifiers Only as Hotkeys Without Losing Them Topic is solved
Replies: 2
Views: 202

Re: Modifiers Only as Hotkeys Without Losing Them Topic is solved

Code: Select all

~<#LCtrl::
	KeyWait LCtrl
	If (A_PriorKey = "LControl")
		Msgbox Switch to Left Desktop ;Send ^#{Left}
Return

~<#LAlt::
	KeyWait LAlt
	If (A_PriorKey = "LAlt")
		Msgbox Switch to Right Desktop  ;Send ^#{Right}
Return
by GEV
07 May 2020, 15:51
Forum: Ask For Help
Topic: Prevent LWin opening Start Menu when pressed for too long, but keep modifying functionality
Replies: 4
Views: 287

Re: Prevent LWin opening Start Menu when pressed for too long, but keep modifying functionality

Try #NoEnv #SingleInstance Force ; create an array/object of the keys you want combine with LWin: Keys := ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","1","2","3","4","5","6","7","8","9","0","F1","F2"] ;... ; create a hotkey once for each k...
by GEV
02 May 2020, 16:06
Forum: Ask For Help
Topic: shrink active window , just like what windowTop do
Replies: 4
Views: 356

Re: shrink active window , just like what windowTop do

Try this: #NoEnv #SingleInstance Force OnExit("ShowAll") SetTimer, Preview, 500 Return ; Press F1 to "shrink" the active window $F1:: If !IsWindow(WinExist("A")) return a_id := "" WinGet, a_id, ID, A WinSet, AlwaysOnTop, On, ahk_id %a_id% WinGetPos, Xa, Ya,,, A ; If !FileExist(A_Temp "\" a_id ".png"...
by GEV
01 May 2020, 19:13
Forum: Ask For Help
Topic: Pasting without losing selection
Replies: 11
Views: 711

Re: Pasting without losing selection

What about this

Code: Select all

^v::
	MouseMove, A_CaretX, A_CaretY, 0
	click down
	Send, ^v
	MouseMove, A_CaretX, A_CaretY, 0
	click up
return
by GEV
01 May 2020, 10:06
Forum: Ask For Help
Topic: AltGr up and down status
Replies: 5
Views: 244

Re: AltGr up and down status

Try ; AltGR down LControl & RAlt:: AltGR := true ; AltGR up LControl & RAlt Up:: AltGR := false ; If (A_PriorHotkey = "LControl & RAlt") ; or: If (A_PriorKey = "RAlt") ; AltGR was pressed alone Send, {Left} return ; AltGR + key #If (AltGR) ; AltGR+Del Del::a ; AltGR+a a::b ; ... #If
by GEV
01 May 2020, 03:24
Forum: Ask For Help
Topic: ? hotkey to toggle suspend & pause at the same time does not work? Topic is solved
Replies: 4
Views: 318

Re: ? hotkey to toggle suspend & pause at the same time does not work? Topic is solved

Code: Select all

^t::
	Suspend
	Pause
return

#If (A_IsSuspended)

	^t::
		Suspend, off	
		Pause, off	
	return

#If

Go to advanced search