Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2004
    Location
    Altai
    Posts
    8

    Grin Set Desk Wall Paper?

    Hi all!

    I using vb 5.0 - wrote:
    ------------------------------------------
    Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long
    Public Const SPI_SETDESKWALLPAPER = 20

    Public Sub SetWallpaper(File As String)
    SystemParametersInfo SPI_SETDESKWALLPAPER, 0, ByVal File, True
    End Sub

    --------------------------------------------
    But what do this on AMS 5.0 ?

    I Beg pardon for my bad english, hope that understood...

    Jazator.

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Try something like this:

    Code:
    strFile="C:\\Windows\\Soap Bubbles.bmp"
    result = DLL.CallFunction(_SystemFolder .. "\\User32.dll", "SystemParametersInfoA", "20,0,\"" .. strFile .. "\",-1", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)

    Quote Originally Posted by Jazator
    Hi all!

    I using vb 5.0 - wrote:
    ------------------------------------------
    Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long
    Public Const SPI_SETDESKWALLPAPER = 20

    Public Sub SetWallpaper(File As String)
    SystemParametersInfo SPI_SETDESKWALLPAPER, 0, ByVal File, True
    End Sub

    --------------------------------------------
    But what do this on AMS 5.0 ?

    I Beg pardon for my bad english, hope that understood...

    Jazator.

  3. #3
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    There is a posted application that shows how to do this too. It might be in AMS4 however. But it is out there.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  4. #4
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    How soon we forget TJ_Tigger is being very modest, but I believe that this app shows you what you're looking for. I've applied this to a few of my apps so far. Scroll down to Tigg's first post.

    http://www.indigorose.com/forums/sho...picture+viewer

    Enjoy!

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Wasn't trying to be modest, just lazy. Didn't have time to search, but I think that Worm had a project demonstrating the same thing without all my convoluted code.

    Quote Originally Posted by rhosk
    How soon we forget TJ_Tigger is being very modest, but I believe that this app shows you what you're looking for. I've applied this to a few of my apps so far. Scroll down to Tigg's first post.

    http://www.indigorose.com/forums/sho...picture+viewer

    Enjoy!
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  6. #6
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    TJ, these are great learning tools for all. What some need to realize is - without getting the exact code they may be trying to gain; if you take some of these apps apart, you can usually end up with what you're looking for. Am I making sense? I've learned a **** of a lot from many members here and not just from code give-aways (even though [you] do that often ). I have referred to that Picture Viewer a few times in building some of my apps and have learned much in the process. Hope they take it for what it's worth ($$$).

  7. #7
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    I am glad to hear (read) that. I believe in the share and share a like, not that I can post full projects, but I can post things that I have created to help me learn.
    Quote Originally Posted by rhosk
    TJ, these are great learning tools for all. What some need to realize is - without getting the exact code they may be trying to gain; if you take some of these apps apart, you can usually end up with what you're looking for. Am I making sense? I've learned a **** of a lot from many members here and not just from code give-aways (even though [you] do that often ). I have referred to that Picture Viewer a few times in building some of my apps and have learned much in the process. Hope they take it for what it's worth ($$$).
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  8. #8
    Join Date
    Jan 2004
    Location
    Altai
    Posts
    8

    Thank you, much you is thanked.

    Thank you, much you is thanked. I often it is difficult to search for, I bad know english and very costly traffic of the access in internet: 1 hour > $1

Similar Threads

  1. List box item value to set up loop
    By bruciori in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 04-17-2003, 03:06 PM
  2. HOWTO: Set up an MP3 Playlist
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-24-2002, 11:57 AM
  3. INFO: How to Set the Default Application Directory
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 12:02 PM
  4. Change actions properties for a set of actions
    By HayoOellrich in forum Setup Factory 6.0
    Replies: 0
    Last Post: 05-23-2002, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts