Sign in to follow this  
Followers 0
raca

Need For Information :)

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

[center]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.[/center]

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by SmOke_N

[center]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.[/center]

Share this post


Link to post
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?

Share this post


Link to post
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
Sign in to follow this  
Followers 0