Search found 771 matches

by GEV
15 Jul 2019, 16:30
Forum: Ask For Help
Topic: Make tab active Topic is solved
Replies: 6
Views: 431

Re: Make tab active Topic is solved

Not that I know of.
The hidden windows of class MozillaTaskbarPreviewClass are only present if this option is enabled.
by GEV
14 Jul 2019, 16:57
Forum: Ask For Help
Topic: Make tab active Topic is solved
Replies: 6
Views: 431

Re: Make tab active Topic is solved

If you have the option Show tab previews in the Windows taskbar enabled you can use e.g. F1:: DetectHiddenWindows, On If WinExist("Ask For Help - AutoHotkey Community - Mozilla Firefox ahk_class MozillaTaskbarPreviewClass") WinActivate else Run https://www.autohotkey.com/boards/viewforum.php?f=76 re...
by GEV
26 Jun 2019, 18:57
Forum: Ask For Help
Topic: Send Alt+Tab behaves differently on W7 and W10
Replies: 6
Views: 208

Re: Send Alt+Tab behaves differently on W7 and W10

I added another function to it to check whether the windows in the list are proper windows.
by GEV
26 Jun 2019, 18:13
Forum: Ask For Help
Topic: Send Alt+Tab behaves differently on W7 and W10
Replies: 6
Views: 208

Re: Send Alt+Tab behaves differently on W7 and W10

As far as I remember, the AltTab menu on Win7 includes the show-the-desktop option. Maybe that makes the difference. BTW I'm using this: F12:: AltTab() AltTab(){ list := "" WinGet, id, list Loop, %id% { this_ID := id%A_Index% IfWinActive, ahk_id %this_ID% continue WinGetTitle, title, ahk_id %this_ID...
by GEV
20 Jun 2019, 01:18
Forum: Scripts and Functions
Topic: MouseGestureL
Replies: 6
Views: 1290

Re: MouseGestureL

@@iPhilip, you don't need the original for testing my script. See my (first) edited answer.
by GEV
19 Jun 2019, 18:15
Forum: Scripts and Functions
Topic: MouseGestureL
Replies: 6
Views: 1290

Re: MouseGestureL

MG_Config.ahk ; MG_Config MG_AdNaviBG=000000 MG_AdNaviFG=FFFFFF MG_AdNaviFont=Meiryo MG_AdNaviMargin=14 MG_AdNaviNI=7F7F7F MG_AdNaviPaddingB=3 MG_AdNaviPaddingL=6 MG_AdNaviPaddingR=6 MG_AdNaviPaddingT=3 MG_AdNaviSize=12 MG_ExNaviBG=FFFFFF MG_ExNaviFG=000000 MG_ExNaviMargin=8 MG_ExNaviPadding=4 MG_E...
by GEV
19 Jun 2019, 18:13
Forum: Scripts and Functions
Topic: MouseGestureL
Replies: 6
Views: 1290

Re: MouseGestureL

Awesome script with a lot of very usefull functions. I'm using this simplified version in my main script: To test my version, run this script MAIN SCRIPT.ahk #NoEnv #SingleInstance Force SetWorkingDir %A_ScriptDir% ; ... #Include %A_ScriptDir%\MG_Config.ahk ; ... RETURN ; === end of auto-execute sec...
by GEV
24 May 2019, 05:36
Forum: Ask For Help
Topic: GroupActivate Last active window not working as expected. Topic is solved
Replies: 3
Views: 186

Re: GroupActivate Last active window not working as expected. Topic is solved

^u:: If WinActive("ahk_group MyGroup") GroupActivate, MyGroup, R else { list := "" ; windows are retrieved in order from topmost to bottommost: WinGet, id, list, ahk_group MyGroup Loop, %id% { this_ID := id%A_Index% WinActivate, ahk_id %this_ID% ; activate the most recently active window in this gr...
by GEV
24 May 2019, 05:21
Forum: Ask For Help
Topic: Open the script in npp and go to the error line Topic is solved
Replies: 2
Views: 197

Re: Open the script in npp and go to the error line Topic is solved

Try #IfWinActive,AHK_class #32770 ~LButton:: ControlGetText,Err,Static1,A If !InStr(Err, Error) Return WinGet pid, PID, A wmi := ComObjGet("winmgmts:") queryEnum := wmi.ExecQuery("" . "Select * from Win32_Process where ProcessId=" . pid) ._NewEnum() If queryEnum[process] { CommandLine := process.Com...
by GEV
31 Mar 2019, 13:42
Forum: Ask For Help
Topic: If script is pause.suspend Topic is solved
Replies: 7
Views: 432

Re: If script is pause.suspend Topic is solved

Code: Select all

^z::
	Suspend On
	MsgBox, Script has been paused/suspended
	Pause On
return

#If (A_IsPaused)

	^z::
		Suspend Off
		Pause Off
		MsgBox, Script has been unpaused/unsuspended
	return

#If
by GEV
31 Mar 2019, 10:43
Forum: Ask For Help
Topic: Sending ALT-TAB to switch between two WORD documents
Replies: 2
Views: 144

Re: Sending ALT-TAB to switch between two WORD documents

If you have pinned WORD to the taskbar, you can press Win+4 for example if WORD is the fourth icon on the taskbar, to switch between open WORD documents. Otherwise you can create a group in the auto-execute section (top of the script) using GroupAdd, WORD_Group, ahk_exe WINWORD.EXE and define a hotk...
by GEV
26 Mar 2019, 06:23
Forum: Ask For Help
Topic: Registry hack to change default text editor not working
Replies: 12
Views: 1208

Re: Registry hack to change default text editor not working

Restart the OS after pasting and look afterwards if the entry has changed.
by GEV
26 Mar 2019, 05:57
Forum: Ask For Help
Topic: Registry hack to change default text editor not working
Replies: 12
Views: 1208

Re: Registry hack to change default text editor not working

The above code is for a reg file.

Paste this in the Registry editor:
"C:\Program Files\Just Great Software\EditPad Pro 7\EditPadPro7.exe" "%1" %*
by GEV
26 Mar 2019, 05:29
Forum: Ask For Help
Topic: Registry hack to change default text editor not working
Replies: 12
Views: 1208

Re: Registry hack to change default text editor not working

@boardtc,
try

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command]
@="\"C:\\Program Files\\Just Great Software\\EditPad Pro 7\\EditPadPro7.exe\" \"%1\" %*"
by GEV
26 Mar 2019, 02:49
Forum: Ask For Help
Topic: Help with FileSelectFile check if contains space(s) Topic is solved
Replies: 4
Views: 328

Re: Help with FileSelectFile check if contains space(s) Topic is solved

FileSelectFile, SelectedFile, 3, , Open a file, Text Documents (*.txt; *.doc) if SelectedFile = MsgBox, You didn't select anything. else if (SubStr(SelectedFile, - 2) != "txt") MsgBox, You didn't select a text file. else { FileRead, SelectedFileContents, %SelectedFile% if !InStr(SelectedFileContent...
by GEV
26 Mar 2019, 02:12
Forum: Ask For Help
Topic: Problem with process and ahk exe
Replies: 6
Views: 284

Re: Problem with process and ahk exe

Code: Select all

^+k::
Process Close, Keystuff.exe
process, waitclose, Keystuff.exe, 6 ; or maybe:
; WinWaitClose, ahk_exe Keystuff.exe,, 6
if (errorlevel) ; if the command timed out
	msgbox,  Problem Closing KeyStuff!
else
	soundbeep
Return
by GEV
26 Mar 2019, 01:19
Forum: Ask For Help
Topic: Clipboard is not pasting Topic is solved
Replies: 9
Views: 562

Re: Clipboard is not pasting Topic is solved

^+!F12:: clipboard = ; start off empty to allow ClipWait to detect when the text has arrived. Send ^c ClipWait 2 ; wait max. 2 seconds for the clipboard to contain data If (!ErrorLevel) { clipboard = %clipboard% ; Convert any copied files, HTML, or other formatted text to plain text. Sleep, 300 ; o...
by GEV
24 Feb 2019, 16:50
Forum: Ask For Help
Topic: cheatsheet
Replies: 2
Views: 546

Re: cheatsheet

You can create Hotstrings within a script to print commands, functions, comments etc. within your script editor: #If WinActive("ahk_class Notepad++") :T*:frl::FileReadLine, OutputVar, Filename, LineNum :*:cgf:: ; ControlGetFocus SendInput, ( ; Retrieves which control of the target window has input f...
by GEV
23 Feb 2019, 17:55
Forum: Ask For Help
Topic: Disabling/Suppression of Touchpad On/Off Toggle Key Is Not Working
Replies: 2
Views: 266

Re: Disabling/Suppression of Touchpad On/Off Toggle Key Is Not Working

The first thing I do in such cases is to thoroughly clean the keyboard.

Go to advanced search