Jump to content

Maffe811

Active Members
  • Posts

    654
  • Joined

  • Last visited

About Maffe811

  • Birthday 04/02/1995

Profile Information

  • Member Title
    Sir Longbottle
  • Location
    Norway

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Maffe811's Achievements

Universalist

Universalist (7/7)

0

Reputation

  1. 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?
  2. 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?
  3. Thank you! Exactly what i needed!
  4. Can anyone explain me how to get, lets say a message box to pop up when the computer is shuttingdown/logging off ? Cause i've tried making it work, but nothing makes it work. GUIRegisterMsg($WM_QUERYENDSESSION, "Cancel_Shutdown") GUICreate("PreventShutdownGUI") GUISetSTate(@SW_HIDE) ; set highest notification level If Not _SetProcessShutdownParameters(0xFFF) Then ; MSDN says maximum is 0x4FF, but it worked for me If Not _SetProcessShutdownParameters(0x4FF) Then ; MSDN says this is reserved for System, but worked for me _SetProcessShutdownParameters(0x3FF) ; highest not reserved number, if everything else does not work EndIf EndIf Global $b_ShutdownInitiated = False While 1 If $b_ShutdownInitiated = True then $b_ShutdownInitiated = False MsgBox(48 + 8192 + 262144, "Installer", "Ending your user session has been disabled to allow the installation to complete." _ & @CRLF & @CRLF & "You will be able to shutdown/reboot/logoff once the installation process has completed." , 8) EndIf sleep(10) WEnd Func Cancel_Shutdown($hWndGUI, $MsgID, $WParam, $LParam) $b_ShutdownInitiated = True ; DO NOT ADD A MSGBOX HERE ; Windows shows a not responding box after ~5 secs and allows to kill your app. Return False EndFunc Func _SetProcessShutdownParameters($dwLevel, $dwFlags=0) ; <a href='http://msdn.microsoft.com/en-us/library/ms686227%28VS.85%29.aspx' class='bbc_url' title='External link' rel='nofollow external'>http://msdn.microsoft.com/en-us/library/ms686227%28VS.85%29.aspx</a> ; Prog@ndy Local $aResult = DllCall("Kernel32.dll", "int", "SetProcessShutdownParameters", "dword", $dwLevel, "dword", $dwFlags) If @error Then Return SetError(1,0,0) Return $aResult[0] EndFunc
  5. Aaah... That makes sence! Thanks!
  6. After a quick search, this showed up: '?do=embed' frameborder='0' data-embedContent>> and one of the comments suggested this: GUIRegisterMsg($WM_QUERYENDSESSION, "Cancel_Shutdown") GUICreate("PreventShutdownGUI") GUISetSTate(@SW_HIDE) ; set highest notification level If Not _SetProcessShutdownParameters(0xFFF) Then ; MSDN says maximum is 0x4FF, but it worked for me If Not _SetProcessShutdownParameters(0x4FF) Then ; MSDN says this is reserved for System, but worked for me _SetProcessShutdownParameters(0x3FF) ; highest not reserved number, if everything else does not work EndIf EndIf Global $b_ShutdownInitiated = False While 1 If $b_ShutdownInitiated = True then $b_ShutdownInitiated = False MsgBox(48 + 8192 + 262144, "Installer", "Ending your user session has been disabled to allow the installation to complete." _ & @CRLF & @CRLF & "You will be able to shutdown/reboot/logoff once the installation process has completed." , 8) EndIf sleep(10) WEnd Func Cancel_Shutdown($hWndGUI, $MsgID, $WParam, $LParam) $b_ShutdownInitiated = True ; DO NOT ADD A MSGBOX HERE ; Windows shows a not responding box after ~5 secs and allows to kill your app. Return False EndFunc Func _SetProcessShutdownParameters($dwLevel, $dwFlags=0) ; <a href='http://msdn.microsoft.com/en-us/library/ms686227%28VS.85%29.aspx' class='bbc_url' title='External link' rel='nofollow external'>http://msdn.microsoft.com/en-us/library/ms686227%28VS.85%29.aspx</a> ; Prog@ndy Local $aResult = DllCall("Kernel32.dll", "int", "SetProcessShutdownParameters", "dword", $dwLevel, "dword", $dwFlags) If @error Then Return SetError(1,0,0) Return $aResult[0] EndFunc And not 100% sure what everything does, but i can't even test it because this comes up: WARNING: $WM_QUERYENDSESSION: possibly used before declaration. GUIRegisterMsg($WM_QUERYENDSESSION, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ and i don't know what i need to do to fix it. Any suggestions?
  7. My mistake, I should change the title then. ​ But the trick LarsJ posted seemed to have done the trick.
  8. This is an error in IE.au3 so i asume the script doesn't really matter. I'll try it, thanks.
  9. C:\Program Files (x86)\AutoIt3\Include\IE.au3 (1912) : ==> Array variable subscript badly formatted.: Local $a_TableCells[$i_cols][$i_rows] Local $a_TableCells[^ ERROR I got this in the console and I have no idea what to do.
  10. I see you used _IEGetObjById to get the table, i tried the same but i think i tried to get it by class. But this is really amazing. Thank you very much! I'll keep working with it! Thanks again!
  11. Im just guessing, but im pretty sure you have to actually code the tabs and not just enable it.
  12. http://www.bkr.se/sok-plattsattare.aspx Lower down in this link ^ there is a table and if you click each company (example "Kimstad Bygg AB") a window will popup and give you info. Im trying to get this info into a variable in the first place. Problem is that the clicking of the link is part of jquery and inspecting element in chrome on the info window takes me to a different page than doing that on the background. Im really confused on how to get the info form one info window, then close and click the next company and get the next info out of the next info window. Any suggestions ?
  13. Thank you! Thank you! Thank you! Thank you! Thank you! That worked perfectly! Thank you!
  14. Is it deleted into the void? Because i can't find it in my trash bin. Any help/suggestions where i can find my deleted folders/files will be appriciated. Im allready running a recuvva scan.
  15. Okay, just gotta have to work with it then. Thanks for the reply!
×
×
  • Create New...