Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/26/2015 in Posts

  1. You can do something like this: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $widht = 600 $height = 400 $hgui = GUICreate("",$widht,$height, Default, Default, BitOR($WS_MINIMIZEBOX, $WS_SIZEBOX, $WS_MAXIMIZEBOX)) GUISetState(@SW_SHOW) GUIRegisterMsg($WM_NCHITTEST, "WM_NCHITTEST") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $GUI_EVENT_RESIZED $aPos = WinGetClientSize ($hgui) WinMove($hgui,"",Default,Default,$aPos[0],$aPos[0]/($widht/$height)) EndSwitch WEnd Func WM_NCHITTEST($hWnd, $iMsg, $iwParam, $ilParam) Local $aPos=MouseGetPos() Local $aWin=WinGetPos($hWnd) Local $imX=$aPos[0] Local $imY=$aPos[1] Local $iwX=$aWin[0]+$aWin[2]-8 Local $iwY=$aWin[1]+$aWin[3]-8 If not ($imX>$iwX and $imX<$iwX+8 and $imY>$iwY and $imY<$iwY+8) Then Return 0 EndFuncSaludos
    2 points
  2. Use PrtScn and get the color from a screenshot?
    1 point
  3. mLipok

    Kube CSS Framework

    Today I came acros this: https://imperavi.com/kube/ LicenseKube licensed under MIT.Kube Framework is absolutely free for personal or commercial use. https://imperavi.com/kube/css/ Maybe this framework became usefull for some body mLipok
    1 point
  4. @Jos I think he means something like this: Local $oObject $oObject = ObjCreate("shell.application") ; SciTE will detect that this is a object by this line Local $oNotAnObject = "" ; SciTE will no detect this as an object
    1 point
  5. ---==== 1.9.5 ====--- - Fixed crash when selecting AutoIt Help - Set version number as 1.9.5 - Updated version history
    1 point
  6. Sorry about that, fixed worked around.
    1 point
  7. McCookieM

    Chrome UDF

    I think I may have stumbled on the cause of the problem that some people are coming across where this UDF does not appear to work. I too had issues with Chrome opening fine, shutting down fine, but no communication could be made with the messaging host. Everything always timed out. My software info: Win 7 x64 Chome 33 AutoIt 3.3.6 Firstly I discovered that no registry entry had been made for me during installation. I did have a SoftwareGoogleChrome entry under HKEY_CURRENT_USER but no NativeMessagingHosts key. As per a previous post, I decided to put the keys where specified so had to create a SoftwareGoogleChromeNativeMessagingHosts key tree under HKEY_LOCAL_MACHINE. Still having problems I put the same registry entries under HKEY_CURRENT_USER but still no go (after discovering the actual problem later I think either location should be fine) After finding the great post detailing a full breakdown of the UDF and how it all works, I went though step by step and discovered that the first time Chrome is run, the autoit-chrome-native-messaging-host process was running. Now, here comes the root problem (I think). If you run the command _ChromeShutdown() from AutoIt at the beginning of your script (which closes Chrome windows and kills the autoit-chrome-native-messaging-host process), then your next _ChromeStartup command will NOT re-open the messaging process. I think it's down to having multiple chrome processes still running (non-windowed like other plugins) so Chrome doesn't do a fresh startup and doesn't restart it's messaging hosts. So, short answer just now is to close your chrome windows (and chrome processes) manually and only use _ChromeShutdown() at END of script. Now the UDF works fine. Although you've still got to end all chrome processes manually before you run your script again. Over to the developer. Not sure it's the best way, but you could end all chrome.exe processes in the _Shutdown function rather than closing any open Chrome windows. I'm sure you'll find a better way. Hope this helps some of you.
    1 point
×
×
  • Create New...