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 (7/7)
0
Reputation
-
Removing the border on non AutoIt windows possible?
Maffe811 replied to Maffe811's topic in AutoIt General Help and Support
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? -
Thank you! Exactly what i needed!
-
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
-
Aaah... That makes sence! Thanks!
-
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?
-
How do you do javascript/jquery with the IE things?
Maffe811 replied to Maffe811's topic in AutoIt General Help and Support
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! -
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 ?
-
Accidental DirRemoved the wrong folder
Maffe811 replied to Maffe811's topic in AutoIt General Help and Support
Thank you! Thank you! Thank you! Thank you! Thank you! That worked perfectly! Thank you! -
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.
-
GuiOnEventMode and multiple guis not working
Maffe811 replied to Maffe811's topic in AutoIt General Help and Support
Okay, just gotta have to work with it then. Thanks for the reply!