Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/19/2014 in all areas

  1. If I had deleted the attachments where I didn't get any feedback within 2 days I would have 50% of the published attachments right now. Sorry to say that but that's lame. Edit: illegitimate reason probably misuse for botting? Anyhow, any illegality probably M23 will see and close the topic. It is still open. Br, UEZ
    1 point
  2. One of the reasons you deleted it was because you didn't get any comments in 2 days? On a weekend? On a script that will probably only be used by a few people, even if the script itself was useful?
    1 point
  3. Probably because you ran your script in x86 mode. Try with x64.
    1 point
  4. [NEW VERSION] - 19 May 14 Added: - 1. A new function _GUIFrame_ResizeState to indicate when frames have been resized and the resizing is complete. The idea is to help users who fill frames with elements which require heavy processing (e.g. GDI images) and where continually rewriting the content would cause severe slowdowns. The function is called in the script idle loop and returns an array of flags indicating that a resizing action is complete. - 2. A new parameter ($fShowWindow) in the _GUIFrame_Create function. A few people have found that the frames do not always appear on creation - particularly if the GUI does not have focus during this process. KaFu came up with a workaround, not approved by the AutoIt devs, using the API to confirm the frame display. Setting this new parameter to True uses the API call - use it at your own risk and peril! Fixed: A couple of minor bugs which no-one had noticed - and now never will. New code below and in the first post. M23
    1 point
  5. Palestinian

    FTP and loop

    Try putting everything inside your loop while 1 $hOpen = _FTP_Open('MyFTP Control') $hConn = _FTP_Connect($hOpen, "ftp.0fees.us", "0fe_14780533", "Devilmaycry") _FTP_FileGet($hConn,"/htdocs/0.mp4","temp.mp4") If FileRead("temp.mp4") <> FileRead("0RAW.mp4") Then ConsoleWrite("this is if") Local $Ftpc = _FTP_Close($hConn) Local $Ftpo = _FTP_Close($hOpen) WEnd Try using = instead of <> and your consol will get spammed
    1 point
  6. Hi, Welcome to the autoit forum #include <Timers.au3> #include <Misc.au3> Global $iPid = 0 While 1 ;loop to constantly check conditions If ($iPid = 0 Or ProcessExists($iPid) = 0) And _Timer_GetIdleTime() > 5000 Then ;if notepad isn't opened ;and the user is idle for more than 5secs $iPid = Run("notepad") EndIf If $iPid > 0 And _Timer_GetIdleTime() < 500 Then ;if notepad is opened ;and the user isn't idle ProcessClose($iPid) $iPid = 0 EndIf WEnd Note : _Singleton can not be used here to avoid reopening a process, it can only be used for your own script unless you know the target process is using the function with the "occurrence identifier". Br, FireFox.
    1 point
  7. iCode

    HotKey UDF

    works fine after i changed a couple things - you used '$WS_SYSMENU' twice and other styles you chose are breaking it - see the help file for gui control styles #include <GUIConstantsEx.au3> #include "F:\AutoIt\Resources\Funcs\_other\HotKey_Yashid\HotKey_2.1b.au3" #include "F:\AutoIt\Resources\Funcs\_other\HotKey_Yashid\HotKey_vkConstants.au3" Global $hWnd $hWnd = GUICreate("HotKeys", 800, 600) ;, -1, -1, BitOR($WS_CAPTION, $WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_SYSMENU, $DS_CONTEXTHELP, $WS_SYSMENU, $WS_VISIBLE, $WS_CLIPCHILDREN, $WS_THICKFRAME)) GUISetState(@SW_SHOW, $hWnd) _HotKey_Assign($VK_RETURN, "PressedEnter", $HK_FLAG_NOBLOCKHOTKEY, $hWnd) ConsoleWrite("error=" & @error & @LF) While GUIGetMsg() <> $GUI_EVENT_CLOSE Sleep(10) WEnd GUIDelete($hWnd) Exit Func PressedEnter() ConsoleWrite("Pressed enter") EndFunc ...
    1 point
×
×
  • Create New...