Jump to content

Leaderboard

Popular Content

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

  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. Version 1.0.0

    299 downloads

    This is a modification of the Cookie Consent javascript from https://silktide.com/tools/cookie-consent/ The original was trying to be too clever for my tastes with multiple font sizes and sliders for different screen sizes. It didn't look great on my desktop, tablet, phone. It would I've stripped it down to the bare minimum to reduce distraction. It just features a single line in body text. The original version used an Amazon S3 address for the javascript and CSS which was OK but the Cache-Control / Expires headers are not present which wasn't great for PageSpeed/YSlow reports and caching. With this version you have to self-host the files. Of course if you use a CDN you can upload them there too. Whether it complies with the EU cookie law as implemented in your country is for you to determine - this implementation is fine for the UK and common to a number of notable websites such as http://www.theregister.co.uk (it's what I modelled the banner and CSS on). To use: - Upload the js and css files to your host somewhere. - Add this code to your pages just before the </head> tag. Modify the text as required and adjust the url for the css. Example: <!-- Begin Cookie Consent --> <script type="text/javascript"> window.cookieconsent_options = {"message":"This website uses cookies","dismiss":"Close","learnMore":"Find out more","link":"https://www.yoursite.com/site/cookie-policy/","theme":"//www.yoursite.com/js/cookieconsent/cookieconsent-dark.css"}; </script> <script type="text/javascript" src="//www.yoursite.com/js/cookieconsent/cookieconsent.min.js"></script> <!-- End Cookie Consent --> See the forum url for more details/discussion..
    1 point
  8. 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...