progress bar help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • GoOgLe
    Forum Member
    • Mar 2007
    • 452

    progress bar help

    i want to show progress bar for process... it is about 12.5 seconds i have the code working i just need to add progress bar... can someone please help me ???

    this my working code

    Code:
    site = Input.GetText("Input1");
    File.Run("AutoPlay\\Docs\\ccc.exe", "/URL "..site.." /Filename \"c:\\"..site..".png\" /DisableScrollBars 1 /BrowserAutoSize 1", "", SW_SHOWNORMAL, false);
    Application.Sleep(12500);
    File.Open("c:\\"..site..".png", "", SW_SHOWNORMAL);
  • Imagine Programming
    Indigo Rose Customer
    • Apr 2007
    • 4252

    #2
    Code:
    site = Input.GetText("Input1");
    File.Run("AutoPlay\\Docs\\ccc.exe", "/URL "..site.." /Filename \"c:\\"..site..".png\" /DisableScrollBars 1 /BrowserAutoSize 1", "", SW_SHOWNORMAL, false);
    for i=1, 12500 do
        Progress.SetCurrentPos("Progress1", 100*(i/12500)); --Progress range: 1 - 100
        Application.Sleep(1);
    end
    File.Open("c:\\"..site..".png", "", SW_SHOWNORMAL);
    I guess this will stall the application though, but you can try

    It's a long wait though
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment

    Working...
    X