raca Posted April 9, 2006 Share Posted April 9, 2006 Hi i didn't know where to post my question so i did it here. I saw some scripts using win32 dlls and i want to use it too but i don't know where to find wich dll to use and how. Where do you find information about the win32 dlls? I'm trying to build a script to turn off a webpage on the desktop that is put there by default. I could move the mouse to the close button but i prefer to work with the dlls. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 9, 2006 Moderators Share Posted April 9, 2006 Hii didn't know where to post my question so i did it here.I saw some scripts using win32 dlls and i want to use it too but i don't know where to find wich dll to use and how.Where do you find information about the win32 dlls?I'm trying to build a script to turn off a webpage on the desktop that is put there by default.I could move the mouse to the close button but i prefer to work with the dlls.http://www.activevb.de/rubriken/apiviewer/...iviewereng.html Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
raca Posted April 9, 2006 Author Share Posted April 9, 2006 I'm learning about autoit and know am trying to play with windows dlls.i'm trying to change the desktop walpaperusing BOOL WINAPI SetDeskWallPaper( LPCSTR filename )and i do this:$filename="<path to a real image>" $resultado=DllCall("user32.dll","int","SetDeskWallpaper","str",$filename) if @error Then MsgBox(4096,"Error","no luck") Else MsgBox(4096,"Ok","resultado[0]= " & $resultado[0] & " resultado[1]= " & $resultado[1]) EndIfi found this function on the dll by search user32.dll and the info on http://source.winehq.org/source/dlls/user/desktop.c#L204 it's about wine.. but it chould be equal to win32 dlland it just remove the desktop image... weirdcan anyone help? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 9, 2006 Moderators Share Posted April 9, 2006 (edited) I'm learning about autoit and know am trying to play with windows dlls. i'm trying to change the desktop walpaper using BOOL WINAPI SetDeskWallPaper( LPCSTR filename ) and i do this: $filename="<path to a real image>" $resultado=DllCall("user32.dll","int","SetDeskWallpaper","str",$filename) if @error Then MsgBox(4096,"Error","no luck") Else MsgBox(4096,"Ok","resultado[0]= " & $resultado[0] & " resultado[1]= " & $resultado[1]) EndIf i found this function on the dll by search user32.dll and the info on http://source.winehq.org/source/dlls/user/desktop.c#L204 it's about wine.. but it chould be equal to win32 dll and it just remove the desktop image... weird can anyone help?Have you seen this thread? Let me know if it helps... I'm no good with DLLCalls, but I'll give it a whirl if not: http://www.autoitscript.com/forum/index.ph...ndpost&p=169241 Edit: I did some searching on "SetDeskWallpaper" , from what I see it's for 9x/NT machines... don't know if you knew that. Edited April 9, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
raca Posted April 12, 2006 Author Share Posted April 12, 2006 found how to change wallpaper... and it works only to bmps... now i'm trying to turn off active destkopi found source to do it in C/C++ and i'm trying to make it work on autoit but i'm having some problemsthis is how to do it: http://msdn.microsoft.com/msdnmag/issues/0.../c/default.aspxmy problem is working with the sctructs/classes cause with classes i can do classe.functionhow can i do this in autoit... or isn't possible? 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