Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/24/2015 in all areas

  1. I found the problem in the UDF. The function _APEv2Tag_ReadFromFile is missing a FileClose before it returns at the end. So if there's no APE tags found in the file, the handle doesn't get closed. Add this line just before the return statement. FileClose($hfile) ; <<<<<<<<<<<<<<<<<<<<<<<< Add this line Return $APEv2_TAGINFO
    1 point
  2. Well, I don't know that we can help any further, going by the simplicity of the code you posted. It is possible perhaps, that something hasn't returned correctly for you when reading the ID3 tags, and thus the MP3 file is locked. How many MP3 files from different sources have you tried? It could be, that something in the tags is causing the issue, as we have not had this reported before .... APE tags perhaps or a really long entry, etc? Have you tried to manually delete before closing the program? If the file is locked, Windows should tell you. Knowing what versions of Windows and AutoIt, might help too. As for another program locking the file, it could be as simple as Anti-Virus, and so not obvious.
    1 point
  3. it seems like page requiere some input event. try this way: _IEAction($Username_Field,"focus") Send($Username)Or _IEAction($Username_Field,"focus") Send("aa") ;just a dummyvalue _IEFormElementSetValue($Username_Field,$Username)Saludos
    1 point
  4. Does this script return you the pwd and user fields? #include<IE.au3> $IE =_IECreate("https://my.ovoenergy.com/login") $Username = "Some_Username" $Password = "Some_Password" $Username_Field = _IEGetObjById($IE,"username") $Password_Field = _IEGetObjById($IE,"password") $Login_Button = _IEGetObjById($IE, "enter") ;Open Browser and wait until Browser loaded _IELoadWait($IE) ;~ msgbox(0,"By ID Username:",$IE.document.getElementById('username').value) ;~ msgbox(0,"By ID Password:",$IE.document.getElementById('password').value) ;Set Inputs ;~ sleep(2500) _IEFormElementSetValue($Username_Field,$Username) ;~ sleep(2500) _IEFormElementSetValue($Password_Field,$Password) ;~ sleep(2500) msgbox(0,"By ID Username:",$IE.document.getElementById('username').value) msgbox(0,"By ID Password:",$IE.document.getElementById('password').value) Saludos
    1 point
  5. For me it works well. it sets user and password correctly. Saludos
    1 point
  6. Melba23

    Creat a Ruler

    Syxguns, Welcome to the AutoIt forums. Getting bored waiting for our Xmas guests to arrive - this seems to be close to what you are seeking: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <WINAPI.au3> ; Allow GUI to be closed HotKeySet("ESC", "_Exit") ; Array to hold action controlIDs Global $aAction[8] ; Create popup GUI with layers $hGUI = GUICreate("Test", 400, 100, Default, Default, $WS_POPUP, $WS_EX_LAYERED) ; Make main GUI transparent GUISetBkColor(0xABCDEF) _WinAPI_SetLayeredWindowAttributes($hGUI, 0xABCDEF, 250) ; Create ruler - adjust values to fit your requirements GUICtrlCreateLabel("", 0, 50, 5, 50) GUICtrlSetBkColor(-1, 0) For $i = 0 To 11 GUICtrlCreateLabel("", 33 * $i, 60, 2, 30) GUICtrlSetBkColor(-1, 0) Next GUICtrlCreateLabel("", 395, 50, 5, 50) GUICtrlSetBkColor(-1, 0) ; Create action labels For $i = 1 To 7 $aAction[$i] = GUICtrlCreateLabel($i, 70 + (30 * $i), 0, 20, 20, BitOr($SS_CENTER, $SS_CENTERIMAGE)) GUICtrlSetBkColor(-1, 0) GUICtrlSetColor(-1, 0xFFFFFF) Next GUISetState() While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $GUI_EVENT_CLOSE Exit Case $GUI_EVENT_PRIMARYDOWN ; Drag GUI if mouse button pressed - need to be over ruler _SendMessage($hGUI, $WM_SYSCOMMAND, 0xF012, 0) Case Else For $i = 1 To 7 ; Label actioned? If $iMsg = $aAction[$i] Then ; Announce it MsgBox($MB_SYSTEMMODAL, "Pressed", "Action " & $i) ; No point in looking further ExitLoop EndIf Next EndSwitch WEnd Func _Exit() Exit EndFuncHave a play with it and see if it does what you want. M23
    1 point
  7. if you are trying to use the timerinit instead of sleep to run your code every 20 mins then try this $iTimer = TimerInit() $minutes = 1 ;the timer will trigger at this amount of minutes While 1 If TimerDiff($iTimer) / 1000/60 >= $minutes Then $iTimer = TimerInit() ;reset timer so it can trigger again in X minutes set at $minutes consolewrite ("!TIMER was triggered"&@LF) ;~ wave1() ;~ wave2() EndIf ;~ consolewrite ("diff="&TimerDiff($iTimer)/1000/60&@crlf) Sleep(1000) WEnd
    1 point
×
×
  • Create New...