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 

auto-disc choices

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





PostPosted: Fri Aug 31, 2007 6:32 pm    Post subject: auto-disc choices Reply with quote

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 Smile

have a very nice day and thank you for support.
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 5884

PostPosted: Fri Aug 31, 2007 7:39 pm    Post subject: Reply with quote

My Computer > Right Click on Drive Letter > Select Properties > Select AutoPlay Tab > Select "Take no Action" > click Apply > Close

Smile
Back to top
View user's profile Send private message
question
Guest





PostPosted: Sat Sep 01, 2007 12:51 am    Post subject: Reply with quote

Rather than the automated hand step to do that, can it be scripted? Razz
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 5884

PostPosted: Sat Sep 01, 2007 1:06 am    Post subject: Reply with quote

question wrote:
Rather than the automated hand step to do that, can it be scripted? Razz


Do you mean temporarily ? Say AutoPlay should be supressed when your script is running ? Something like that ? Smile
Back to top
View user's profile Send private message
Question
Guest





PostPosted: Sat Sep 01, 2007 1:20 am    Post subject: Reply with quote

Yes please, that would be just perfect! Just for session only :=)
Back to top
superbem



Joined: 30 Jul 2007
Posts: 20

PostPosted: Sat Sep 01, 2007 1:21 am    Post subject: Reply with quote

There is a regkey to that, google it.
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5884

PostPosted: Sat Sep 01, 2007 1:29 am    Post subject: Reply with quote

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
}


Smile
Back to top
View user's profile Send private message
Question
Guest





PostPosted: Sat Sep 01, 2007 2:17 am    Post subject: Reply with quote

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. ! Smile Thank you Skan! You are the best!
Back to top
Question
Guest





PostPosted: Sat Sep 01, 2007 2:26 am    Post subject: Reply with quote

+ 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. Embarassed
Back to top
Question
Guest





PostPosted: Sun Sep 02, 2007 12:06 am    Post subject: Reply with quote

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

PostPosted: Mon Sep 03, 2007 4:58 pm    Post subject: Reply with quote

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

Smile

PS: Sorry for the late reply .. was not in town for couple of days!
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