⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fscript.class

📁 Gambas is a graphical development environment based on a Basic interpreter, like Visual Basic. It us
💻 CLASS
字号:
' Gambas class fileSTATIC $aPict AS NEW String[]STATIC $hApp AS ObjectSTATIC PUBLIC SUB Main()  DIM hForm AS Form    $hApp = Application["kdesktop"]    hForm = NEW FScript  hForm.Show  ENDPUBLIC SUB btnPath_Click()  Dialog.Title = "Choose a wallpaper directory"  IF Dialog.SelectDirectory() THEN RETURN  txtPath.Text = Dialog.PathENDPUBLIC SUB btnQuit_Click()  ME.CloseENDPUBLIC SUB txtInterval_Change()  timChange.Delay = txtInterval.Value * 1000ENDPUBLIC SUB txtPath_Change()  DIM sDir AS String  DIM sPath AS String  DIM sExt AS String    sPath = txtPath.Text  IF Exist(sPath) THEN      $aPict.Clear      FOR EACH sDir IN Dir(sPath)      sExt = LCase(File.Ext(sDir))      IF sExt = "jpg" OR sExt = "png" OR sExt = "bmp" THEN        $aPict.Add(sPath &/ sDir)      ENDIF    NEXT  ENDIF  timChange.Enabled = $aPict.CountENDPUBLIC SUB timChange_Timer()  DIM iInd AS Integer  iInd = Int(Rnd($aPict.Count))  PRINT $aPict[iInd]  $hApp.Background.SetWallpaper($aPict[iInd], 1)END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -