raca Posted April 19, 2006 Share Posted April 19, 2006 i have done this: #NoTrayIcon WinActive ( "Program Manager","FolderView") $FLAG = 0 While $FLAG = 0 $FLAG = ControlCommand ( "Program Manager","","Internet Explorer_Server2", "IsVisible") Sleep(500) WEnd Local $CurrentPos = MouseGetPos() BlockInput(1) MouseMove(@DesktopWidth-7,7,0) Sleep(500) MouseDown("left") MouseUp("left") BlockInput(0) MouseMove($CurrentPos[0], $CurrentPos[1], 0) this is meant to put a exe on startup folder on xp so it closes active desktop.. it works... but doesn't look good i have tried the SHGetSetSettings dll call but that for some reason didn't work on the computer that i want... probably a question of privileges... nothing on msdn again... i wanna do this on other way so haven't to move the mouse, i saw objcreate maybe that would work... couldn't find enought documention to know how to do it... any know how to do it? Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 19, 2006 Share Posted April 19, 2006 HI, sorry but I don't really get what you want to do. Do you want to close a window/process? Do you want to minimize all windows? P.S.: Maybe someone else could help... So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
raca Posted April 19, 2006 Author Share Posted April 19, 2006 i wanna a program that disables active desktop so that when i logon on the computer... it runs and close it. disables active desktop or just closes all websites opened on the desktop. i have no admin rights Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 19, 2006 Share Posted April 19, 2006 (edited) i wanna a program that disables active desktop so that when i logon on the computer... it runs and close it. disables active desktop or just closes all websites opened on the desktop. i have no admin rights HI, I cannot really test it. But I would write down the manual way you need to close it and then start to automate it via autoit. Think about: Is it a process? Can I open a DOS-Box and send commands from there? It is always the same manual way? ... I would avoid clicks! Good luck! So long, Mega P.S.: Sorry, that I couldn't help any more. Maybe just: #include <Process.au3> _RunDos("start taskkill /F /IM iexplore.exe") Exit(0) Edited April 19, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
raca Posted April 19, 2006 Author Share Posted April 19, 2006 (edited) i have this code on a exe... i runed it.. then do taskkill.. and started explorer again... it showed "Restore Active desktop" this way doesn't work$shellstate=DllStructCreate("int[13];uint") ;0x40 = 1 000 000 ;$enable=0x40 DllStructSetData ($shellstate,1,0) $SSF_DESKTOPHTML=0x00000200 DllCall("shell32.dll","none","SHGetSetSettings","ptr",DllStructGetPtr($shellstate),"int",$SSF_DESKTOPHTML,"int",TRUE); ControlSend("Program Manager","",1,"{F5}")for what i found we have the process explorer.exe that have the main window "Program Manager" that can have controls systrayview or internet explorer server1 if active desktop is on.Do controdisable or controlhide didn't work.I found this http://msdn.microsoft.com/library/default....tivedesktop.aspIt talks about IActiveDesktop object... i have tried to work with it when was trying some with C++ but it only worked on Visual C++ 6 wierd...Well... i hope someone... have the kindness to help me.... i will apreciate it...sometimes searching it ain't enough Edited April 19, 2006 by raca Link to comment Share on other sites More sharing options...
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