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 

^c is not working while PrintScreen hotkey is defined ...

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



Joined: 23 Jan 2006
Posts: 37
Location: Vadodara - Gujarat (INDIA)

PostPosted: Sat Sep 02, 2006 4:57 am    Post subject: ^c is not working while PrintScreen hotkey is defined ... Reply with quote

Hello All Friends,

I have developed following program to disable PrintScreen Key's function in specific applications. But while running this program, I am not able to get the effect of CTRL+C (^C) key (i.e. Copy selected content into clipboard). For example, In Excel worksheet I press ^c key in cell A1, now I try to paste it in cell B1 but the clipboard remains empty - means it doesn't copy anything into cell B1.

Please help me how to make it work ?

Program Code :
==========

Code:
#SingleInstance ignore
#NoTrayIcon

Loop
{

#IfWinActive, lvavl: Previewer
gosub, disable_printscreen_key

#IfWinActive, lvbal: Previewer
gosub, disable_printscreen_key

#IfWinActive, Attendance Muster - [WINDOW1]
gosub, disable_printscreen_key

#IfWinActive, co_dtl1: Previewer
gosub, disable_printscreen_key

#IfWinActive, gp_frq: Previewer
gosub, disable_printscreen_key

}

disable_printscreen_key:
*Printscreen:: clipboard =
return

Thanks well in advance !

Kind Regards,

Raju C Padaria
Back to top
View user's profile Send private message
Conquer



Joined: 27 Jun 2006
Posts: 385
Location: Canada

PostPosted: Sun Sep 03, 2006 2:52 pm    Post subject: Reply with quote

Hm.. Does this work for you?

Code:
#SingleInstance ignore
#NoTrayIcon
Settimer, CheckTitles, 250
return

CheckTitles:
#IfWinActive, lvavl: Previewer
#IfWinActive, lvbal: Previewer
#IfWinActive, Attendance Muster - [WINDOW1]
#IfWinActive, co_dtl1: Previewer
#IfWinActive, gp_frq: Previewer
Hotkey, *PrintScreen, ClipboardErase
return
#IfWinActive

#IfWinNotActive, lvavl: Previewer
#IfWinNotActive, lvbal: Previewer
#IfWinNotActive, Attendance Muster - [WINDOW1]
#IfWinNotActive, co_dtl1: Previewer
#IfWinNotActive, gp_frq: Previewer
Hotkey, *PrintScreen, ClipboardErase, Off
return
#IfWinNotActive
return

ClipboardErase::
clipboard =
return

_________________
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
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