| Author |
Message |
Topic: Count of substring occurences within a string. |
Democratus
Replies: 3
Views: 149
|
Forum: Ask for Help Posted: Mon Mar 31, 2008 8:08 pm Subject: Count of substring occurences within a string. |
| Is there an (easy) way to count the amount of times a substring is found within a string? For example, I want to obtain several links located on a website that all begin the same way but end different ... |
Topic: Question about 'if' and 'else' |
Democratus
Replies: 7
Views: 164
|
Forum: Ask for Help Posted: Mon Mar 31, 2008 1:37 am Subject: Question about 'if' and 'else' |
"If %HealthBar% =0x562625"
In If statements you do not need percent signs to declare a variable.
EDIT: That is, in the initial declaration. For example, in this it would be:
If Health ... |
Topic: Question about 'if' and 'else' |
Democratus
Replies: 7
Views: 164
|
Forum: Ask for Help Posted: Mon Mar 31, 2008 12:39 am Subject: Question about 'if' and 'else' |
| An If statement does not need a corresponding Else statement. You can just delete the Else. |
Topic: First iteration only exclusive |
Democratus
Replies: 3
Views: 129
|
Forum: Ask for Help Posted: Sun Mar 30, 2008 11:11 pm Subject: First iteration only exclusive |
| That's the long way I was speaking of (suppose it's not so much long as inefficient, in this case). I suppose my request was just wishful thinking, but I really need it to be more efficient because th ... |
Topic: First iteration only exclusive |
Democratus
Replies: 3
Views: 129
|
Forum: Ask for Help Posted: Sun Mar 30, 2008 6:50 pm Subject: First iteration only exclusive |
| Sorry, I haven't searched very well for this topic, but I only have a few minutes so I hope you will forgive me if this topic has already come up. Does anyone know a very quick way to perform certain ... |
Topic: Extract numbers from a list in a text file? |
Democratus
Replies: 5
Views: 457
|
Forum: Ask for Help Posted: Sun Mar 30, 2008 3:53 am Subject: Extract numbers from a list in a text file? |
| Because some of us aren't kings of efficiency. |
Topic: Timer / Autherazation / Control Pixel Search? |
Democratus
Replies: 6
Views: 216
|
Forum: Ask for Help Posted: Sun Mar 30, 2008 3:28 am Subject: Timer / Autherazation / Control Pixel Search? |
Before answering any of those issues, there is one thing I should mention that kind of defeats all of this: Exe2ahk.exe.
Anyone who has this file can decompile an executable and return it to its or ... |
Topic: How do you find the URL of the source of a page? |
Democratus
Replies: 4
Views: 209
|
Forum: Ask for Help Posted: Sun Mar 30, 2008 3:24 am Subject: How do you find the URL of the source of a page? |
Not sure if I'm interpreting your meaning properly, but if you're looking for the code in web pages, just copy the URL and use:
URLDownloadToFile, %URL%, %FilePath%
After that, you can Loop, REA ... |
Topic: Extract numbers from a list in a text file? |
Democratus
Replies: 5
Views: 457
|
Forum: Ask for Help Posted: Sun Mar 30, 2008 2:53 am Subject: Extract numbers from a list in a text file? |
| This code will read each line in a text file, parse that line by spaces, and apply the first parsed value to an array. You may then call the array variables as you like, or parse through them again si ... |
Topic: Need help... |
Democratus
Replies: 11
Views: 239
|
Forum: Ask for Help Posted: Thu Mar 27, 2008 3:45 am Subject: Need help... |
| I don't really see how those would do anything seeing as how the problems are located within the game. Unfortunately, the only alternative to just redoing the macro would be to make a command that wou ... |
Topic: GUI List help |
Democratus
Replies: 1
Views: 143
|
Forum: Ask for Help Posted: Tue Mar 25, 2008 4:50 am Subject: GUI List help |
| When the Gui Submit command is used, the control's associated output variable (if any) receives the text of the currently selected item. However, if the control has the AltSubmit property, the output ... |
Topic: What's the Best Way to Toggle a Logical Value Variable? |
Democratus
Replies: 7
Views: 285
|
Forum: Ask for Help Posted: Mon Mar 24, 2008 10:18 pm Subject: What's the Best Way to Toggle a Logical Value Variable? |
| This is not entirely relevant, but I just wanted to let you guys know (since I use this method a ton) that you can utilize HugoV's method very well in ternary operators. Here's an example I have in a ... |
Topic: Welcome Screen when returning from DLL-initiated Standby |
Democratus
Replies: 3
Views: 283
|
Forum: Ask for Help Posted: Sun Mar 23, 2008 10:02 pm Subject: Welcome Screen when returning from DLL-initiated Standby |
| You could attempt to use a work-around, such as closing progman window and sending enter (since it defaults to sleep on the shutdown dialog). That, or you could create a custom blocking macro that you ... |
Topic: Compatible audio types with MCI |
Democratus
Replies: 1
Views: 132
|
Forum: Ask for Help Posted: Mon Mar 17, 2008 6:27 pm Subject: Compatible audio types with MCI |
| Simply as the title states, does anyone know all of the audio formats supported by MCI or where I could look them up (I've checked MSDN and found nothing)? |
Topic: Adding Search Function to a List |
Democratus
Replies: 9
Views: 481
|
Forum: Ask for Help Posted: Wed Mar 12, 2008 10:40 pm Subject: Adding Search Function to a List |
Here's a very very simple working example. Just make sure there's a text file named "Test" in the same directory as the script and add some lines of text to it.
GUI, Add, Edit, gInput vIn ... |
| |