Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6

Thread: help?

  1. #1
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264

    Thumbs up help?

    sets the position to 0:

    Code:
    function Replay()
    	LB = "Playlist";
    	ItemsInListBox = ListBox.GetCount(LB);
    -- Get the selected items
    	Selected = ListBox.GetSelected(LB);
    	SelectedItem = Selected[1] +1;
    	FileToOpen = ListBox.GetItemData(LB, Selected[1]);
    	ListBox.DeselectItem("Playlist", Selected[1]);
    	file_name = ListBox.GetItemText(LB, SelectedItem);
    
    if SelectedItem >= ItemsInListBox then
    	ListBox.SelectItem(LB, 1);
    -- enable the remove button
    	Button.SetEnabled("Remove", true);
    -- get the data
    	FileToOpen = ListBox.GetItemData(LB, 1);
    -- Load the File
    	MediaPlayer.Load("Media", FileToOpen);
    -- Play the File
    	MediaPlayer.Play("Media");
    -- get the lenght and set it as the position
    	Length = MediaPlayer.GetLength("Media")
    	Slider.SetRange("Position", 0, Length);
    	Slider.SetSliderPos("Position", 0);
    -- start the timer
    	Page.StopTimer();
    	Page.StartTimer(1000);
    -- set the position
    	Slider.SetSliderPos("Volume_bar", 50);
    else 
    	ListBox.SelectItem(LB, SelectedItem);
    	FileToOpen = ListBox.GetItemData(LB, SelectedItem);
    -- Load the File
    	MediaPlayer.Load("Media", FileToOpen);
    -- Play the File
    	MediaPlayer.Play("Media");
    -- get the lenght and set it as the position
    	Length = MediaPlayer.GetLength("Media")
    	Slider.SetRange("Position", 0, Length);
    	Slider.SetSliderPos("Position", 0);
    -- start the timer
    	Page.StopTimer();
    	Page.StartTimer(1000);
    -- set the position
    	Slider.SetSliderPos("Volume_bar", 50);
    -- tell the user
    	text = String.Concat("Playing next file: ", file_name);
    	INIFile.SetValue("AutoPlay\\Docs\\traytip.ini", "Text", "Value", text);
    	File.Run("AutoPlay\\Docs\\Traytip.exe", "", "AutoPlay\\Docs", SW_SHOWNORMAL, false);
    end
    end
    Last edited by playmenow; 03-13-2006 at 02:13 PM.

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Playmenow, *no more* unrelated comments, this is your very last warning. Any more negative comments *at all* and I will remove you from the forum. Period. I'm under the impression that you are using an unlicensed version of our software (please correct me and accept my apology if I'm wrong) as such you've overextended the amount of goodwill I can offer vis-a-vis the way you comport yourself.

    And it never hurts to say please and thank you. Especially when you are asking people to fix your broken code for you.

    You want to ask a question? Then ask one, make it complete, polite, say please and thank you, and stay focused on what you are asking. You want to answer a question? Then answer one, but don't be argumentative or snide, and if you don't have a feasible solution to offer then walk away, i.e. it doesn't help someone trying to find a Flash designer for a client to get a lecture about SVG from someone with barely peripheral knowledge of the topic, it just messes up their thread and costs them time to respond. In the future please give some consideration to the person who started a thread before posting unrelated or critical comments to it. Thank you for your cooperation.

  3. #3
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264
    Sorry, but there's one problem: I have 5 minutes to edit a post. How I can edit it now? And about that I have an unlicensed version of AMS: No, I received it as a gift. But there's one strange thing: it won't show my serial...

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Sorry, but all due respect, I am under the impression that you are using an unlicensed copy of our software and I'm not prepared to revisit that conclusion until I see actual proof to the contrary. I'd like to be proven wrong on that point, and I'll be happy to apologize if I am, but I don't anticipate it. At the same time I'm not on a personal mission here. Bottom line -> play it cool here in the forum from now on regardless. Period.

    As for your claim on the serial not showing up, obviously you and I have been down that road before and when it comes time provide proof of ownership you either change your story or abandon the thread. So... The bottom line -> go start a support ticket if you aren't using illegal software right here -> http://support.indigorose.com and we will gladly fix it.

    As for your other thread, it has been removed, You are not free to advertise here. Ask questions, answer questions, fine. But no spamming or ads. Any threads posted solely to promote yourself/products will be removed until such time as you provide some proof of ownership or redeem some goodwill over the course of time by provide selfless, meaningful product support to others. Advertising and promoting in our forum is a privelege, and I don't think that's an unreasonable position in this case.

  5. #5
    Join Date
    Nov 2005
    Location
    Banned by moderator.
    Posts
    264

    Grin

    To go to the support ticket? I went there. I get the strange reply "Please tell me your serial. You can find it...." How can I see it if the only thing I see is my Windows user name

    And, please, can you help me with this code? I tried over 10 methods to make it work, but still the same problem. This is modified from the on double-click, which work 100% fine. I do'nt know why this, (MediaPlayer --> On Finish) isn't working. I mean, the position for the 'Song Position bar' will remain 0 (look for red) and for the volume bar, 0 (look for green). Hmm...Page ---> On Timer: will get the position of the song and set it for the position bar.
    Code:
    	LB = "Playlist";
    	ItemsInListBox = ListBox.GetCount(LB);
    -- Get the selected items
    	Selected = ListBox.GetSelected(LB);
    	SelectedItem = Selected[1] +1;
    	FileToOpen = ListBox.GetItemData(LB, Selected[1]);
    	ListBox.DeselectItem("Playlist", Selected[1]);
    -- stop the timer
    	Page.StopTimer();
    
    if SelectedItem >= ItemsInListBox then
    	ListBox.SelectItem(LB, 1);
    -- Get the selected item from the ListBox
    	Selected = ListBox.GetSelected("Playlist");
    	file_name = ListBox.GetItemText(LB, Selected[1]);
    -- Get the path to the selected file (stored in the item's 'data')
    	FilePath = ListBox.GetItemData("Playlist", Selected[1]);
    -- load the file
    	MediaPlayer.Load("Media", FilePath);
    -- play the file
    	MediaPlayer.Play("Media");
    -- set as playing
    	Playing = true
    -- set as not paused
    	Paused = false
    -- set the button as Pause
    	Button.SetText("Play_Pause", "Pause");
    -- set as loaded
    	Loaded = true
    -- get the Lengtht and set it as the position
    	Length = MediaPlayer.GetLength("Media")
    	Slider.SetRange("Position", 0, Length);
    -- start the timer
    	Page.StartTimer(1000);
    -- set the position
    	Slider.SetSliderPos("Volume_bar", 50);
    -- tell the user
    	text = String.Concat("Playing next file: ", file_name);
    	INIFile.SetValue("AutoPlay\\Docs\\traytip.ini", "Text", "Value", text);
    	File.Run("AutoPlay\\Docs\\Traytip.exe", "", "AutoPlay\\Docs", SW_SHOWNORMAL, false);
    else
    	ListBox.SelectItem(LB, SelectedItem);
    -- Get the selected item(s) from the ListBox
    	Selected = ListBox.GetSelected("Playlist");
    	file_name = ListBox.GetItemText(LB, Selected[1]);
    -- Get the path to the selected file (stored in the item's 'data')
    	FilePath = ListBox.GetItemData("Playlist", Selected[1]);
    -- load the file
    	MediaPlayer.Load("Media", FilePath);
    -- play the file
    	MediaPlayer.Play("Media");
    -- set as playing
    	Playing = true
    -- set as not paused
    	Paused = false
    -- set the button as Pause
    	Button.SetText("Play_Pause", "Pause");
    -- set as loaded
    	Loaded = true
    -- get the Lengtht and set it as the position
    	Length = MediaPlayer.GetLength("Media")
    	Slider.SetRange("Position", 0, Length);
    -- start the timer
    	Page.StartTimer(1000);
    -- set the position
    	Slider.SetSliderPos("Volume_bar", 50);
    -- tell the user
    	text = String.Concat("Playing next file: ", file_name);
    	INIFile.SetValue("AutoPlay\\Docs\\traytip.ini", "Text", "Value", text);
    	File.Run("AutoPlay\\Docs\\Traytip.exe", "", "AutoPlay\\Docs", SW_SHOWNORMAL, false);
    end
    And Page --> On Timer:
    Code:
    if Playing == true and LeftDown == false then
    	Slider.SetSliderPos("Position", MediaPlayer.GetCurrentPos("Media"));
    end

    LeftDown will be set as true when I press the left mouse button...but it won't be set as false if I press another button (right-click)
    Last edited by playmenow; 03-14-2006 at 01:43 AM.

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    You have been told where to find your serial more than once by more than one user. You have also been told how to contact support, etc. No offense but I'm not sure what purpose it serves to repeat those options yet again. I'm under the impresson that you are using illegal software so I'm not investing any more time in assisting you until I learn otherwise. Feel free to email support anytime with your ownership details and I'll revisit that, but other than that...

Posting Permissions

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