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 

F10 not Working

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





PostPosted: Mon Jul 07, 2008 1:52 am    Post subject: F10 not Working Reply with quote

Code:
#SingleInstance, Force
#Persistent
#NoEnv

^1::WinGet, active_id, PID, A

WheelDown::
{
ControlSend, , {F9}, ahk_pid %active_id%
Sleep 500
ControlSend, , {F7}, ahk_pid %active_id%
return
}

+WheelUp::
{
ControlSend, , {F10}, ahk_pid %active_id%
Sleep 500
ControlSend, , {F7}, ahk_pid %active_id%
return
}

+^WheelUp::
{
ControlSend, , {F10}, ahk_pid %active_id%
Sleep 500
ControlSend, , {F7}, ahk_pid %active_id%
Sleep 15500
ControlSend, , {F7}, ahk_pid %active_id%
return
}

+^!WheelUp::
{
ControlSend, , {F10}, ahk_pid %active_id%
Sleep 500
ControlSend, , {F7}, ahk_pid %active_id%
Sleep 15500
ControlSend, , {F7}, ahk_pid %active_id%
Sleep 15500
ControlSend, , {F7}, ahk_pid %active_id%
return
}

+^!Z::
{
ControlSend, , {F10}, ahk_pid %active_id%
Sleep 500
ControlSend, , {F7}, ahk_pid %active_id%
Sleep 15500
ControlSend, , {F7}, ahk_pid %active_id%
Sleep 15500
ControlSend, , {F7}, ahk_pid %active_id%
Sleep 15500
ControlSend, , {F7}, ahk_pid %active_id%
return
}

WheelUp::ControlSend, , {F8}, ahk_pid %active_id%

PgDn::ControlSend, , {F10}, ahk_pid %active_id%

+WheelDown::
{
ControlSend, , {F10}, ahk_pid %active_id%
Sleep 500
ControlSend, , {F1}, ahk_pid %active_id%
Sleep 2000
ControlSend, , {F2}, ahk_pid %active_id%
Sleep 2000
ControlSend, , {F3}, ahk_pid %active_id%
Sleep 2000
ControlSend, , {F4}, ahk_pid %active_id%
Sleep 2000
ControlSend, , {F5}, ahk_pid %active_id%
Sleep 2000
ControlSend, , {F6}, ahk_pid %active_id%
Sleep 2000
ControlSend, , {F8}, ahk_pid %active_id%
Return
}


That is the code I am using. Basically what I am trying to do is:

Make it press buttons on a different window when i have multiple windows open. AND the Majority of that script works however it fails to send F10 and F11 to the alternate screen. All the others work however these are 2 key buttons that I need to work and I am unable to change what they do on the other program.
Back to top
Jake
Guest





PostPosted: Mon Jul 07, 2008 6:24 am    Post subject: FIXED Reply with quote

EDIT: I have Fixed the problem by replaceing the 'controlsend' command with 'send'. Thanks to K3ph for his help.
Back to top
Display posts from previous:   
Post new topic   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