Jump to content

buzz44

Active Members
  • Posts

    1,349
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

buzz44's Achievements

Universalist

Universalist (7/7)

1

Reputation

  1. So you fixed it? I think the AutoIt "IDE" is alot like most C++ IDE's, which can give you misleading errors, specially if you miss a semi-colon .
  2. That is the easiest way, and that SHOULD work. Is $DeadEnd a constant?
  3. And your SURE your not declaring $BlockH anywhere else?
  4. If your going to change them later why make them constants @@? Do you need to "protect" the original 16 and 11 values? If your not going to change the variables (meaning your calculations are correct), and not have them constant, just don't use them. Edit: Can you declare 2 variables on the same line in AutoIt? (I forget ). Perhaps... Global Const $BlockH = 11 Global Const $BlockW = 16
  5. , what line number does it indicate the error is on SimpleMindedFool?
  6. $BlkH / $BlkW arn't constants but, and hes not changing the values of $BlockH or $BlockW.
  7. Func _WaveVolGet() Local $WaveVol = -1, $p, $ret Const $MMSYSERR_NOERROR = 0 $p = DllStructCreate ("dword") If @error Then Return -1 EndIf $ret = DllCall("winmm.dll", "long", "waveOutGetVolume", "long", -1, "long", DllStructGetPtr ($p)) If ($ret[0] == $MMSYSERR_NOERROR) Then $WaveVol = Round(Dec(StringRight(Hex(DllStructGetData ($p, 1), 8), 4)) / 0xFFFF * 100) EndIf DllStructDelete ($p) Return $WaveVol EndFunc ;==>_WaveVolGetTry this, thanks to gafrost . I THINK it should return 0 if the sound is muted but I can't test it, sorry. Edit: Try here for a slightly updated version of the function > http://www.autoitscript.com/forum/index.ph...p;hl=sound+mute
  8. If you just want the illusion of the mouse not moving you could click the Start button then return the mouse to its original position, the user would only see a flicker. Alternatively, if you need to click the start button, try the Windows key .
  9. Do you mean addition and subtraction of time? If so you might want to look at some UDF's I created a while back > _TimeAdd/_TimeSub.
  10. You want to put it in a function and call it whenever you need it. While 1 _DoStuff() WEnd Func _DoStuff() MouseClick("left", 89, 221) Sleep(500) MouseClick("left", 130, 367) Sleep(1500) Send("{PGDN}") Sleep(500) MouseClick("left", 119, 563) Sleep(1000) Send("Skerb's Message") Sleep(1000) Send("{TAB}") Sleep(200) Send("{TAB}") Sleep(200) Send("{TAB}") Sleep(200) EndFunc ? *WARNING* The above script will call the fcuntion over and over again sending keystrokes and clicking. I couldn't be bothered adding a Hotkey and just wanted to show you how to do it ^6^.
  11. Can you post an example or some pseudocode?
  12. ; Generated by AutoIt Scriptomatic $strComputer = InputBox("Printer Shares", "Enter IP or Server Name") If Not @error Then $wbemFlagReturnImmediately = 0x10 $wbemFlagForwardOnly = 0x20 $colItems = "" $Output = "" $Output = $Output & "Computer: " & $strComputer & @CRLF $Output = $Output & "==========================================" & @CRLF $objWMIService = ObjGet ("winmgmts:\\" & $strComputer & "\root\CIMV2") $colItems = $objWMIService.ExecQuery ("SELECT * FROM Win32_PrinterShare", "WQL", _ $wbemFlagReturnImmediately + $wbemFlagForwardOnly) If IsObj ($colItems) then For $objItem In $colItems $Output = StringTrimRight (StringMid ($objItem.Dependent, StringInStr ($objItem.Dependent, '="') +2), 1) If MsgBox (1, "WMI Output", $Output) = 2 Then ExitLoop $Output = "" Next Else MsgBox (0, "WMI Output", "No WMI Objects Found for class: " & "Win32_PrinterShare") EndIf EndIfThe above was transcribed by Gary. I can't test it because I don't have Admin rights on this computer .
  13. I knew my SQL experience would come in handy sometime lol ! I'll look into it when I get home JS .
  14. Just copy/paste the code I provided @@.
  15. If you can, kill explorer at the start of the script, and run it again using... Run ("explorer.exe") ;and ProcessClose ("explorer.exe")Or only do that IF a file is in use.
×
×
  • Create New...