Search found 1644 matches

by JoeWinograd
Yesterday, 04:15
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 625
Views: 229196

Re: FindText - Capture screen image into text and then find it Topic is solved

MrMan2101 wrote:Line Text: Switch cmd
Error: This line does not contain a recognized action
That's because you're using an old version of AutoHotkey (Switch requires v1.1.31+). Download the latest AHK version and that error message will go away. Regards, Joe
by JoeWinograd
09 Jan 2021, 20:42
Forum: Ask For Help
Topic: Adding a timestamp to a file's name Topic is solved
Replies: 6
Views: 103

Re: Adding a timestamp to a file's name Topic is solved

In addition to the syntax problems that gregster mentioned, the value returned by the showTime function is not valid in a file name because of the colons. The following characters are not allowed in folder/file names (other than in the drive/path and as wildcards for a few of them): < (less than) > ...
by JoeWinograd
05 Jan 2021, 20:55
Forum: Ask For Help
Topic: AHK code to retrieve list of app packages (W8.1 and W10) without using PowerShell
Replies: 7
Views: 141

Re: AHK code to retrieve list of app packages (W8.1 and W10) without using PowerShell

BoBo wrote:Joe Glines
I'm Joe Winograd.
BoBo wrote:don't understand why powershell'ing is a problem
It may or may not ultimately be a "problem", but for right now I'm investigating solutions that do not require PowerShell.
BoBo wrote::shifty:
Yes, very clever! But a "problem" is that it has to run elevated.
by JoeWinograd
05 Jan 2021, 18:26
Forum: Ask For Help
Topic: AHK code to retrieve list of app packages (W8.1 and W10) without using PowerShell
Replies: 7
Views: 141

Re: AHK code to retrieve list of app packages (W8.1 and W10) without using PowerShell

Does this help? Hi mikey, Yes, very helpful! It gets most of what the PowerShell code gets, although not everything. But for my current purposes, it will do nicely. Much appreciated! PowerShell stuff worked fine for me Hi BoBo, I've had no problem running PowerShell code in an AutoHotkey script, bu...
by JoeWinograd
05 Jan 2021, 15:51
Forum: Ask For Help
Topic: AHK code to retrieve list of app packages (W8.1 and W10) without using PowerShell
Replies: 7
Views: 141

AHK code to retrieve list of app packages (W8.1 and W10) without using PowerShell

Hi Folks, I'm looking for AHK code that retrieves the list of app packages (built-in apps) on the local computer (only W8.1 and W10), i.e., the equivalent of this PowerShell code: Get-AppxProvisionedPackage -Online I need only the DisplayName and PackageName, i.e., the equivalent of this PowerShell ...
by JoeWinograd
04 Jan 2021, 12:21
Forum: Ask For Help
Topic: Can this type of API access be done with AHK?
Replies: 3
Views: 124

Re: Can this type of API access be done with AHK?

AHKStudent wrote:All REST requests
Hi AHKStudent,
Here's a thread where I received great help from the forum to get a REST API working:

https://autohotkey.com/boards/viewtopic.php?f=5&t=49478

Maybe some of the comments and code there will be helpful with the REST API that you're working on. Regards, Joe
by JoeWinograd
25 Dec 2020, 13:31
Forum: Ask For Help
Topic: A_TickCount is inaccurate after leaving the computer off for a few hours
Replies: 4
Views: 130

Re: A_TickCount is inaccurate after leaving the computer off for a few hours

just me wrote:They aren't inaccurate.
OK, I see your point, but it depends on your definition of "inaccurate", imo. I'm fine with calling it "inaccurate" in this situation, along with the accompanying comment on Fast Startup. Pretty much semantics, imo...not worth a diatribe. Regards, Joe
by JoeWinograd
24 Dec 2020, 11:54
Forum: Ask For Help
Topic: A_TickCount is inaccurate after leaving the computer off for a few hours
Replies: 4
Views: 130

Re: A_TickCount is inaccurate after leaving the computer off for a few hours

A_TickCount being inaccurate after shutting down for a few hours Check out my article: How to solve the problem of incorrect System Uptime being reported when a system has been up for a long time Scroll down to the paragraph that begins with this: As a final comment on the issue of determining syst...
by JoeWinograd
13 Dec 2020, 15:58
Forum: Ask For Help
Topic: msgbox is too long for screen, anyway to view whats cut off the screen?
Replies: 2
Views: 68

Re: msgbox is too long for screen, anyway to view whats cut off the screen?

Numerous ways to handle this. mikey mentioned one...a GUI. Another way is to write the output to a file instead of using MsgBox to display it. For example, define a file at the top of the script, such as: OutputFile:=A_Temp . "\download.txt" ; name it whatever you want and put it wherever you want F...
by JoeWinograd
06 Dec 2020, 01:45
Forum: Ask For Help
Topic: How to set background color for edit ? Topic is solved
Replies: 1
Views: 246

Re: How to set background color for edit ? Topic is solved

Code: Select all

Gui,Color,,Green
Gui,Add,Edit,x0 y0 gEditChange vMath
Gui,Show
Return

EditChange:
msgbox edit change
Return

GuiClose:
GuiEscape:
ExitApp
Regards, Joe
by JoeWinograd
04 Dec 2020, 01:30
Forum: Ask For Help
Topic: Modify recursive function that uses Outlook COM to loop through all folders/emails
Replies: 4
Views: 321

Re: Modify recursive function that uses Outlook COM to loop through all folders/emails

Hi Xeo786,
Thank you for the comment...much appreciated! But I just discovered a very simple solution...the Folder.FolderPath property. That gives the full path to each folder. Using that in the recursive function provides exactly what I need. Regards, Joe
by JoeWinograd
03 Dec 2020, 22:50
Forum: Ask For Help
Topic: hide a specific tray icon on demand
Replies: 1
Views: 174

Re: hide a specific tray icon on demand

This shows you how to do it. Incorporate it into your code however you want. Regards, Joe Program:="anyprog.exe" WhichTray:=1 ; 0==>NotifyIconOverflowWindow (overflow tray) 1==>Shell_TrayWnd (main tray) oIconInfo:=TrayIcon_GetInfo(Program) ProgIDcmd:=oIconInfo[1].IDcmd ProgTooltip:=oIconInfo[1].tool...
by JoeWinograd
03 Dec 2020, 02:47
Forum: Ask For Help
Topic: Modify recursive function that uses Outlook COM to loop through all folders/emails
Replies: 4
Views: 321

Re: Modify recursive function that uses Outlook COM to loop through all folders/emails

I want to add that I'm not wedded to using that recursive function, or that the solution has to contain a recursive function. I'd be fine with any code that uses Outlook COM to traverse all the folders in a specified Outlook email account and is able to capture the full path to each folder/subfolder...
by JoeWinograd
02 Dec 2020, 17:01
Forum: Ask For Help
Topic: Modify recursive function that uses Outlook COM to loop through all folders/emails
Replies: 4
Views: 321

Modify recursive function that uses Outlook COM to loop through all folders/emails

Hi Folks, I'm using the recursive function posted here: https://www.autohotkey.com/boards/viewtopic.php?t=61520#p260796 It loops through all the subfolders in Outlook based on an email address and a starting (root) folder. I adapted it (and the code that calls it) as follows: • Uses ComObjCreate ins...
by JoeWinograd
22 Nov 2020, 14:35
Forum: Ask For Help
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 307

Re: How to detect hotkeys and enter keys in a listview Topic is solved

For anyone following this thread, I should point out that the right-click test that I added to just me's code is actually checking for a logical right-click (i.e., a secondary click), not a physical right-click. In other words, if the primary and secondary mouse buttons are swapped (often done by le...
by JoeWinograd
22 Nov 2020, 10:58
Forum: Ask For Help
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 307

Re: How to detect hotkeys and enter keys in a listview Topic is solved

Hi flip,
I see that just me has you squared away...great news! Regards, Joe
by JoeWinograd
22 Nov 2020, 04:34
Forum: Ask For Help
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 307

Re: How to detect hotkeys and enter keys in a listview Topic is solved

Our messages crossed...I did not look at your last posted code and it is 3:30am in my neck of the woods, so I'm packing it in now. Will check back into the thread first thing in my morning (or early afternoon) to see how you're doing. If you don't have it working by then, I suggest posting your enti...
by JoeWinograd
22 Nov 2020, 04:24
Forum: Ask For Help
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 307

Re: How to detect hotkeys and enter keys in a listview Topic is solved

Maybe this code will make it clearer for you (with all credit to just me): #NoEnv #SingleInstance force Gui, Add, ListView, w400 r20 AltSubmit vLV hwndHLV gLabel, Column1|Column2 Loop, 10 LV_Add("", "1" . A_Index, "2" . A_Index) Gui, Add, Edit, wp, Click here to test LV not having focus Gui, Show, ,...
by JoeWinograd
22 Nov 2020, 04:15
Forum: Ask For Help
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 307

Re: How to detect hotkeys and enter keys in a listview Topic is solved

It isn't stand-alone code. It is a replacement for the Label: path code in just me's post.
by JoeWinograd
22 Nov 2020, 04:05
Forum: Ask For Help
Topic: How to detect hotkeys and enter keys in a listview Topic is solved
Replies: 21
Views: 307

Re: How to detect hotkeys and enter keys in a listview Topic is solved

Any idea please? Label: If (A_GuiEvent == "K") && (A_EventInfo = 113) ; VK_F2 = 113 (0x71) { RowNum:=LV_GetNext() MsgBox, You pressed F2 while the ListView was on row %RowNum% } If (A_GuiEvent == "K") && (A_EventInfo = 13) ; VK_RETURN = 13 (0x0D) { RowNum:=LV_GetNext() MsgBox, You pressed Enter whi...

Go to advanced search