Search found 2185 matches

by JoeWinograd
Yesterday, 17:13
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 15
Views: 136

Re: List of USB serial numbers

garry's and my post just crossed each other. He's the expert in this, so I'm going to drop out now...I'm sure he'll get you across the finish line. Regards, Joe
by JoeWinograd
Yesterday, 16:36
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 15
Views: 136

Re: List of USB serial numbers

I don't want to guess at how you put together your code with the first script in garry's first post at that other thread. Please post the entire script that you are running.
by JoeWinograd
Yesterday, 15:42
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 15
Views: 136

Re: List of USB serial numbers

It's impossible for us to guess what your script is doing. If you want help troubleshooting it, post the entire script, or at least a sufficient enough portion of it for us to test it and see the problem. The DriveGet statement works fine, the If ... in works fine, Switch/Case works fine, etc., so i...
by JoeWinograd
28 Mar 2024, 22:41
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 15
Views: 136

Re: List of USB serial numbers

The Switch statement is good for that. Something like this: Switch serial2 { Case "111","222","333": Run,explorer.exe Case "aaa","bbb","ccc": Run,notepad.exe Default: Msgbox,262192,Error,Serial number not recognized:`n`n%serial2% } Add as many Case statements as you need for different serial numbers...
by JoeWinograd
28 Mar 2024, 21:25
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 15
Views: 136

Re: List of USB serial numbers

You may have misunderstood my comment. I think you are trying to see if the serial number that comes back from the DriveGet command (in the serial2 variable) matches one of the serial numbers in a list. Is that right? If so, the If statement that you want is: if serial2 in 111,222,333,aaa,bbb,ccc ; ...
by JoeWinograd
28 Mar 2024, 21:07
Forum: Ask for Help (v1)
Topic: List of USB serial numbers
Replies: 15
Views: 136

Re: List of USB serial numbers

I haven't looked at garry's script, but knowing garry, I assure you that he did not have this line: if (serial2="111,222,333,aaa,bbb,ccc") ; LIST OF SERIAL NUMBERS That statement does NOT check for a match in a list (and garry surely knows that). I can't speak to the rest of your script, but if you ...
by JoeWinograd
28 Mar 2024, 13:56
Forum: Forum Issues
Topic: Cannot attach PDF file to post
Replies: 0
Views: 19

Cannot attach PDF file to post

It seems that the forum does not allow a PDF file as an attachment to a post. When I tried it, I got this:

AutoHotkey forum does not allow PDF upload.png
AutoHotkey forum does not allow PDF upload.png (3.02 KiB) Viewed 19 times

Is that a known restriction, or temporary glitch, or am I doing something wrong? Thanks, Joe
by JoeWinograd
28 Mar 2024, 11:58
Forum: Ask for Help (v1)
Topic: Wrap
Replies: 8
Views: 122

Re: Wrap

OK. Btw, I just tested the script in your last post...worked perfectly here. Edit: Meant to say that you can test the script even with the printer being out of ink by "printing" to a PDF file. That's what I did here, and I was going to upload the file for you to see, but the forum does not allow upl...
by JoeWinograd
27 Mar 2024, 19:30
Forum: Ask for Help (v1)
Topic: Wrap
Replies: 8
Views: 122

Re: Wrap

You're welcome, jr. Looking forward to your feedback tomorrow.
by JoeWinograd
27 Mar 2024, 18:45
Forum: Ask for Help (v1)
Topic: Wrap
Replies: 8
Views: 122

Re: Wrap

this script should wrap after 300 pixels It does: jrachr print gui.png print what the wrapped gui shows when I press Ctrl & P The Print command is for plain text files. Since you are trying to print an image file (PNG), you should use the IrfanView /print parameter to print it. In other words, in t...
by JoeWinograd
26 Mar 2024, 14:24
Forum: Ask for Help (v1)
Topic: Need to know how to insert "["
Replies: 14
Views: 167

Re: Need to know how to insert "["

I don't know how to determine which modifier keys are needed for which characters. So, if you're trying to produce documentation on that, I can't help...hopefully, someone else in the group will jump in. If you're actually trying to send/insert all such characters via a script, I would address them ...
by JoeWinograd
26 Mar 2024, 13:18
Forum: Ask for Help (v1)
Topic: Need to know how to insert "["
Replies: 14
Views: 167

Re: Need to know how to insert "["

When I need to detect what modifier key to use I must no send anyhing. Then I don't understand your end goal. Your initial post says: I need to know what keys I need to press to insert "[" In order to insert "[" , you can Send % Chr(91) . If that's not what you're trying to do, please explain furth...
by JoeWinograd
26 Mar 2024, 12:50
Forum: Ask for Help (v1)
Topic: Need to know how to insert "["
Replies: 14
Views: 167

Re: Need to know how to insert "["

Hi @Archimede,
Instead of trying to figure out what keys to press, you could simply send it via the Chr function. For example:

Code: Select all

LeftBracket:=Chr(91)
Send %LeftBracket%
MsgBox % LeftBracket
Regards, Joe
by JoeWinograd
23 Mar 2024, 18:57
Forum: Ask for Help (v1)
Topic: toolbar-navigating macro doesn't work as function Topic is solved
Replies: 2
Views: 41

Re: toolbar-navigating macro doesn't work as function Topic is solved

Code: Select all

send {tab 3}{right %toolbarX%}{enter}
send {home}{down %paletteY%}{right %paletteX%}{enter}
by JoeWinograd
23 Mar 2024, 12:27
Forum: Forum Issues
Topic: AutoHotkey start page is broken
Replies: 10
Views: 170

Re: AutoHotkey start page is broken

gregster wrote:Now it works again on both computer and phone.
Glad to hear it! My hip-shot...Cloudflare was the culprit.
by JoeWinograd
23 Mar 2024, 01:39
Forum: Forum Issues
Topic: AutoHotkey start page is broken
Replies: 10
Views: 170

Re: AutoHotkey start page is broken

Fine here, too, with Brave, Chrome, Edge, and Firefox (Chicago area, USA).
by JoeWinograd
20 Mar 2024, 13:30
Forum: Ask for Help (v1)
Topic: Parsing JSON string with Jxon library Topic is solved
Replies: 2
Views: 91

Re: Parsing JSON string with Jxon library Topic is solved

Hi @geek,
Thank you very much! Both methods work perfectly! Regards, Joe
by JoeWinograd
20 Mar 2024, 11:34
Forum: Scripts and Functions (v1)
Topic: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
Replies: 77
Views: 66971

Re: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey

Hi Folks, I thought it would be better to post a separate question for a usage issue, but after three days and more than 30 views, it has received no replies, so I decided to come here and hope that the JSON/Jxon experts hanging here can help. The quick summary is: How to access JSON elements that a...
by JoeWinograd
19 Mar 2024, 21:25
Forum: Scripts and Functions (v1)
Topic: forecast and weather GUI
Replies: 11
Views: 269

Re: forecast and weather GUI

TheNaviator wrote:replace the zeroes with your coordinates
OK, the link works with proper values for latitude and longitude.
by JoeWinograd
18 Mar 2024, 22:42
Forum: Scripts and Functions (v1)
Topic: forecast and weather GUI
Replies: 11
Views: 269

Re: forecast and weather GUI

you don't need that line in the code with getbackground func, you might as well delete it. Yeah, especially since the weatherbackground var is not used anywhere in the script. :) The big problem is that the UrlDownloadToFile does not work. Using your link var unchanged, I ran this: downloadtest:=A_...

Go to advanced search