Search found 1648 matches

by JoeWinograd
19 Oct 2020, 21:28
Forum: Ask For Help
Topic: x y coordinates with two screens
Replies: 3
Views: 100

Re: x y coordinates with two screens

CoordMode is limited to only certain commands Correct. The script I'm using to test it out is OCR so it doesn't fall under any of those. I suspect it does. My guess is that you're going to move the mouse pointer to the X,Y coordinates of the upper left corner of a screen area containing the image t...
by JoeWinograd
18 Oct 2020, 14:16
Forum: Ask For Help
Topic: Trouble using variable in SoundSet Topic is solved
Replies: 6
Views: 125

Re: Trouble using variable in SoundSet Topic is solved

not something like "+3" or "-3" Well, you could put the plus or minus sign in the variable, such as: VolumeIncrement:="-10" ; volume down SoundSet,%VolumeIncrement% VolumeIncrement:="+10" ; volume up SoundSet,%VolumeIncrement% Those work fine, but it makes more sense, imo, to put the value without ...
by JoeWinograd
18 Oct 2020, 13:55
Forum: Ask For Help
Topic: Trouble using variable in SoundSet Topic is solved
Replies: 6
Views: 125

Re: Trouble using variable in SoundSet Topic is solved

Hi DSX, These two commands work fine (with proper values for the VolumeIncrement variable): SoundSet,-%VolumeIncrement% ; volume down SoundSet,+%VolumeIncrement% ; volume up Also, this command works to toggle the mute setting: SoundSet,+1,,Mute ; toggle mute You may be interested in this thread at t...
by JoeWinograd
17 Oct 2020, 19:18
Forum: Ask For Help
Topic: x y coordinates with two screens
Replies: 3
Views: 100

Re: x y coordinates with two screens

hishighness wrote:my question is who do I tell Autohotkey that I want x y to be based on Screen and not Window
Look at the CoordMode doc. Regards, Joe
by JoeWinograd
10 Oct 2020, 22:10
Forum: Ask For Help
Topic: Trying to use AHK for a custom IME
Replies: 6
Views: 123

Re: Trying to use AHK for a custom IME

One other thing...hover over the icons in the formatting toolbar (when writing a post) and you'll see what the BBCodes are. In the screenshot below, I was hovering over the Inline code tag (the letter c ): ahk forum btf.png That said, I rarely use the formatting toolbar, because I write my posts off...
by JoeWinograd
10 Oct 2020, 21:54
Forum: Ask For Help
Topic: Trying to use AHK for a custom IME
Replies: 6
Views: 123

Re: Trying to use AHK for a custom IME

don't know how you made the box around the text This forum uses BBCode tags . The tag for that is the letter c . Other popular tags are the letter b for bold , letter i for italics , and letter u for underlines , all of which can be combined . Read the doc on #Include , which explains everything, b...
by JoeWinograd
10 Oct 2020, 00:00
Forum: Ask For Help
Topic: Trying to use AHK for a custom IME
Replies: 6
Views: 123

Re: Trying to use AHK for a custom IME

run the AHK script Hi PDL, I see that this is your first post here, so let me say...Welcome Aboard! Link to the Github page Problem is, that's the doc, not the AHK script. The script is here: https://raw.githubusercontent.com/esrille/new-stickney/master/ahk/NewStickney.ahk Note that the script has ...
by JoeWinograd
07 Oct 2020, 02:33
Forum: Ask For Help
Topic: I just can't wrap my head around RegEx... Topic is solved
Replies: 12
Views: 309

Re: I just can't wrap my head around RegEx... Topic is solved

I just can't wrap my head around RegEx... In that case, you can use standard string functions. For starters, a function that reverses a string: StrReverse(Str) { RevStr:="" Loop,Parse,Str RevStr:=A_LoopField . RevStr Return RevStr } You may want to use that in the future, so put it in your AHK #Inc...
by JoeWinograd
05 Oct 2020, 14:31
Forum: Ask For Help
Topic: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?
Replies: 9
Views: 291

Re: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?

How does it fail? Hi Nextron, The monitor numbers are confusing because of the way Windows assigns them (and Display 1 is disconnected). Here's a summary based on the three screenshots in my initial post: Display 2 (Primary) M=1 Alt+Ctrl+1 (and Alt+Ctrl+0) Display 3 (Extended) M=2 Alt+Ctrl+2 Displa...
by JoeWinograd
04 Oct 2020, 20:39
Forum: Ask For Help
Topic: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?
Replies: 9
Views: 291

Re: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?

Hi gregster,

Update on my last post. I replaced both occurrences of this:

MouseMove,%X%,%Y%

With this:

DllCall("SetCursorPos","int",X,"int",Y)

Unfortunately, same result. But thanks for the idea...was worth a try. Regards, Joe
by JoeWinograd
04 Oct 2020, 13:37
Forum: Ask For Help
Topic: "Normal" mouse wrapping for adjacent monitors set to a stacked arrangement in PC settings Topic is solved
Replies: 3
Views: 973

Re: "Normal" mouse wrapping for adjacent monitors set to a stacked arrangement in PC settings Topic is solved

script which moved the cursor based on its relative height/width when transitioning between monitors instead of absolute coordinates Hi Nextron (or AhkeyDokey or anyone who wants to jump in), I was searching the forum for help with this question that I posted yesterday: Move mouse to center of moni...
by JoeWinograd
04 Oct 2020, 11:54
Forum: Ask For Help
Topic: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?
Replies: 9
Views: 291

Re: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?

I have only two monitors Hi gregster, Even with only two monitors you can see the problem. Stack them vertically...or just move one of them down much lower than the other...the script will fail. DllCall("SetCursorPos", "int", 100, "int", 400) ; The first number is the X-coordinate and the second is...
by JoeWinograd
04 Oct 2020, 10:45
Forum: Ask For Help
Topic: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?
Replies: 9
Views: 291

Re: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?

which coords do you get Hi just me, OK, ran this script on all three configs: CoordMode,Mouse,Screen ; coordinates relative to entire desktop ResultsFile:=A_Temp . "\MonitorCoordinates.txt" FileDelete,%ResultsFile% ; delete file from previous run SysGet,NumMons,MonitorCount ; get number of monitors...
by JoeWinograd
04 Oct 2020, 10:22
Forum: Ask For Help
Topic: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?
Replies: 9
Views: 291

Re: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?

shortened Hi Rohwedder, Thanks for the post, but I intentionally do not "shorten" code. I prefer clarity over brevity in my code. Makes it easier for others to understand and maintain my code..easier even for me a year later. :) I do not like to cram as much as possible into a single line. I always...
by JoeWinograd
03 Oct 2020, 23:34
Forum: Ask For Help
Topic: Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?
Replies: 9
Views: 291

Move mouse to center of monitor in multi-monitor configuration - CoordMode relative to specific monitor?

Hi Folks, My goal is to provide a hotkey that moves the mouse to the center of the monitor for each monitor in a multi-monitor config. For example: Alt+Ctrl+1 ==> move mouse to monitor 1 Alt+Ctrl+2 ==> move mouse to monitor 2 Alt+Ctrl+3 ==> move mouse to monitor 3 Alt+Ctrl+4 ==> move mouse to monito...
by JoeWinograd
28 Sep 2020, 11:54
Forum: Ask For Help
Topic: Is it possiible captured image convert to text?
Replies: 6
Views: 218

Re: Is it possiible captured image convert to text?

Hi Dan,

My question from a few years may help you:
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=36347

Read through it and you'll find that there is a working solution based on the Tesseract OCR engine. Regards, Joe
by JoeWinograd
22 Sep 2020, 18:26
Forum: Ask For Help
Topic: WinExist Doesn't Work For Different Drive Letters
Replies: 3
Views: 115

Re: WinExist Doesn't Work For Different Drive Letters

zhotkey wrote:This logic works as expected for the C: drive
I'm certain that is not true. It will not work (whether C: drive or M: drive or any drive) with the quote marks in there. Regards, Joe
by JoeWinograd
21 Sep 2020, 19:31
Forum: Scripts and Functions
Topic: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit
Replies: 77
Views: 44447

Re: [LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit

TrayIcon_Move is not persisting between reboots TrayIcon_Move does exactly what its name says...moves the tray icons. The fact that they don't necessarily stay in the same position after a reboot has nothing to do with TrayIcon_Move ...that's a Windows issue. If you move the icons manually via drag...
by JoeWinograd
16 Sep 2020, 21:05
Forum: Ask For Help
Topic: Don't Output Hotstring's Ending Character
Replies: 2
Views: 45

Re: Don't Output Hotstring's Ending Character

Another method is not to require the ending character in the first place (so that there's no need to omit it):

Code: Select all

:*:btw::by the way
Doc for it is at the same link that gregster posted. Regards, Joe

Go to advanced search