Jump to content

zeng

Members
  • Posts

    8
  • Joined

  • Last visited

zeng's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. The code I referred to is the one by Ripdad Local $ui = GUICreate('Level', 110, 160, -1, -1, Default, 0x00000008) Local $ProgressBar = GUICtrlCreateProgress(50, 20, 10, 120, 0x04) GUISetState(@SW_SHOW, $ui) ; Local $mciLevel, $lpszReturnString Local $mciInit = DllCall('winmm.dll', 'long', 'mciSendStringA', 'str', 'open new type waveaudio alias mywave', 'str', $lpszReturnString, 'long', 64, 'long', 0) If $mciInit[0] <> 0 Then Exit ; Do $mciLevel = DllCall('winmm.dll', 'long', 'mciSendStringA', 'str', 'status mywave level', 'str', $lpszReturnString, 'long', 64, 'long', 0) If $mciLevel[0] <> 0 Then Exit ; If $mciLevel[2] > 60 Then MsgBox(64, 'Levels', 'Peaked > 60') GUICtrlSetData($ProgressBar, $mciLevel[2]); <-- here is the numeric audio level Until GUIGetMsg() = -3 ; GUIDelete($ui) Exit
  2. The code works very well and very elegant. However, I need to read the numeric value of the sound level. If I do a msbox showing $mciLevel[2], it is always 0, no matter what. Does anyone know why?
  3. It worked! You are a genius.
  4. I am new to this but ran into a problem that is very odd I am trying to use this software http://www.pdflabs.com/tools/pdftk-server/ to rotate pdf files in a folder on a Win XP computer. When I ran the script below, nothing happened (no new rotated pdf file was created). But if I use the clipput in the script and paste to run command, it works (a new rotated pdf file was generated). I am at lost why the same command within autoit did not work Thanks a lot for your help. #include <File.au3> $FileList = _FileListToArray("C:\Documents and Settings\zeng\Desktop\fax inbox\rotate\", "*.pdf", 1) If $FileList[0] > 0 Then For $n = 1 To $FileList[0] If StringInStr($FileList[$n], "rotate") = 0 Then $mycommand = 'pdftk "C:\Documents and Settings\zeng\Desktop\fax inbox\rotate\' & $FileList[$n] & '" rotate 1-endsouth output "C:\Documents and Settings\zeng\Desktop\fax inbox\rotate\' & StringTrimRight($FileList[$n], 4) & ' rotated.pdf"' ClipPut(@ComSpec & " /c " & $mycommand); for trouble shot Run(@ComSpec & " /c " & $mycommand, "", @SW_HIDE) EndIf Next EndIf
  5. How would one get Google Latitude location data into Autoit? I want to write a script that would change Google Voice's forward to phone number based on where the iPhone is. For example, when the iPhone is at my home location, Google Voice should be forwarded to home phone only. Whenever the iPhone leaves home, Google Voice would be automatically set to forward calls to iPhone only. Google Latitude App is already on the iPhone and constantly reports iPhone location to Google Latitude. The location is pin to google map, which I want Autoit to read. There is a Google latitude API.
  6. How would one get Google Latitude location data into Autoit? I want to write a script that would change Google Voice's forward to phone number based on where the iPhone is. For example, when the iPhone is at my home location, Google Voice should be forwarded to home phone only. Whenever the iPhone leaves home, Google Voice would be automatically set to forward calls to iPhone only. Google Latitude App is already on the iPhone and constantly reports iPhone location to Google Latitude. The location is pin to google map, which I want Autoit to read. There is a Google latitude API.
  7. This is a totally newbie question. I was not able to figure out how to do the 2nd step: (1) click link#4 from URL1, which becomes URL2, (2) click link #5 from URL2 #include <IE.au3> $oIE = _IEcreate (URL1) _IELinkClickByIndex ($oIE, 4) winwait (URL2) _IELinkClickByIndex (?, 5) What do I use for ? Since URL2 was arrived by clicking from URL1, I cannot use IEcreate or IENavigate to assign new $oIE, what is the solution? Thanks.
×
×
  • Create New...