| View previous topic :: View next topic |
| Author |
Message |
ProsperousOne
Joined: 19 Sep 2005 Posts: 115
|
Posted: Thu Aug 21, 2008 12:14 pm Post subject: Listvars with multiple scripts running simultaneously |
|
|
My autohotkey.ini file includes utilities.ahk, which contains a hotkey for listvars.
I use utilities.ahk in all scripts I write.
When I press the hotkey for listvars, I keep getting the variables for the ahk.ini file, not the script I'm running.
Here's an example of the files:
ahk.ini
| Code: | #include utilities.ahk
Var1 = 123
|
How can I control which variables are retreived with listvars when multiple scrips are running?
myscript.ahk
| Code: | #include utilities.ahk
Var2 = 345
|
utilities.ahk
|
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 3254 Location: Simi Valley, CA
|
Posted: Thu Aug 21, 2008 12:17 pm Post subject: |
|
|
Change ^v::ListVars to ~^v::ListVars, then use the little red buttons at the top right corner to reach the one you want  _________________ Ternary (a ? b : c) guide TSV Table Manipulation Library
Post code inside [code][/code] tags! |
|
| Back to top |
|
 |
ProsperousOne
Joined: 19 Sep 2005 Posts: 115
|
Posted: Thu Aug 21, 2008 4:23 pm Post subject: |
|
|
| [VxE] wrote: | use the little red buttons at the top right corner to reach the one you want  |
I assume you mean the grey close "x" button?
I don't get it.... I'm only getting one window to open (seeme to be different each time... maybe depending on the order the scripts were launched?)
Actually, my included file line is
I added the "~" as you suggested, but it's only opening up one variable list window...
thx! |
|
| Back to top |
|
 |
ProsperousOne
Joined: 19 Sep 2005 Posts: 115
|
Posted: Mon Aug 25, 2008 3:51 pm Post subject: |
|
|
| bump |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Mon Aug 25, 2008 4:44 pm Post subject: |
|
|
See the OnMessage documentation and the last 2 examples. With only the hotkeyed PostMessage in your "always running" script, and the OnMessage -> ListVars in your scripts/include, combined with a small "which script's vars do you want to see" selection GUI on keypress, it would work.
If you include the hotkey in all scripts, only the last (I guess) will be active, and you'll only see those ListVars.
HTH
________________________________________________________
New here? Please, before you post...
1. Read the tutorial and try the examples. -> 2. Take a look at the command list to get an idea of what you could do. -> 3. Create your script. Consult the documentation and the FAQ if you get stuck. -> 4. Search the forum if you need help or examples, method 1 (forum), method 2 (site), method 3 (Google). -> 5. Post your code on the forum in the "Ask for Help" section if you still run into problems (but read this first). -> 6. There is more AHK on autohotkey.net and the Wiki and there is an AHK IRC chat. |
|
| Back to top |
|
 |
|