Search found 762 matches

by GEV
31 Mar 2019, 13:42
Forum: Ask For Help
Topic: If script is pause.suspend Topic is solved
Replies: 7
Views: 270

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: 93

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: 13
Views: 951

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: 13
Views: 951

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: 13
Views: 951

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: 210

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: 169

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: 315

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: 274

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: 203

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.
by GEV
20 Feb 2019, 01:16
Forum: Ask For Help
Topic: Windows 10 apps
Replies: 17
Views: 706

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: 125

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: 121

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: 147

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: 202

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: 398

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: 275

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: 243

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 ...

Go to advanced search