therks Posted February 23, 2007 Share Posted February 23, 2007 If you explore that site a little you'll be able to find the source for that program, which you could analyze and then maybe come up with a way to do this in AutoIt. Emphasis on maybe. I'm just offering it as a suggestion.Download the source from here:http://sourceforge.net/project/showfiles.p...ckage_id=166050 My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
James Posted February 23, 2007 Share Posted February 23, 2007 You could use some True and False statements, in a while loop with hotkeys. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
testingtest Posted February 23, 2007 Author Share Posted February 23, 2007 thanks guys Link to comment Share on other sites More sharing options...
James Posted February 23, 2007 Share Posted February 23, 2007 No problem. I did try doing this once. I had it working so you could have hot keys which would lock or unlock the CD Tray, sometimes it would work but then you keep pressing and it doesn't.. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
testingtest Posted February 23, 2007 Author Share Posted February 23, 2007 No problem.I did try doing this once. I had it working so you could have hot keys which would lock or unlock the CD Tray, sometimes it would work but then you keep pressing and it doesn't..yea I had it lock but I notice if I pushed it in it does the same thing. Ill keep playing with it Link to comment Share on other sites More sharing options...
James Posted February 23, 2007 Share Posted February 23, 2007 Here is what I had: HotKeySet("!^u", "_Unlock") HotKeySet("!^l", "_Lock") HotKeySet("1", "_Msg") HotKeySet("{esc}", "_Esc") #NoTrayIcon $Lock = True While $Lock = True CDTray("D:", "closed") $Lock = True WEnd While $Lock = False $Lock = False WEnd Func _Unlock() $Lock = False EndFunc ;==>_Unlock Func _Lock() $Lock = True CDTray("D", "closed") EndFunc ;==>_Lock Func _Esc() Exit EndFunc ;==>_Esc Func _Msg() MsgBox(0, "CD Drive", $Lock) EndFunc ;==>_Msg It's messy, but it could work if someone can be bothered. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
testingtest Posted February 23, 2007 Author Share Posted February 23, 2007 Here is what I had: HotKeySet("!^u", "_Unlock") HotKeySet("!^l", "_Lock") HotKeySet("1", "_Msg") HotKeySet("{esc}", "_Esc") #NoTrayIcon $Lock = True While $Lock = True CDTray("D:", "closed") $Lock = True WEnd While $Lock = False $Lock = False WEnd Func _Unlock() $Lock = False EndFunc ;==>_Unlock Func _Lock() $Lock = True CDTray("D", "closed") EndFunc ;==>_Lock Func _Esc() Exit EndFunc ;==>_Esc Func _Msg() MsgBox(0, "CD Drive", $Lock) EndFunc ;==>_Msg It's messy, but it could work if someone can be bothered. thanks nice picture Link to comment Share on other sites More sharing options...
James Posted February 23, 2007 Share Posted February 23, 2007 No problem. Its my real identity! I'm that person, well dog behind my screen. Woof! Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Shevilie Posted February 23, 2007 Share Posted February 23, 2007 (edited) WTF - Damn ugly code there would eat all your CPU and you can only lock / unlock one time While $Lock = True CDTray("D:", "closed") $Lock = True WEnd While $Lock = False $Lock = False WEnd Edited February 23, 2007 by Shevilie Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
testingtest Posted February 23, 2007 Author Share Posted February 23, 2007 No problem.Its my real identity! I'm that person, well dog behind my screen. Woof!hehe looks like a counter strike dog with his little microphone. I have to get ready for school peace out guys Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now