Jump to content

Ken Nichols

Member
  • Posts

    6
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About Ken Nichols

Ken Nichols's Achievements

0

Reputation

  1. Thanks Mhz I did not realize I could not run 2 Functions at once. I have another question now. Forgive me for my explination! I don't know the proper way to describe it. If I have an application running (Active) that uses it's own F8-F9 commands how do I get my program to bypass that applications use of the F8-F9 keys?
  2. I can not get 2 While Statment to run at the same time. How can I achieve this? #include <GuiConstants.au3> Dim $MID, $Color HotKeySet("{F8}","Get_coord") HotKeySet("{F9}","Get_Color") Opt("MouseCoordMode", 1) Opt("PixelCoordMode", 1) Func Get_coord() $MID = NOT $MID While $MID $pos = MouseGetPos() ToolTip('Mouse coordinates ' & @CRLF & " X = " & $pos[0] & @CRLF & " Y = " & $pos[1],0,0) Sleep(20) WEnd ToolTip("") EndFunc Func Get_Color() $Color = NOT $Color While $Color $pos = MouseGetPos() $var = PixelGetColor( $pos[0],$pos[1] ) ToolTip('The hex color is ' & Hex($var, 6),0,55) Sleep(20) WEnd EndFunc
  3. Thanks to both of you! This is exactly what i was looking for! I KNEW MY WAY WORKED BUT, I ALSO KNEW THERE WHERE MUCH BETTER WAYS OF DOING IT THANKS ALOT!!!
  4. I would also like to know how to do this. Does anybody know if/how this can be done?
  5. First of all Forgive me if I posted this in the wrong place! I just want to get someone's opinion on how I wrote the following code. It does a search for all "CDROM" drives and adds a key in the registry (My Computer context menu ) allowing you to right click on a drive and select "Close Drive *:" It works fine but just wanted another opinion. Thanks for any help. FileCopy("CDR.exe", @WindowsDir & "\system32") For $i = 1 To 23 Step +1 If $i = 1 then $CD = "D" Elseif $i = 2 then $CD = "E" Elseif $i = 3 then $CD = "F" Elseif $i = 4 then $CD = "G" Elseif $i = 5 then $CD = "H" Elseif $i = 6 then $CD = "I" Elseif $i = 7 then $CD = "J" Elseif $i = 8 then $CD = "K" Elseif $i = 9 then $CD = "L" Elseif $i = 10 then $CD = "M" Elseif $i = 11 then $CD = "N" Elseif $i = 12 then $CD = "O" Elseif $i = 13 then $CD = "P" Elseif $i = 14 then $CD = "Q" Elseif $i = 15 then $CD = "R" Elseif $i = 16 then $CD = "S" Elseif $i = 17 then $CD = "T" Elseif $i = 18 then $CD = "U" Elseif $i = 19 then $CD = "V" Elseif $i = 20 then $CD = "W" Elseif $i = 21 then $CD = "X" Elseif $i = 22 then $CD = "Y" Elseif $i = 23 then $CD = "Z" Endif $var = DriveGetType ($CD & ":") $bat = "cmd /c start /min cmd /c CDR.exe close " & $CD & ":" if $var = ("CDROM") then RegWrite("HKEY_CLASSES_ROOT\Drive\shell\Close Drive" & " " & $CD & ":" & "\command", "", "REG_EXPAND_SZ", $bat) Next MsgBox(0, "Close CD Tray Installation", "Close CD Tray Installation has completed successfully!")
  6. Adobe Shockwave Player 11.0.3.470 Silent Installer I have been looking for a way to do a silent install of Shockwave Player for about a week now. I gave up looking and decided to try to make my own with AutoIt. See Attached. This will disable the Google toolbar installation and allow for a Unattended install of Adobe Shockwave Player 11.0.3.470 Shock.au3
×
×
  • Create New...