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 

Hotstring vs. Hotkey

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



Joined: 24 Oct 2009
Posts: 17

PostPosted: Tue Jan 19, 2010 6:42 am    Post subject: Hotstring vs. Hotkey Reply with quote

Hello, I am having trouble creating a simple script. I wanted a window to enter a filename, uncheck a checkbox, then click save for me.

I ran into a problem with ControlClick and IfWinActive.

I tried to set it to activate when that window was only active one using different methods, but some work, some dont, and I don't understand why.

Code:
:*:.b::
{
   IfWinActive, ahk_class #32770
   {
      SendRaw, Base_0.png
      ControlClick, Button6, ahk_class #32770
   }
   Return
}


Hotkey preferred method only ran when that window is active. DOES NOT WORK

Code:
F1::
{
   ControlGetPos, XX, YY,,, Button6, ahk_class #32770
   ControlClick, Button6, ahk_class #32770
   ToolTip, %XX% %YY%, 100, 100
   Return
}


Just a simple test I used to find if the button was even being found. The only difference is the activation and the IfWinActive.

This one works flawless, so what gives?

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
Back to top
View user's profile Send private message
Dave-X



Joined: 24 Oct 2009
Posts: 17

PostPosted: Tue Jan 19, 2010 6:50 am    Post subject: Reply with quote

I am seeing that hotstring activated mode such as :*:.f:: does not work, but hotkey mode activated such as F1:: does work.

So how can I have it hotstring activated?
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