Jump to content

Removing the border on non AutoIt windows possible?


Recommended Posts

I have made a borderless faker, which moves the window X pixels over the edge, which gives the illusion of borderless mode and works perfectly fine.
But the edge goes over in my other screens and i was just wondering if it's actually possible to remove the border of the other programs?

[font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]

Link to comment
Share on other sites

First, thanks!

Second, i tried doing this:
 

#include <WinAPI.au3>
#include <WindowsConstants.au3>

Func BorderRemover()
    $Handle = WinGetHandle("")
    _WinAPI_SetWindowLong($Handle, $GWL_STYLE, $WS_POPUPWINDOW)
;~  _WinAPI_SetWindowLong($Handle, $GWL_EXSTYLE, $WS_EX_CLIENTEDGE)
EndFunc

Func Quit()
    Exit
EndFunc   ;==>Quit

HotKeySet("{F9}", "BorderRemover")
HotKeySet("{F10}", "Quit")

While 1
    Sleep(40)
WEnd

And tried it on notepad, made notepad active and hit F9, but no matter what the 2nd and 3rd parameter of _WinAPI_SetWindowLong is set to it does the same thing:
Remove the top bar and replace it with random stuff from the screen or white space and then freezes the program.

Any suggestions?

[font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...