Search found 1418 matches
- 15 Aug 2021, 07:21
- Forum: Ask for Help (v1)
- Topic: How to use InStr command for range of numbers?
- Replies: 51
- Views: 4210
Re: How to use InStr command for range of numbers?
I want to run a command only if 6 digits are detected between 010000 to 80000. How is this written as part of InStr? If InStr(clip, "chrome://") { Run, C:\ Do you want something like the below? However, something I noticed is you were asking to detect 6 digits, but "80000" is 5 digits (in the origi...
- 15 Aug 2021, 05:56
- Forum: General Discussion
- Topic: Should I start learning v1.1 or jump straight to v2
- Replies: 16
- Views: 7670
Re: Should I start learning v1.1 or jump straight to v2
The higher volume of publicly available v1 code also has significant downsides. The complexity/duality of the syntax and the many quirks mean not only more to learn and more hurdles, but also greater mental burden while reading and learning from v1 code. New users learning from v1 code must learn s...
- 15 Aug 2021, 04:55
- Forum: Ask for Help (v1)
- Topic: Wrong numbers coming up at word/character counter Topic is solved
- Replies: 10
- Views: 956
Re: Wrong numbers coming up at word/character counter Topic is solved
The counting uses RegEx to determine words and characters, so perhaps that's where I messed up. You don't have to use RegEx. Below is a non RegEx version. The function used can also be shortened, but making it so the steps are clearer. Agree that different sites or functions might or might not coun...
- 14 Aug 2021, 12:55
- Forum: Ask for Help (v2)
- Topic: [2.0-beta.1] if Var in MatchList ?! Topic is solved
- Replies: 11
- Views: 1609
Re: [2.0-beta.1] if Var in MatchList ?! Topic is solved
What about? Switch var { Case "exe", "bat", "com": MsgBox "The file extension is an executable type." } Looks viable and easy to me. I liked the IsItemInList functions too, and are easy as well, but they aren't built into the language and might be something newbies never find or think of. I think t...
- 14 Aug 2021, 12:33
- Forum: Ask for Help (v1)
- Topic: Bible reference expander help Topic is solved
- Replies: 14
- Views: 739
Re: Bible reference expander help Topic is solved
metallizer Not sure if you already are, but seems like you might want to also get acquainted with using For-Loops ( https://www.autohotkey.com/docs/commands/For.htm ). That is often how or another way in which one would search or "loop through" a big object (extensible associative array) to get its...
- 14 Aug 2021, 05:32
- Forum: Off-topic Discussion
- Topic: Object-Oriented Programming Is Bad?
- Replies: 18
- Views: 14866
Re: Object-Oriented Programming Is Bad?
Highly experienced polyglot JavaScript programmer (Shai UI) puts the hammer down on Class-based OOP. "Complexity doesn't mean it's better." "Less is more." I don't like Object Oriented Programming (OOP) 1/2 https://youtu.be/PnlwE3INM-M I don't like Object Oriented Programming (OOP) 2/2 https://youtu...
- 14 Aug 2021, 05:04
- Forum: General Discussion
- Topic: Turning AHK into $ profit?
- Replies: 2
- Views: 2344
Re: Turning AHK into $ profit?
Snowy42 Seems like becoming a freelance programmer might be something you want to try. You could register with a bunch of freelance websites (Upwork, Toptal, Guru, Freelancer, etc...) and see how it goes. Being a freelancer is tricky, as it appears to work out for some and be a nightmare for others...
- 13 Aug 2021, 19:31
- Forum: Wish List
- Topic: License Hints
- Replies: 6
- Views: 2102
Re: License Hints
I found a lot of very usefull libraries/modules/scripts in this forum, but I'm always in doubt if these works are free to use in our business. I'm sure that the author's are proud of their work and would like to see many private/personal users of their scripts. :bravo: But what about the use in our...
- 13 Aug 2021, 01:46
- Forum: Ask for Help (v1)
- Topic: need help with syntax for multiple class/exe
- Replies: 10
- Views: 699
Re: need help with syntax for multiple class/exe
to both: Yes it's best to specify 1 at a time, but there are times when I need multiple arguments to be sure it triggers only that window. I already have settitlematchmode 2 and the group defined. using boolean can look very confusing. Is there a cleaner way to write the code? Well, I think what wo...
- 13 Aug 2021, 00:26
- Forum: Ask for Help (v1)
- Topic: need help with syntax for multiple class/exe
- Replies: 10
- Views: 699
Re: need help with syntax for multiple class/exe
For the example below, I tried inserting multiple arguments in every if win active quote but it doesn't work. How do I specify it accordingly? #If WinActive("Google Search") || WinActive("New Tab") ; generic #If WinActive("Google Search ahk_exe firefox.exe") || WinActive("New Tab ahk_group ABC") ;d...
- 11 Aug 2021, 11:33
- Forum: Ask for Help (v1)
- Topic: Remove duplicate part of string
- Replies: 19
- Views: 1541
Re: Remove duplicate part of string
So what am I not understanding? Text := clipboard ; stores clipboard into Text variable msgbox, %Text% ResultText := RemoveDupe(Text) ; Result of function stored in ResultText variable msgbox, %ResultText% You can use a variable to "catch" the result of the function. Then you can display the result...
- 11 Aug 2021, 07:17
- Forum: Ask for Help (v1)
- Topic: Remove duplicate part of string
- Replies: 19
- Views: 1541
Re: Remove duplicate part of string
In your examples the duplicates always have the 1st word in them. Find the 1st word. Find the 2nd occurrence of the word. Return sub string based on the position found. I like what you did there. You can even combine it with what I had, so that it will remove both the duplicated first word with no ...
- 11 Aug 2021, 06:31
- Forum: Forum Issues
- Topic: Forum Availability And Cloudflare
- Replies: 2
- Views: 1836
Forum Availability And Cloudflare
Cloudflare's (Always Online), doesn't appear to work as advertised. From their website ( https://www.cloudflare.com/always-online/ ), "Cloudflare is caching pages when you see the crawler in your logs." Really? The impression is given that when a website is having availability issues that it will sh...
- 11 Aug 2021, 05:58
- Forum: Scripts and Functions (v1)
- Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
- Replies: 249
- Views: 93927
Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Some people seem to prefer only class and insist everyone does :(.. It's one of those things. Some love using Classes, while others hate it and prefer a more functional/procedural style, only records/structs, or objects without Classes. But, it should be one of those things where it isn't forced un...
- 10 Aug 2021, 17:16
- Forum: Ask for Help (v1)
- Topic: How to use same hotkey to trigger the same button but located at different position?
- Replies: 6
- Views: 275
Re: How to use same hotkey to trigger the same button but located at different position?
I would like to trigger this button below using FindClick/Imagesearch. However, they are located in different positions depending on which tab is chosen (in the same window/ahkclass/exe). Both are located on top right hand corner of screen. [bottom arrow to be chosen but there are also other simila...
- 10 Aug 2021, 17:08
- Forum: Ask for Help (v1)
- Topic: If Date is between one of two date ranges, do something Topic is solved
- Replies: 8
- Views: 910
Re: If Date is between one of two date ranges, do something Topic is solved
@Boiler
Good explanation.
Good explanation.
- 10 Aug 2021, 16:59
- Forum: Ask for Help (v1)
- Topic: Remove duplicate part of string
- Replies: 19
- Views: 1541
Re: Remove duplicate part of string
Here is an example of the starting string: Engelbert IIEngelbert II von Sponheim Margrave of Istria Here is what the final string should be: Engelbert II von Sponheim Margrave of Istria Are there spaces between the words? I'm wondering if "Engelbert IIEngelbert II" is really a typo and should be "E...
- 10 Aug 2021, 12:45
- Forum: Scripts and Functions (v1)
- Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
- Replies: 249
- Views: 93927
- 09 Aug 2021, 05:40
- Forum: Ask for Help (v1)
- Topic: How to break "while" loop with pressing a key ?
- Replies: 9
- Views: 426
Re: How to break "while" loop with pressing a key ?
In my while loop I have ImageSearch and "goto label", and I don't know how to avoid "goto" in my code. (as you propose) Without "goto" my code does NOT even want to go on after while is stopped. :headwall: The logic behind goto is that you want to jump to another subroutine to execute some code. Th...
- 09 Aug 2021, 05:00
- Forum: Bug Reports
- Topic: Process injection vulnerability
- Replies: 12
- Views: 5082
Re: Process injection vulnerability
I would really like to use AutoHotkey at my company but IT sais we can't until this vulnerability is fixed. The issue here is not that the AutoHotkey scripting language is a problem, but rather the computers of your company will need to have been already compromised by an exploit that NIST and the ...