Search found 20 matches

by timg11
14 Apr 2020, 08:23
Forum: Ask For Help
Topic: How to maintain focus on a dialog during text entry?
Replies: 1
Views: 199

How to maintain focus on a dialog during text entry?

I use WinActivate and Keywait to allow the user to enter arbitrary text into a dialog. Keywait passes through the keystrokes into the dialog until triggered by Enter, and then the script resumes and the Enter is sent to terminate the dialog. WinActivate, SomeDialog WinSet, Top ,, SomeDialog KeyWait,...
by timg11
27 Mar 2020, 08:50
Forum: Ask For Help
Topic: Winmove will not resize some windows
Replies: 7
Views: 450

Re: Winmove will not resize some windows

My script is a hotkey that runs on startup in AutoHotkey.ahk. #!h:: ; sHrink active window to 1/2 screen size if not A_IsAdmin { MsgBox, 4144, Not Admin , 1 } SysGet, S_MonDim, Monitor WinGetTitle, WinTitle, A WinGetPos, MyX,MyY, WWidth, WHeight, A WinRestore, %WinTitle% ; unmaximize if maximized Ha...
by timg11
04 Mar 2020, 11:13
Forum: Ask For Help
Topic: Winmove will not resize some windows
Replies: 7
Views: 450

Re: Winmove will not resize some windows

This script is a hotkey: #!h:: ..... It runs from Windows-Alt-H, and is executed from the authohotkey.ahk script that loads at startup. So I need to make that script administrator? Change the shortcut in "C:\Users\Me\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" to administrator?
by timg11
03 Mar 2020, 19:17
Forum: Ask For Help
Topic: Winmove will not resize some windows
Replies: 7
Views: 450

Re: Winmove will not resize some windows

AHK is auto run at startup. How do I tell if it is run as admin or not?
by timg11
03 Mar 2020, 15:02
Forum: Ask For Help
Topic: Winmove will not resize some windows
Replies: 7
Views: 450

Winmove will not resize some windows

I'm defining a hotkey to reduce window size by 1/2. When moving primary monitor to high-res, Windows doesn't handle DPI scaling very well and many windows end up huge. This code works for some windows (Firefox for example), but it doesn't work for Windows Explorer windows. Why? Debugging MsgBox show...
by timg11
22 Feb 2020, 11:54
Forum: Forum Issues
Topic: Slow forum
Replies: 88
Views: 15054

Re: Slow forum

Still getting 2-3 minute delay then timeout. Is it some interaction with Cloudflare? Retry for a live version This page (https://www.autohotkey.com/boards/posting.php?mode=reply&f=76&t=72692) is currently offline. However, because the site uses Cloudflare's Always Online™ technology you can continue...
by timg11
22 Feb 2020, 11:45
Forum: Forum Issues
Topic: Slow forum
Replies: 88
Views: 15054

Re: Slow forum

Still getting 2-3 minute delay then timeout. Is it some interaction with Cloudflare?
by timg11
22 Feb 2020, 11:37
Forum: Ask For Help
Topic: Click doesn't work with variables
Replies: 5
Views: 367

Re: Click doesn't work with variables

Here's a larger block of the code: ; Click 300,575 loop, 5 { PixelGetColor, Pxcolor, %PsX%, %PsY% FileAppend, %A_YYYY%-%A_MM%-%A_DD% -------- Color:%Pxcolor% X:%PsX% Y:%PsY%`n, C:\data\ahk-log.txt if ( Pxcolor < 0xFFFFFF) { MouseMove PsX, PsY Click FileAppend, %A_YYYY%-%A_MM%-%A_DD% -------------- C...
by timg11
21 Feb 2020, 09:01
Forum: Ask For Help
Topic: Click doesn't work with variables
Replies: 5
Views: 367

Re: Click doesn't work with variables

Note: The code fragments above that set values for PxX and PXy are preceded by this statement that sets GPwidth and GPheight

Code: Select all

 WinGetPos, Xpos, Ypos, GPwidth, GPheight, WindowTitle
by timg11
20 Feb 2020, 10:20
Forum: Ask For Help
Topic: Click doesn't work with variables
Replies: 5
Views: 367

Click doesn't work with variables

This code works: Click 300,575 This code does not work. The click never happens. I have logged PsX and PsY to a file, and those variables contain the correct values. PsX := GPwidth // 2 ; middle from left PsY := ( GPheight - 17) ; from bottom Click %PsX%, %PsY% FileAppend, %A_YYYY%-%A_MM%-%A_DD% ---...
by timg11
13 Sep 2019, 17:07
Forum: Ask For Help
Topic: Using ImageSearch or PixelSearch with ClassNN: Internet Explorer_Server1
Replies: 1
Views: 384

Using ImageSearch or PixelSearch with ClassNN: Internet Explorer_Server1

I'm using Autohotkey Version 1.1.30.03 on Windows 10 enterprise, 64 bit, version 1809 I'm trying to click on a dialog that is (apparently) built on Internet Explorer. It has a titlebar and ahk_exe from the host application, but when the mouse is anywhere in the dialog's window, Window Spy shows "Con...
by timg11
03 Feb 2019, 14:34
Forum: Forum Issues
Topic: Forum database has been hacked?
Replies: 2
Views: 1005

Forum database has been hacked?

I use a unique email address for each forum I sign up in.
I received a phishing scam email invoice from a criminal posing as "Apple Payment" at the email address I use for this forum.
Possibly your member database has been compromised?
by timg11
15 May 2018, 20:37
Forum: Ask For Help
Topic: Activating an application from the tray in Windows 10
Replies: 1
Views: 492

Activating an application from the tray in Windows 10

I'm running AutoHotKey v1.1.28.0 on Windows 10 /64. This post from a few year ago shows an example of exactly what I want to do: Open the window of an application that is running, but minimized to the Tray. I copied in the text for the TrayIcons function into my autohotkey.ahk and adjusted the hotke...
by timg11
26 Feb 2018, 21:53
Forum: Ask For Help
Topic: Script used to work, now doesn't although unchanged
Replies: 1
Views: 464

Script used to work, now doesn't although unchanged

I developed a script years ago to fix the problems with Eudora and Gmail certificates. It worked for a long time, but something (changes to windows?) has caused it to no longer work. Here it is: #z:: WinActivate, ahk_class EudoraMainWindow Send {Alt Down}tP{Alt Up} ; Alt-T, P Personalities Window Sl...
by timg11
24 Jan 2018, 09:48
Forum: Ask For Help
Topic: "Send" function no longers inserts into Firefox
Replies: 5
Views: 959

Re: "Send" function no longers inserts into Firefox

Hi, Here is the code that I have been running for several years without issue. This is a snippet out of a larger WinWait block that automatically handles various "pop up" windows. The general structure of the entire routine is this: Loop { SetTitleMatchMode, RegEx WinWait, (--regular-expression-matc...
by timg11
22 Jan 2018, 22:17
Forum: Ask For Help
Topic: "Send" function no longers inserts into Firefox
Replies: 5
Views: 959

Re: "Send" function no longers inserts into Firefox

I have a startup shortcut to start AutoHotkey at boot. It has never needed any elevation before. Just to see if it made any difference, I quit AutoHotKey, and was going to re-start it with elevation from the start menu. However, now when I start it (with or without elevation), I get this error: Auto...
by timg11
22 Jan 2018, 16:22
Forum: Ask For Help
Topic: "Send" function no longers inserts into Firefox
Replies: 5
Views: 959

"Send" function no longers inserts into Firefox

I have a number of autohotkey shortcuts such as: #!a:: Send MyString These have worked reliably for a long time. Suddenly, they have no effect in Firefox? If I place the cursor in a firefox field, and press the shortcut combination, nothing happens. If I open Notepad and press the same shortcut comb...
by timg11
06 Oct 2017, 12:07
Forum: Ask For Help
Topic: Winactivate - inconsistent results between computers
Replies: 4
Views: 879

Re: Winactivate - inconsistent results between computers

Thanks for the reply. I tried: #!x:: WinActivate TheProgram WinWaitActive TheProgram Send somekeys... .... Return The function works once, and activates the window. But it appears no keys are sent. After that, the function does nothing until the script is reloaded. I put a MsgBox after each statemen...
by timg11
06 Oct 2017, 08:16
Forum: Ask For Help
Topic: Winactivate - inconsistent results between computers
Replies: 4
Views: 879

Winactivate - inconsistent results between computers

I have a script that runs on two different Windows 10 / 64 computers, and is interacting with the same application on both. Meta-example: #!x:: WinActivate TheProgram Send somekeys... .... Return One one computer, the hotkey script using WinActivate works fine. On the other system, the first time th...
by timg11
10 Dec 2016, 14:53
Forum: Ask For Help
Topic: WinExist not recognizing Outlook pop-up
Replies: 4
Views: 1024

Re: WinExist not recognizing Outlook pop-up

@Guest, thanks for the suggestion. Unfortunately it does not work. I edited my script and inserted your code. I got the same result. The window appears, but AutoHotKey is not triggered to send the keys. I kept playing around, and found that it will work if I remove the ahk_class qualifier. I was wor...

Go to advanced search