 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
question Guest
|
Posted: Fri Aug 31, 2007 6:32 pm Post subject: auto-disc choices |
|
|
Hi, how can I script wise turn off the auto-popup that appears when I insert a disc in Windows XP, with the choices of what I want to do? if it can be reversed please show how if you can
have a very nice day and thank you for support. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5884
|
Posted: Fri Aug 31, 2007 7:39 pm Post subject: |
|
|
My Computer > Right Click on Drive Letter > Select Properties > Select AutoPlay Tab > Select "Take no Action" > click Apply > Close
 |
|
| Back to top |
|
 |
question Guest
|
Posted: Sat Sep 01, 2007 12:51 am Post subject: |
|
|
Rather than the automated hand step to do that, can it be scripted?  |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5884
|
Posted: Sat Sep 01, 2007 1:06 am Post subject: |
|
|
| question wrote: | Rather than the automated hand step to do that, can it be scripted?  |
Do you mean temporarily ? Say AutoPlay should be supressed when your script is running ? Something like that ?  |
|
| Back to top |
|
 |
Question Guest
|
Posted: Sat Sep 01, 2007 1:20 am Post subject: |
|
|
| Yes please, that would be just perfect! Just for session only :=) |
|
| Back to top |
|
 |
superbem
Joined: 30 Jul 2007 Posts: 20
|
Posted: Sat Sep 01, 2007 1:21 am Post subject: |
|
|
| There is a regkey to that, google it. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5884
|
Posted: Sat Sep 01, 2007 1:29 am Post subject: |
|
|
| Question wrote: | | Just for session only :=) |
The following will supress AutoPlay for Removable Drives:
| Code: | #Persistent
Menu, Tray, Icon, User32.DLL, 4
Gui -Caption +AlwaysOnTop +ToolWindow
lpStr := "QueryCancelAutoPlay"
MsgNo := DllCall( "RegisterWindowMessage", UInt, &lpStr )
OnMessage( MsgNo, "QCAP" )
OnMessage(0x219, "Notify_Change")
Return
Notify_Change(wParam, lParam, msg, hwnd) {
IfEqual, wParam, 32768, Gui, Show, x0 y0 w1 h1
}
QCAP( wParam, lParam, msg, hwnd ) {
Gui, Hide
Return True
} |
 |
|
| Back to top |
|
 |
Question Guest
|
Posted: Sat Sep 01, 2007 2:17 am Post subject: |
|
|
you are a genius! One more, this may seem like a minor question, but the little mouse-cursor icon which appears when you insert a DVD/CD (it looks like a arrow with a disc on it)..., can that be turned off to? I was curious about that, if that can be done globally to, but either/and or would be great to know. ! Thank you Skan! You are the best! |
|
| Back to top |
|
 |
Question Guest
|
Posted: Sat Sep 01, 2007 2:26 am Post subject: |
|
|
+ I wanted to add in here, the little wait/flickering hourglass too is irritating to look at, ... hopefully maybe there is a way to turn off animated cursors -- but I do have a separate question about the "CD Mouse-Cursor", and turning that off specifically for that script :=) I hope I make sense.  |
|
| Back to top |
|
 |
Question Guest
|
Posted: Sun Sep 02, 2007 12:06 am Post subject: |
|
|
I found this, but not sure how to work it. My goal now is to change the default Hourglass/wait mousecursor to a default arrow. Can this be done using this code? Sorry, I am very bad with procedure to use DLL calls. Thank you for any assistance.
| Code: |
result1 := DllCall("LoadCursor", "Uint", NULL, "Int", IDC_ARROW, "Uint")
result2 := DllCall("SetSystemCursor", "Uint", result1, "Int", IDC_WAIT, "Uint")
|
|
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5884
|
Posted: Mon Sep 03, 2007 4:58 pm Post subject: |
|
|
| Question wrote: | | My goal now is to change the default Hourglass/wait mousecursor to a default arrow. Can this be done using this code? Sorry, I am very bad with procedure to use DLL calls. Thank you for any assistance. |
I am not sure and yet to try it but I think you can make the Cursor static by adapting the various code given in Hiding the mouse cursor
PS: Sorry for the late reply .. was not in town for couple of days! |
|
| 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
|