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 

How to seperate script points

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






PostPosted: Sat Mar 20, 2010 2:10 pm    Post subject: How to seperate script points Reply with quote

Hello

I wrote this script:

Code:
N::
Click 920,375

A::
Send ^v


count = 1

M::

   If (count = 1) {
Run C:\Program Files\Mozilla Firefox\firefox.exe "http://muenchen.pennergame.de/"
Sleep 4000
click 1181,356
Sleep 200
Sendinput {Tab}
Sleep 200
Sendinput {Tab}
Sleep 200
Sendinput {Tab}
Clipboard = Username
Send ^v
Sleep 100
Sendinput {Tab}
Clipboard = Password
Send ^v
Sleep 400
Sendinput {Enter}

Sleep 2000
Click 393,246


}
   Else if (count = 2) {
Run C:\Program Files\Mozilla Firefox\firefox.exe "http://muenchen.pennergame.de/"
Sleep 4000
click 1181,356
Sleep 200
Sendinput {Tab}
Sleep 200
Sendinput {Tab}
Sleep 200
Sendinput {Tab}
Clipboard = Username
Send ^v
Sleep 100
Sendinput {Tab}
Clipboard = Password
Send ^v
Sleep 400
Sendinput {Enter}

Sleep 2000
Click 393,246
}

 If ( count = 3 ) {
      Run, http://google.de
      count = 1
   }
   Else Count++
Return



The problem is, that when i press A , it starts from the point
Code:
count = 1

M::

......



But i dont want that.
I want that it does Send ^v when i press A.

So how can i seperate this scripting points ?
Where should i add something ?


Thank you guys
Back to top
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Sat Mar 20, 2010 2:23 pm    Post subject: Reply with quote

Code:
N::
Click 920,375
Return ; add return here

A::
Send ^v
count = 1
Return ; add return here etc for ech hotkey

_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
Display posts from previous:   
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