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 

receive the status of the button from the minimized window?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Kiber



Joined: 17 Dec 2006
Posts: 16

PostPosted: Sat Mar 15, 2008 5:12 am    Post subject: Reply with quote

Example code:
Code:
Process, Priority, , Realtime
#SingleInstance
#InstallKeybdHook
#UseHook ON
#MaxThreadsPerHotkey 1
#MaxThreadsBuffer On
#Persistent

WinGet, L, list, Untitled - Notepad
If L<2
  {
  ExitApp
  }
WinGet, PID2, PID, ahk_id %L2%
ControlSend, ,{W down}, ahk_pid %PID2%

SetTimer, timer, 500
Return
timer:
  {
  GetKeyState, state, W
  Tooltip, %state%
  }

Run 2 notepad's.
Run script. Activate first notepad, a second. You will see that state (shown by tooltip) is always "U".
_________________
sorry for my bad english ^^ Embarassed
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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