Search found 1592 matches

by JoeWinograd
22 Sep 2020, 18:26
Forum: Ask For Help
Topic: WinExist Doesn't Work For Different Drive Letters
Replies: 3
Views: 96

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: 76
Views: 39430

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

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
by JoeWinograd
15 Sep 2020, 17:12
Forum: Ask For Help
Topic: Not sure how "if WinActive" works Topic is solved
Replies: 10
Views: 101

Re: Not sure how "if WinActive" works Topic is solved

Hi BB, You need to learn about blocks: https://www.autohotkey.com/docs/commands/Block.htm The code that you posted will execute only the one instruction after the If WinActive statement in the True path because you haven't enclosed the others in braces (to make it a block). So, that code should be t...
by JoeWinograd
07 Sep 2020, 03:11
Forum: AutoHotkey v2 Development
Topic: Syntax for AHK V2 documentation not valid according to compiler Topic is solved
Replies: 13
Views: 485

Re: Syntax for AHK V2 documentation not valid according to compiler Topic is solved

JamesR404 wrote:Thanks for confirming the bug and explaining it so well @JoeWinograd , and coming up with the workaround.
You're welcome, James, but to be clear...and give credit where credit is due...it is TAC109 who came up with the work-around...all I did was test it. Regards, Joe
by JoeWinograd
06 Sep 2020, 14:00
Forum: AutoHotkey v2 Development
Topic: Syntax for AHK V2 documentation not valid according to compiler Topic is solved
Replies: 13
Views: 485

Re: Syntax for AHK V2 documentation not valid according to compiler Topic is solved

I've posted a new release of Ahk2Exe here which fixes this problem. Hi TAC, Just a quick note to let you know that I tested the new release of Ahk2Exe...worked perfectly in fixing the problem! I had a vanilla folder structure of the current V2 (2.0-a122-f595abc2 U64) and copied the new Ahk2Exe.exe ...
by JoeWinograd
05 Sep 2020, 17:13
Forum: AutoHotkey v2 Development
Topic: Syntax for AHK V2 documentation not valid according to compiler Topic is solved
Replies: 13
Views: 485

Re: Syntax for AHK V2 documentation not valid according to compiler Topic is solved

The circumvention is to copy AutoHotkeyU32.exe (or *U64.exe) renamed to AutoHotkey.exe in the same v2 folder. Brilliant! Tested with both AutoHotkeyU32.exe and AutoHotkeyU64.exe ...works a charm! Thanks for the fast work-around and thanks in advance for the fix in the published version. Regards, Joe
by JoeWinograd
05 Sep 2020, 15:34
Forum: AutoHotkey v2 Development
Topic: Syntax for AHK V2 documentation not valid according to compiler Topic is solved
Replies: 13
Views: 485

Re: Syntax for AHK V2 documentation not valid according to compiler Topic is solved

Hi TAC, I'm convinced there's a bug. Here are my V2 root folder and Compiler subfolder: v2 root.png v2 compiler.png Here's a test script that shows the bug: fileCurrentVersion:=A_Temp . "\AutoHotkeyCurrentVersion.txt" urlCurrentVersion:="https://autohotkey.com/download/2.0/version.txt" Download(urlC...
by JoeWinograd
01 Sep 2020, 15:13
Forum: AutoHotkey v2 Development
Topic: Syntax for AHK V2 documentation not valid according to compiler Topic is solved
Replies: 13
Views: 485

Re: Syntax for AHK V2 documentation not valid according to compiler Topic is solved

Hi James,
My guess is that you're running the script with AHK V1, not V2. Regards, Joe
by JoeWinograd
01 Sep 2020, 01:26
Forum: Ask For Help
Topic: Can I have "MouseGetPos, StartX, StartY 1" and "MouseGetPos, StartX, StartY 2" ? So more than 1 "MouseGetPos, StartX, St
Replies: 2
Views: 46

Re: Can I have "MouseGetPos, StartX, StartY 1" and "MouseGetPos, StartX, StartY 2" ? So more than 1 "MouseGetPos, StartX

Hi Clemens, I suggest that you read the MouseGetPos doc carefully. Note that the command syntax is: MouseGetPos,OutputVarX,OutputVarY,OutputVarWin,OutputVarControl,Flag So, for starters, the syntax in the code in your question is wrong. In other words, AHK will choke on these: MouseGetPos, StartX, S...
by JoeWinograd
31 Aug 2020, 22:59
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

You're welcome...and thanks back at you for the update and explanation. Regards, Joe
by JoeWinograd
31 Aug 2020, 22:42
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

Well, I must admit to not having studied your script carefully, but an EXE that pastes into Notepad should certainly not need to run elevated.
by JoeWinograd
31 Aug 2020, 22:32
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

You still have Compile_AHK.exe, GoRC.exe, and language.ini in there. I have no idea if they're a problem, but just for grins, move them out. A fresh install of AutoHotkey has these files in the Compiler folder:

Ahk2Exe.exe
ANSI 32-bit.bin
AutoHotkeySC.bin
Unicode 32-bit.bin
Unicode 64-bit.bin
by JoeWinograd
31 Aug 2020, 22:13
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

copies it into the clipboard, but it won't paste OK, so now you're saying that the copy works but the paste doesn't. If so, what happens if you change it to paste into something else, such as Notepad? I just uninstalled AHK and tried again. No go! Do you still have that other stuff in your AutoHotk...
by JoeWinograd
31 Aug 2020, 21:57
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

There's no doubt that Send, ^c and Send, ^v {Enter} will work fine in a properly compiled EXE. Are you sure that you clicked (none) instead of UPX in the Compress exe with drop-down? A bad UPX could certainly be the culprit.
by JoeWinograd
31 Aug 2020, 21:34
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

Stop using the v0.9.2.0 compiler (Compile_AHK.exe). Use the v1.1.33.02 compiler (Ahke2Exe.exe) and in the Compress exe with drop-down, select (none).
by JoeWinograd
31 Aug 2020, 21:16
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

Stop using MPRESS or UPX. Does the EXE work when it is uncompressed?

Repeating my previous requests:
• Post the command line or GUI screenshot that you are compiling with
• Post the AHK source code that works
by JoeWinograd
31 Aug 2020, 21:10
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

Our messages crossed.
it doesn't work
I promise you, it does.
If I just use the .ahk file it works perfect.
Post the AHK code...I'll compile it here to see if there's a problem.
by JoeWinograd
31 Aug 2020, 21:07
Forum: Ask For Help
Topic: EXE not working right Topic is solved
Replies: 32
Views: 779

Re: EXE not working right Topic is solved

Let's worry about MPRESS and UPX later...they both work fine with the v1.1.33.02 compiler, but let's get the compiler working first without any compression. My guess is that you are not really using the right compiler. Are you running it via command line or GUI? If command line, post the line. If GU...

Go to advanced search