AutoHotkey Community

It is currently May 26th, 2012, 10:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 29th, 2009, 2:30 am 
If you activate 2 different scripts, will they effect each other?

Ex:
t::
Loop
{
Send {F3}
Sleep 1000
}
y::
Loop
{
Send {F10}
Sleep 10000
}
return

Will the 2 sleeps effect each other if both scripts are activated?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 29th, 2009, 2:54 am 
Offline

Joined: September 21st, 2009, 1:25 am
Posts: 10
As written the first loop exits when you begin the second and vise versa.

Code:
IfWinExist Untitled - Notepad
{
   WinActivate
}
else
{
   Run Notepad
       WinWait Untitled - Notepad
      WinActivate
}
Sleep 1000

#t::
Loop
{
Send t
Sleep 1000
}
#y::
Loop
{
Send y
Sleep 500
}
return


Easy test code to see what happens

_________________
StoreyQuickNotes - An AutoHotkey Project for Radiation Oncology


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 29th, 2009, 3:06 am 
So 2 scripts can't be running at the same time?


Report this post
Top
  
Reply with quote  
PostPosted: October 29th, 2009, 3:27 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Mhh wrote:
If you activate 2 different scripts

He means 2 different AHK script files.
You can test just like I did:
Code:
; SCRIPT 1
Loop
  traytip,, %A_INDEX%

Code:
; SCRIPT 2
Loop
  tooltip, %A_INDEX%

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], hyper_, JSLover, Leef_me, Maestr0, Miguel, XstatyK and 57 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group