| Author |
Message |
Topic: if test: multiple lines |
ScripterFromHeaven
Replies: 3
Views: 179
|
Forum: Ask for Help Posted: Wed Jun 13, 2007 10:59 am Subject: if test: multiple lines |
| Cool, works, thanks |
Topic: if test: multiple lines |
ScripterFromHeaven
Replies: 3
Views: 179
|
Forum: Ask for Help Posted: Wed Jun 13, 2007 10:06 am Subject: if test: multiple lines |
nobody?  |
Topic: if test: multiple lines |
ScripterFromHeaven
Replies: 3
Views: 179
|
Forum: Ask for Help Posted: Wed Jun 13, 2007 8:58 am Subject: if test: multiple lines |
Hello,
How can I write an if test which expands multilple lines?
if (a < b or
b > c)
{
...
}
|
Topic: Cleaning up code, can this be written as one-liner? |
ScripterFromHeaven
Replies: 4
Views: 207
|
Forum: Ask for Help Posted: Mon May 28, 2007 7:03 pm Subject: Cleaning up code, can this be written as one-liner? |
| Nevermind, found it on http://www.autohotkey.com/docs/Variables.htm, misread it first. |
Topic: Cleaning up code, can this be written as one-liner? |
ScripterFromHeaven
Replies: 4
Views: 207
|
Forum: Ask for Help Posted: Mon May 28, 2007 6:46 pm Subject: Cleaning up code, can this be written as one-liner? |
The first can be written as: MsgBox, % GetTotalNumberOfFiles()Addendum, what if I want to type:
MsgBox, The number of files are: % GetTotalNumberOfFiles()Then it doesn't work? |
Topic: Cleaning up code, can this be written as one-liner? |
ScripterFromHeaven
Replies: 4
Views: 207
|
Forum: Ask for Help Posted: Mon May 28, 2007 4:39 pm Subject: Cleaning up code, can this be written as one-liner? |
Thanks, haven't seen the syntax of the first snippet before. The second one was euhm... easy
thanks again |
Topic: Cleaning up code, can this be written as one-liner? |
ScripterFromHeaven
Replies: 4
Views: 207
|
Forum: Ask for Help Posted: Mon May 28, 2007 4:22 pm Subject: Cleaning up code, can this be written as one-liner? |
Hello,
I'm reviewing and cleaning up my code. Can the following two lines be written as one line?
n := GetTotalNumberOfFiles()
MsgBox, %n%
FilePath := r%A_Index%
DeleteFile ... |
Topic: window operations & multiple users |
ScripterFromHeaven
Replies: 6
Views: 263
|
Forum: Ask for Help Posted: Mon May 28, 2007 4:19 pm Subject: window operations & multiple users |
| Thanks Sean, you helped me a lot. Using WinGet, WindowID, ID instead of WinGet, WindowID, ID, A did the trick! I don't have to wait for the active window, but can simply do a search on the title and r ... |
Topic: window operations & multiple users |
ScripterFromHeaven
Replies: 6
Views: 263
|
Forum: Ask for Help Posted: Mon May 28, 2007 8:55 am Subject: window operations & multiple users |
Where did I say I'm trying to get information about the windows of another user?
You didn't say that in which user you launched the application you're interested in.
You tried to monitor the active ... |
Topic: window operations & multiple users |
ScripterFromHeaven
Replies: 6
Views: 263
|
Forum: Ask for Help Posted: Mon May 28, 2007 7:13 am Subject: window operations & multiple users |
| Where did I say I'm trying to get information about the windows of another user? I have two user accounts, let's call them A and B. If I run the script in A, and I'm also logged in with A, it works (o ... |
Topic: window operations & multiple users |
ScripterFromHeaven
Replies: 6
Views: 263
|
Forum: Ask for Help Posted: Sun May 27, 2007 8:59 pm Subject: window operations & multiple users |
Hello all,
I have created a script which loops through some windows, and executes operations in them, by clicking on buttons, and so on. The script works fine, but there is one big problem. I'll ex ... |
Topic: Parsing console parameters |
ScripterFromHeaven
Replies: 6
Views: 420
|
Forum: Ask for Help Posted: Sun May 27, 2007 8:49 pm Subject: Parsing console parameters |
| Thanks a lot all, some very useful information here. If anybody is interested in my results, I'll post them tomorrow. |
Topic: Parsing console parameters |
ScripterFromHeaven
Replies: 6
Views: 420
|
Forum: Ask for Help Posted: Fri May 25, 2007 8:42 pm Subject: Parsing console parameters |
Hello,
Has somebody of you already written a parser function for console parameters, like:
script.exe par1=0 par2="second parameter" par3=-445
If not, I'll write one. |
Topic: problem with directories |
ScripterFromHeaven
Replies: 4
Views: 192
|
Forum: Ask for Help Posted: Thu May 24, 2007 2:45 pm Subject: problem with directories |
The problem is that B.class cannot be found, not that the B.class cannot find the given filename. So I don't see why added %targetPath%\ in front of my fileName should help?
thanks |
Topic: problem with directories |
ScripterFromHeaven
Replies: 4
Views: 192
|
Forum: Ask for Help Posted: Thu May 24, 2007 2:14 pm Subject: problem with directories |
Hello all,
I have two programs, A.hk and B.java (written in Java 1.5). Both programs are in the same directory. A loops through all files (also in subdirectories), and calls if necessary B.java:
... |
| |