Dave-X
Joined: 24 Oct 2009 Posts: 17
|
Posted: Tue Jan 19, 2010 6:42 am Post subject: Hotstring vs. Hotkey |
|
|
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] |
|