| Author |
Message |
Forum: Support Topic: if test: multiple lines |
| ScripterFromHeaven |
|
Posted: June 13th, 2007, 11:59 am
|
|
Replies: 3 Views: 421
|
|
 |
Forum: Support Topic: if test: multiple lines |
| ScripterFromHeaven |
|
Posted: June 13th, 2007, 11:06 am
|
|
Replies: 3 Views: 421
|
nobody?  |
|
 |
Forum: Support Topic: if test: multiple lines |
| ScripterFromHeaven |
|
Posted: June 13th, 2007, 9:58 am
|
|
Replies: 3 Views: 421
|
Hello,
How can I write an if test which expands multilple lines?
Code: if (a < b or b > c) { ... }
|
|
 |
Forum: Support Topic: Cleaning up code, can this be written as one-liner? |
| ScripterFromHeaven |
|
Posted: May 28th, 2007, 8:03 pm
|
|
Replies: 4 Views: 439
|
|
 |
Forum: Support Topic: Cleaning up code, can this be written as one-liner? |
| ScripterFromHeaven |
|
Posted: May 28th, 2007, 7:46 pm
|
|
Replies: 4 Views: 439
|
Titan wrote: The first can be written as: MsgBox, % GetTotalNumberOfFiles() Addendum, what if I want to type:
Code: MsgBox, The number of files are: % GetTotalNumberOfFiles() Then it doesn't work? |
|
 |
Forum: Support Topic: Cleaning up code, can this be written as one-liner? |
| ScripterFromHeaven |
|
Posted: May 28th, 2007, 5:39 pm
|
|
Replies: 4 Views: 439
|
Thanks, haven't seen the syntax of the first snippet before. The second one was euhm... easy
thanks again |
|
 |
Forum: Support Topic: Cleaning up code, can this be written as one-liner? |
| ScripterFromHeaven |
|
Posted: May 28th, 2007, 5:22 pm
|
|
Replies: 4 Views: 439
|
Hello,
I'm reviewing and cleaning up my code. Can the following two lines be written as one line?Code: n := GetTotalNumberOfFiles() MsgBox, %n%
Code: FilePath := r%A_Index% DeleteFile(FilePath)
Thanks all. |
|
 |
Forum: Support Topic: window operations & multiple users |
| ScripterFromHeaven |
|
Posted: May 28th, 2007, 5:19 pm
|
|
Replies: 6 Views: 602
|
| Thanks Sean, you helped me a lot. Using Code: WinGet, WindowID, ID instead of Code: 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 return the ID.
thanks again, very appreciated |
|
 |
Forum: Support Topic: window operations & multiple users |
| ScripterFromHeaven |
|
Posted: May 28th, 2007, 9:55 am
|
|
Replies: 6 Views: 602
|
| 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 state of the window, so naturally I assumed it's in current active session. Anyway, does it make sens... |
|
 |
Forum: Support Topic: window operations & multiple users |
| ScripterFromHeaven |
|
Posted: May 28th, 2007, 8:13 am
|
|
Replies: 6 Views: 602
|
| 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 (or vice versa). However, If I run the script in A, but I'm logged in with B, it doesn't work (or vice... |
|
 |
Forum: Support Topic: window operations & multiple users |
| ScripterFromHeaven |
|
Posted: May 27th, 2007, 9:59 pm
|
|
Replies: 6 Views: 602
|
| 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 explain. I have created a second user on my computer (I use Windows XP), and I would like to run the scri... |
|
 |
Forum: Support Topic: Parsing console parameters |
| ScripterFromHeaven |
|
Posted: May 27th, 2007, 9:49 pm
|
|
Replies: 6 Views: 983
|
| Thanks a lot all, some very useful information here. If anybody is interested in my results, I'll post them tomorrow. |
|
 |
Forum: Support Topic: Parsing console parameters |
| ScripterFromHeaven |
|
Posted: May 25th, 2007, 9:42 pm
|
|
Replies: 6 Views: 983
|
Hello,
Has somebody of you already written a parser function for console parameters, like:
Code: script.exe par1=0 par2="second parameter" par3=-445
If not, I'll write one. |
|
 |
Forum: Support Topic: problem with directories |
| ScripterFromHeaven |
|
Posted: May 24th, 2007, 3:45 pm
|
|
Replies: 4 Views: 433
|
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 |
|
 |
Forum: Support Topic: problem with directories |
| ScripterFromHeaven |
|
Posted: May 24th, 2007, 3:14 pm
|
|
Replies: 4 Views: 433
|
| 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: Loop, , 1 { ... RunWait, java B %fileName% } This works fine, unless the file (with name %fileN... |
|
 |
| Sort by: |