Jump to content

Need For Information :)


Recommended Posts

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

  • Moderators

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.

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

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?

Link to comment
Share on other sites

  • Moderators

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 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

found how to change wallpaper... and it works only to bmps...

now i'm trying to turn off active destkop

i found source to do it in C/C++ and i'm trying to make it work on autoit but i'm having some problems

this is how to do it: http://msdn.microsoft.com/msdnmag/issues/0.../c/default.aspx

my problem is working with the sctructs/classes cause with classes i can do classe.function

how can i do this in autoit... or isn't possible?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...