AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multiple AHK command in the same command row

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Wdb



Joined: 27 Feb 2006
Posts: 15
Location: Italy

PostPosted: Fri Feb 22, 2008 1:00 pm    Post subject: Multiple AHK command in the same command row Reply with quote

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
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 6264

PostPosted: Fri Feb 22, 2008 1:06 pm    Post subject: Re: Multiple AHK command in the same command row Reply with quote

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


Smile
Back to top
View user's profile Send private message
Wdb



Joined: 27 Feb 2006
Posts: 15
Location: Italy

PostPosted: Fri Feb 22, 2008 1:10 pm    Post subject: Re: Multiple AHK command in the same command row Reply with quote

Ok, I supposed; thank you
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Feb 22, 2008 1:19 pm    Post subject: Re: Multiple AHK command in the same command row Reply with quote

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





PostPosted: Fri Feb 22, 2008 2:25 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group