 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
padarrju
Joined: 23 Jan 2006 Posts: 37 Location: Vadodara - Gujarat (INDIA)
|
Posted: Sat Sep 02, 2006 4:57 am Post subject: ^c is not working while PrintScreen hotkey is defined ... |
|
|
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 |
|
 |
Conquer
Joined: 27 Jun 2006 Posts: 385 Location: Canada
|
Posted: Sun Sep 03, 2006 2:52 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|