corgano Posted December 1, 2008 Posted December 1, 2008 (edited) i made this out of the guihole example on this form. it could be used in a game or something....it defies explanation, but i would like feedback*EDIT*thank you ProgAndy for the help. changing 3 words made it work....lolhere is the new scriptmouse_candel.au3it works Edited December 3, 2008 by corgano 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e
Delta Posted December 1, 2008 Posted December 1, 2008 It's a nice concept and it worked for about 5 seconds and then it just made my screen bug out with funky colors. [size="1"]Please stop confusing "how to" with "how do"[/size]
BrettF Posted December 1, 2008 Posted December 1, 2008 Worked good for me Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
NELyon Posted December 1, 2008 Posted December 1, 2008 Worked fine for me. Although, any menus (is that how you say "menu" in plural?) seem to be drawn above the GUI, so they are entirely shown. Still a cool concept.
corgano Posted December 1, 2008 Author Posted December 1, 2008 It's a nice concept and it worked for about 5 seconds and then it just made my screen bug out with funky colors.lolsend me a screenshot and i will see what i can do. i used the newest beta, btw. 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e
Christos Posted December 2, 2008 Posted December 2, 2008 Very nice....until I tried to move the mouse to the second monitor. It causes a bug! 90 100% CPU load until I got killed the script, tested on Vista 32bit.
Skrip Posted December 2, 2008 Posted December 2, 2008 (edited) Pretty nice. I like it. EDIT: After reading post above, I tried to move to my second monitor. It doesn't bug out, but the black shade does not extend to that monitor, so it does nothing. Edited December 2, 2008 by Firestorm [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
UEZ Posted December 2, 2008 Posted December 2, 2008 I can confirm what Christos said. When the focus gets lost on window then the hole disappears and the CPU usage is going crazy. No chance to get the hole back. You need to kill the process. UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
corgano Posted December 2, 2008 Author Posted December 2, 2008 Pretty nice. I like it.EDIT: After reading post above, I tried to move to my second monitor. It doesn't bug out, but the black shade does not extend to that monitor, so it does nothing.I knew that wouldnt work. to get that to work, i would have to find the second moniters hight and width, and i dont have 2 moniters so i dont think i will be doing that.i also got the bug that many of you comented on (glichy screen). i know it is caused by the hole makeing script, but how i fix it i do not know.maby its because its drawing mutiple holes over each other?still working on it 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e
Delta Posted December 2, 2008 Posted December 2, 2008 lolsend me a screenshot and i will see what i can do. i used the newest beta, btw.I can't. When it bugs out it causes an insufficient memory error when trying to take a screenshot. [size="1"]Please stop confusing "how to" with "how do"[/size]
ludocus Posted December 3, 2008 Posted December 3, 2008 it worked, until I went to the side of my monitor (with my mouse)
ProgAndy Posted December 3, 2008 Posted December 3, 2008 Dind't work for me, too. Changed the _GUIHole to this and it works: Func _GuiHole($h_win, $i_x, $i_y, $i_size) Dim $pos, $outer_rgn, $inner_rgn, $wh, $combined_rgn, $ret $pos = WinGetPos($h_win) $outer_rgn = DllCall("gdi32.dll", "hwnd", "CreateRectRgn", "long", 0, "long", 0, "long", $pos[2], "long", $pos[3]) If IsArray($outer_rgn) Then $inner_rgn = DllCall("gdi32.dll", "hwnd", "CreateEllipticRgn", "long", $i_x, "long", $i_y, "long", $i_x + $i_size, "long", $i_y + $i_size) If IsArray($inner_rgn) Then DllCall("gdi32.dll", "long", "CombineRgn", "hwnd", $outer_rgn[0], "hwnd", $outer_rgn[0], "hwnd", $inner_rgn[0], "int", 4) $ret = DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "hwnd", $outer_rgn[0], "int", 1) ;~ DllCall("gdi32.dll", "long", "DeleteObject", "hwnd", $inner_rgn[0]) If $ret[0] Then Return 1 Else Return 0 EndIf Else Return 0 EndIf Else Return 0 EndIf EndFunc ;==>_GuiHole *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
AzKay Posted December 3, 2008 Posted December 3, 2008 After 10~ seconds or so, The hole goes away, and the GUI just flashes ontop. # MY LOVE FOR YOU... IS LIKE A TRUCK- #
FireFox Posted December 3, 2008 Posted December 3, 2008 After 10~ seconds or so, The hole goes away, and the GUI just flashes ontop.Same thing for me
oMBRa Posted December 3, 2008 Posted December 3, 2008 both functions of corgano and progandy works for me
UEZ Posted December 3, 2008 Posted December 3, 2008 This one worked for me: expandcollapse popup#include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $VirtualDesktopWidth = DLLCall("user32.dll", "int", "GetSystemMetrics", "int", 78);sm_virtualwidth $VirtualDesktopWidth = $VirtualDesktopWidth[0] $VirtualDesktopHeight = DLLCall("user32.dll", "int", "GetSystemMetrics", "int", 79);sm_virtualheight $VirtualDesktopHeight = $VirtualDesktopHeight[0] $VirtualDesktopX = DLLCall("user32.dll", "int", "GetSystemMetrics", "int", 76);sm_xvirtualscreen $VirtualDesktopX = $VirtualDesktopX[0] $VirtualDesktopY = DLLCall("user32.dll", "int", "GetSystemMetrics", "int", 77);sm_yvirtualscreen $VirtualDesktopY = $VirtualDesktopY[0] Global $hGUI = GUICreate("Test", $VirtualDesktopWidth, $VirtualDesktopHeight, $VirtualDesktopX, $VirtualDesktopY, $WS_POPUP, BitOr($WS_EX_TOPMOST, $WS_EX_TOOLWINDOW)) HotKeySet("{ESC}", "Quit") GUISetBkColor (0x000000) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() $pos = MouseGetPos() _GuiHole($hGUI , $pos[0]-90, $pos[1]-70, 200) Sleep(1) Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Quit() ; exit program Exit EndFunc Func _GuiHole($h_win, $i_x, $i_y, $i_size) ;modified code by ProgAndy Dim $pos, $outer_rgn, $inner_rgn, $wh, $combined_rgn, $ret $pos = WinGetPos($h_win) $outer_rgn = DllCall("gdi32.dll", "hwnd", "CreateRectRgn", "long", 0, "long", 0, "long", $pos[2], "long", $pos[3]) If IsArray($outer_rgn) Then $inner_rgn = DllCall("gdi32.dll", "hwnd", "CreateEllipticRgn", "long", $i_x, "long", $i_y, "long", $i_x + $i_size, "long", $i_y + $i_size) If IsArray($inner_rgn) Then DllCall("gdi32.dll", "long", "CombineRgn", "hwnd", $outer_rgn[0], "hwnd", $outer_rgn[0], "hwnd", $inner_rgn[0], "int", 4) $ret = DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "hwnd", $outer_rgn[0], "int", 1) ;~ DllCall("gdi32.dll", "long", "DeleteObject", "hwnd", $inner_rgn[0]) If $ret[0] Then Return 1 Else Return 0 EndIf Else Return 0 EndIf Else Return 0 EndIf EndFunc ;==>_GuiHole Please test! I will test it with dual monitor tomorrow in the office . UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
corgano Posted December 3, 2008 Author Posted December 3, 2008 Same thing for me fixed. see first post 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now