| View previous topic :: View next topic |
| Author |
Message |
Wdb
Joined: 27 Feb 2006 Posts: 15 Location: Italy
|
Posted: Fri Feb 22, 2008 1:00 pm Post subject: Multiple AHK command in the same command row |
|
|
How is possible to code multiple AHK commands in the same row (i.e. to "cript" my code)? What character I had to insert between many AHK commands?
For example, this script work fine: | Code: |
Wdb_L_X := 195
Wdb_L_Y := 204
Gui, Add, Edit, -Multi v_c001 x%Wdb_L_X% y%Wdb_L_Y% w204 h028,
|
but no if I write: | Code: |
Wdb_L_X := 195 Wdb_L_Y := 204 Gui, Add, Edit, -Multi v_c001 x%Wdb_L_X% y%Wdb_L_Y% w204 h028,
|
|
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Fri Feb 22, 2008 1:06 pm Post subject: Re: Multiple AHK command in the same command row |
|
|
This the maximum for the code you have given:
| Code: | Wdb_L_X := 195 , Wdb_L_Y := 204
Gui, Add, Edit, -Multi v_c001 x%Wdb_L_X% y%Wdb_L_Y% w204 h028 |
 |
|
| Back to top |
|
 |
Wdb
Joined: 27 Feb 2006 Posts: 15 Location: Italy
|
Posted: Fri Feb 22, 2008 1:10 pm Post subject: Re: Multiple AHK command in the same command row |
|
|
| Ok, I supposed; thank you |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Feb 22, 2008 1:19 pm Post subject: Re: Multiple AHK command in the same command row |
|
|
AutoHotkey is not as flexible as some other languages...but you can insert a comma (WHY comma?...not semi-colon!?) for the expression stuff (including := & functions...maybe other things), but nothing will work for the commands...actually you could create wrapper functions around all the commands, then only use functions...someone already made an include for that...
| Code: | Wdb_L_X:=195, Wdb_L_Y:=204
Gui, Add, Edit, -Multi v_c001 x%Wdb_L_X% y%Wdb_L_Y% w204 h028 |
...btw...why does EVERYONE put stinking spaces around = & :=??? WHY WHY WHY???...it sucks!!!...write on the board 119 times "I will not put spaces where they shouldn't be!"... |
|
| Back to top |
|
 |
Buz as Guest Guest
|
Posted: Fri Feb 22, 2008 2:25 pm Post subject: |
|
|
| Quote: | | ...btw...why does EVERYONE put stinking spaces around = & :=??? WHY WHY WHY???...it sucks!!!...write on the board 119 times "I will not put spaces where they shouldn't be!"... |
Why should we? You've been doing it for us in more than one thread, which starts to be slightly tiring, actually. |
|
| Back to top |
|
 |
|