Search found 159 matches

by roysubs
07 Apr 2019, 00:54
Forum: Ask For Help
Topic: FileSelectFile focus to different elements
Replies: 2
Views: 79

Re: FileSelectFile focus to different elements

wow! This works exactly as I wanted, thanks very much Osprey! :)
by roysubs
06 Apr 2019, 09:32
Forum: Ask For Help
Topic: FileSelectFile focus to different elements
Replies: 2
Views: 79

FileSelectFile focus to different elements

FileSelectFile is great, but the only thing is that for my application, I want the focus to be in the main file window instead of in the "File name:" dialogue. In the FileSelectFile I can do that by hitting "Shift-Tab" twice, but I cannot seem to do that here as processing pauses until the FileSelec...
by roysubs
03 Feb 2019, 09:18
Forum: Ask For Help
Topic: Automated in-place script updates
Replies: 0
Views: 97

Automated in-place script updates

I have a compiled .exe AutoHotkey tool that I want to be able to self-update. I've worked out roughly how I think this might work, but I was looking for recommendations on how you might do it, or if you have in fact built a system to do this that I could use? • The tool is named "ahk_toolkit.exe" • ...
by roysubs
01 Feb 2019, 13:49
Forum: Ask For Help
Topic: Replacing áéíóúâôûë accented characters Topic is solved
Replies: 10
Views: 557

Re: Replacing áéíóúâôûë accented characters Topic is solved

Nice! I think this is perfect, thanks! :)
Upper/lowercase also useful to me, thanks for that also.
by roysubs
01 Feb 2019, 10:18
Forum: Ask For Help
Topic: Replacing áéíóúâôûë accented characters Topic is solved
Replies: 10
Views: 557

Replacing áéíóúâôûë accented characters Topic is solved

Does anyone know of a generic way to remove accented characters such as áéíóúâôûë e.g. I have many strings, and some contain these characters, so for example: mystring := "The cát jûmped óver thë moon" I could do multiple StrReplace lines: mystring := StrReplace(mystring, "á", "a") mystring := StrRe...
by roysubs
30 Jan 2019, 08:17
Forum: Ask For Help
Topic: StrSplit by any whitespace
Replies: 6
Views: 318

Re: StrSplit by any whitespace

All great examples, thanks! :)
I like the StrSplitByWhiteSpace function and the last one on just using the RegExReplace on the line before splitting! :)
by roysubs
29 Jan 2019, 21:23
Forum: Ask For Help
Topic: StrSplit by any whitespace
Replies: 6
Views: 318

StrSplit by any whitespace

Is there a way to split by any whitespace, so that the below array would have just 4 elements, 1, 2, 3, 4?

Code: Select all

x := "1  2       3 4"
arr := StrSplit(x, %any_whitespace_gap%)
by roysubs
29 Jan 2019, 13:03
Forum: Ask For Help
Topic: UrlDownloadToFile with variables Topic is solved
Replies: 5
Views: 174

Re: UrlDownloadToFile with variables Topic is solved

Sorry guys, and thanks. It was indeed my fault, I have two variables, one for a local IP and one for a remote IP and I was using the wrong one. Thanks a lot, all working now! :)
by roysubs
29 Jan 2019, 12:25
Forum: Ask For Help
Topic: UrlDownloadToFile with variables Topic is solved
Replies: 5
Views: 174

UrlDownloadToFile with variables Topic is solved

Having a hard time with UrlDownloadToFile. It's really useful to me, but I want to grab a file from ftp. This works: UrlDownloadToFile, ftp://test:test@192.168.1.41/, C:\0\Test.txt However, obviously I want to do this in a generic way to pull different things, so I tried this but it fails (no error ...
by roysubs
29 Jan 2019, 12:21
Forum: Ask For Help
Topic: Add item to Array Topic is solved
Replies: 6
Views: 270

Re: Add item to Array Topic is solved

Thanks swagfag, It's been a bit confusing. I guess because AHK went through two generations from pseudo-arrays to more proper arrays. I think that the AHK documentation on arrays is lacking a lot. Got it all working as I needed Loop, Read, C:\0\Test.txt { If InStr(A_LoopReadLine, "/drivehqshare/roys...
by roysubs
27 Jan 2019, 22:27
Forum: Ask For Help
Topic: Upload/Download Amazon S3
Replies: 0
Views: 122

Upload/Download Amazon S3

Does anyone have some working code examples for uploading and downloading to/from Amazon S3 or any services like AWS / Azure / Google Drive - these services are huge now, so I'm hoping some people must have some working code for this kind of thing?
by roysubs
27 Jan 2019, 08:31
Forum: Ask For Help
Topic: Add item to Array Topic is solved
Replies: 6
Views: 270

Re: Add item to Array Topic is solved

That's great, thanks, I think it's working, but I can't be completely sure, as I don't know how to show the output. I want to show element x in the array as I put it in, tried arrNames.x, or arrNames[x] or arrNames(x), not working. Basically, 2 questions: - I see references to .Length and .MaxIndex(...
by roysubs
27 Jan 2019, 06:48
Forum: Ask For Help
Topic: Add item to Array Topic is solved
Replies: 6
Views: 270

Add item to Array Topic is solved

I've googled for ages on this and can't find a solution. All I want to do is append a new item into an array. That's it. I've tried .Insert, .Add, or just doing .= but nothing works. It seems that Insert might work but you have to define the Index position? I just want to add to the array, sounds so...
by roysubs
18 Dec 2018, 08:18
Forum: Ask For Help
Topic: Pausing a Gui control
Replies: 9
Views: 410

Re: Pausing a Gui control

Absolutely perfect. Works like a dream. Thanks. :-)
by roysubs
18 Dec 2018, 07:11
Forum: Ask For Help
Topic: Pausing a Gui control
Replies: 9
Views: 410

Re: Pausing a Gui control

I've got a lot to learn here, but your one works perfectly wolf_II, thanks. One very small thing, I see your event handler for GuiClose and GuiEscape, and these work great, but I tried to also make the gui close on {Enter} being pressed, but PictureBoxGuiEnter or PictureBoxGuiReturn fail. Do you kno...
by roysubs
17 Dec 2018, 11:04
Forum: Ask For Help
Topic: Pausing a Gui control
Replies: 9
Views: 410

Re: Pausing a Gui control

I tried both of these solutions, and unfortunately, neither worked! :-(
In both cases, it just does the same as before, the image opens then closes after a few milliseconds.
Any idea what is missing here?
by roysubs
15 Dec 2018, 09:37
Forum: Ask For Help
Topic: Pausing a Gui control
Replies: 9
Views: 410

Pausing a Gui control

I have a really nice little function to display an image that I modified from somewhere else. It works great, but without the MsgBox line, the image will appear and then disappear instantly. I get that the Gui, Destroy line is doing that, but what I want to do is pause processing until the user clos...
by roysubs
15 Dec 2018, 09:09
Forum: Ask For Help
Topic: Uploading/downloading to/from Dropbox / OneDrive / Google Drive
Replies: 0
Views: 151

Uploading/downloading to/from Dropbox / OneDrive / Google Drive

Has anyone been able to automate pushing files up to and pulling from any of these in code? I don't mind Dropbox / OneDrive / Google Drive, really it's a case of I'll use whichever system has the easiest way to fully automate sending files to/from (as I might do with FTP - I'd prefer to use Dropbox ...
by roysubs
08 Dec 2018, 05:15
Forum: Ask For Help
Topic: FTP Listing
Replies: 8
Views: 418

Re: FTP Listing

When I have #Warn on, I get:

"Warning: This variable has not been assigned a value.
Specifically: i (a static variable)."

I guess that it relates to this line?
Static i := i ? i : 0, wb
Do you know how I can correct for this warning?
by roysubs
06 Dec 2018, 06:56
Forum: Ask For Help
Topic: Gui Button Positions
Replies: 3
Views: 178

Re: Gui Button Positions

Ah, I see ... thanks, beginning to get it, thanks! What is "TextW"? I assume that it's a built-in variable that is the text width from the last defined line? If so, what other variables like this exist (although I'm using it, this came from another project so I'm not sure). What does "GuiControlGet,...

Go to advanced search