AutoHotkey Community

It is currently May 27th, 2012, 11:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: February 6th, 2012, 4:20 pm 
I am having issues trying to run the next line of a script when using hotkeys.

There are two files.

Main file sample:

Code:
#Persistent
#Include Shared.ahk

SplashTextOn ,,,I expect to see this SplashText



Shared.afk
Code:
LeftMouseClick()
{   
   IfWinActive Requiem
   {      
      MouseClick , Left
   }
}

LAlt & P:: LeftMouseClick()


What I expect it to do is when I run the main file, it will show me the SplashText message. However, it doesn't when I have the "LAlt & P:: LeftMouseClick()" added to the end of Shared.afk. If I comment out that line the SplashText is shown.


:?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 4:29 pm 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1718
Location: Somewhere near you
Untested
Code:
#Persistent
SplashTextOn ,,,I expect to see this SplashText
#Include Shared.ahk

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Last edited by tomoe_uehara on February 6th, 2012, 4:50 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 4:31 pm 
See http://www.autohotkey.com/docs/Scripts.htm#auto for more info


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 4:36 pm 
Anonymous wrote:


Thank you. I was looking at the help file for hotkeys and didn't read that. I guess that makes sense.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 4:37 pm 
tomoe_uehara wrote:
[color=indigo]Untested
Code:
#Persistent
SplashTextOn ,,,I expect to see this SplashText
#Include Shared.ahk


That's what I do at the moment, but if I don't understand why it is happening it will bug me :wink:

Now I know :D


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Edd and 16 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