topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 11, 2025, 6:41 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 6 7 8 9 10 [11] 12next
251
Post New Requests Here / Re: IDEA: Dim the taskbar
« Last post by Cpilot on February 27, 2006, 10:23 AM »
You asked for it so here it is. An application to adjust the transparency of the taskbar. WinXP.
Because of the peculiarities of SetLayeredWindowAttributes the script will only allow one instance to run at a time.
There is a read me file...and this app will run in the tray. The icon is a wire frame box. :)

TBFader.

See the to do list.

Enjoy
Cpilot
252
Post New Requests Here / Re: IDEA: Dim the taskbar
« Last post by Cpilot on February 27, 2006, 04:16 AM »
The only one I can remember right now is PS Tray Factory from http://www.pssoftlab.com/
Well I'm not sure what method of transparency they were using in their application.
Maybe a little later after I'm done with this one I'll look into the possibility of applying transparency on win2000. 
253
Post New Requests Here / Re: IDEA: Dim the taskbar
« Last post by Cpilot on February 26, 2006, 02:38 PM »
I'm having 5.0.2195.7032.

But how can I update a system file that Windows is using constantly?
-brotherS
Microsoft does it all the time. If the function is not available in your current user32.dll then this script won't work.
And why was I able to set the transparency with other programs before?
-brotherS
I don't know, what programs were they?

This works well for me, but I have the same problem I had with AlphaXP: whenever WallpaperMaster changes the desktop image, the taskbar returns to solid and stays that way...  Any ideas?
-m_s
I'm guessing it's a problem with WallpaperMaster, try setting the taskbar transparent and manually setting wallpapers. The taskbar remains transparent for me no matter how many times I change the background.
254
Post New Requests Here / Re: IDEA: Dim the taskbar
« Last post by Cpilot on February 26, 2006, 03:24 AM »
Go to your system folder and see what version of user32.dll you have, mine is version 5.1.2600.2622. You should be able to download a newer version on the net. That should solve the problem.
According to the msdn documents SetLayeredWindowAttributes should be available for win 2000 and up. If it doesn't work for you then you need to upgrade your user32.dll.
As an aside, It would be very helpful if people with win2000 do try this script and see if it works for them. I would very much like to make the finished product available for as many users as possible.
If some can get it to work and others can't then we'll know it's simply an upgrade problem. If not then I'll dig into some of my old API references and I'll try to come up with an alternative.

Thanks
255
Finished Programs / Re: IDEA: set transparency for the taskbar
« Last post by Cpilot on February 26, 2006, 03:12 AM »
I just want to set a fixed transparency
-brotherS

I'm sure I can eventually create an option for that.
256
Post New Requests Here / Re: IDEA: Dim the taskbar
« Last post by Cpilot on February 26, 2006, 03:11 AM »
Try it out brotherS,
according to msdn SetLayeredWindowAttributes is supported in Windows 2000. If it functions ok for you then I'll change the OS requirement.
257
Post New Requests Here / Re: Dim the taskbar?
« Last post by Cpilot on February 26, 2006, 02:45 AM »
preview release working well here (absent the functions you still have left to implement).  nice work!
-mouser

Thanks mouser, just a few tweaks and a little prettyin' up and it'll be ready to roll. As an aside anything behind the taskbar will be visible while the taskbar is transparent.
258
Post New Requests Here / Re: Dim the taskbar?
« Last post by Cpilot on February 26, 2006, 02:21 AM »
For those who like a preview you can download it here Taskbar.

WinXp only, start the app and mouse over the taskbar and it will become fully opaque, set the transparency with the trackbar and mouse over, it'll become opaque then go to transparency when the mouse is moved off the taskbar.
Close the app window and the taskbar goes back to normal.

I'll finish this puppy up tomorrow.  :Thmbsup:
259
Post New Requests Here / Re: Dim the taskbar?
« Last post by Cpilot on February 26, 2006, 01:46 AM »
Protest post: not enough traffic on the forums.
Protest post to protest post, not enough courage to try something new/different.

As an aside I got about 90% of this little project done....stay tuned.
260
Post New Requests Here / Re: Dim the taskbar?
« Last post by Cpilot on February 25, 2006, 05:26 PM »
Can you get it to respond to mouseover - i.e. go solid when the mouse hovers?  And can you make the fade a little slower?  And how about setting a variable transparency?  Thanks for your time and effort, Cpilot - much appreciated!
-m_s
All those shouldn't be a problem  ;). The little script you tried out only took me about five minutes to whip up.
I'll work on it tonight and provide a link to download. Gives me an opportunity to really work with the taskbar api.  :Thmbsup:

That looks great!  And what a great site for building apps!

Yup, FBSL can either be installed client side or used server side. It's definately worth a look.
FBSL
261
Post New Requests Here / Re: Dim the taskbar?
« Last post by Cpilot on February 25, 2006, 04:56 PM »
Hi m_s.
If your using XP I can do this fairly easily.
As a test copy this script into the edit window here FBSL Studio.
Make sure FBSL.exe is selected then download the exe. onto your machine.
Double click to run and it should fade your TaskBar. run it again to disable.
'$apptype console
#option explicit
#dlldeclare user32.FindWindow,user32.SetLayeredWindowAttributes,user32.GetWindowLong _
user32.SetWindowLong
dim %Ret,%hTaskBar
Const LWA_ALPHA = &H2
Const GWL_EXSTYLE = (-20)
Const WS_EX_LAYERED = &H80000


hTaskBar = FindWindow("Shell_TrayWnd","")
Ret = GetWindowLong(hTaskBar, GWL_EXSTYLE)

SetWindowLong(hTaskBar,GWL_EXSTYLE,Ret + WS_EX_LAYERED)

SetLayeredWindowAttributes(hTaskBar,0,150,LWA_ALPHA)


If it works ok for you and anyone else who wants to test it (WinXP), I'll go ahead and create your application for you.
262
FWIW,
The CreateToolhelp32Snapshot api can return lots of information about running processes, threads and modules operating on your system.

CreateToolhelp32Snapshot
263
Almost missed this thread.
Returning running processes with FBSL is quite simple, just use the CreateToolhelp32Snapshot api.

Here's some quick down and dirty script to get you started.  :)

#option explicit
'$apptype console
#dlldeclare kernel32("CreateToolhelp32Snapshot","Process32First","Process32Next"_
"CloseHandle","GetCurrentProcessId")

dim %hList,$TabStop,$buff,$buffer
dim $PROCESSENTRY32,%hSnapshot,%success

alloc(PROCESSENTRY32,MAX_PATH + 36)
SetMem(PROCESSENTRY32,MAX_PATH + 36,0)

alloc(TabStop,12)
alloc(buff,MAX_PATH)
alloc(buffer,MAX_PATH)
SetMem(TabStop,100,0)
FBSL_SETTEXT(me,"Running Processes")
hList = Fbsl_control("ListBox",me,NULL,NULL,20,20,360,250,_
WS_CHILD + WS_VISIBLE + WS_HSCROLL + WS_VSCROLL + LBS_SORT + LBS_USETABSTOPS,WS_EX_STATICEDGE)
SendMessage(hList,LB_SETTABSTOPS,0,0)
SendMessage(hList,LB_SETTABSTOPS,1,TabStop)
SendMessage(hList,LB_SETTABSTOPS,2,TabStop)
Resize(me,0,0,400,300)
center(me)
show( me )
GetProccess()
begin events

  select case cbmsg


    case wm_close
        exitprogram(0)
  End Select
end events

sub GetProccess()

const TH32CS_SNAPPROCESS = &H2

hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0)

If hSnapShot = -1 Then Exit Sub



success = Process32First(hSnapShot,PROCESSENTRY32)

If success = 1 then

        Do

buff = GetMem(PROCESSENTRY32,36,$MAX_PATH)
realloc(buff,strlen(buff))

buff =  buff & Tab &  GetMem(PROCESSENTRY32,20,4) & Tab & "Thread Count"

            SendMessage(hList,LB_ADDSTRING,0,buff)
        Loop while Process32Next(hSnapshot,PROCESSENTRY32)
           
    End If

    CloseHandle(hSnapShot)


End sub
This will return a list of running processes and their thread count.
When I get more time I'll see what I can do about your request.

264
Developer's Corner / Re: Best Programming Music
« Last post by Cpilot on February 10, 2006, 07:28 AM »
Wow that last list had some goodies on there.

Hendrix,Mayall,Joplin,Canned Heat,Ten Years After.....can't beat the classics.

Anything good without anyone singing/talking/rapping all the time 

Amen!!
265
Developer's Corner / Re: Best Programming Music
« Last post by Cpilot on February 10, 2006, 12:55 AM »
Thin Lizzie's good  :D

Lou Reed, ZZ TOP and Iggie PoP round out a good evening.
266
Developer's Corner / Best Programming Music
« Last post by Cpilot on February 10, 2006, 12:26 AM »
I like to listen to:

The Who
Frank Zappa
Led Zepplin
Leo Kottke
Queen
Rush
Paul McCarthy

and various other music when I program/script.

What do you program/script by?
267
Developer's Corner / Re: Best Programming Beer
« Last post by Cpilot on February 09, 2006, 11:26 PM »
Bud Ice!!!! :-*  :Thmbsup:
268
General Software Discussion / Re: Living without AutoHotkey - possible?
« Last post by Cpilot on February 09, 2006, 07:25 PM »
The one thing that constantly flies over my head is the Windows API.
-Edvard

I'm no expert but I do enjoy dabbling with the windows api, if you ever need any help of wish to ask questions I would be more than happy to try and help.  :Thmbsup:
269
Developer's Corner / Re: FBSL - a simple Web browser
« Last post by Cpilot on February 09, 2006, 07:15 PM »
Little modification to add AutoComplete.  :)

'$AppType GUI
option explicit
$DLLDeclare ATL.AtlAxWinInit,shlwapi.SHAutoComplete
Dim %hDisplay, $URL

FBSL_SetText(Me, "==FBSL Basic Web Browser==")
ReSize(Me, 0, 0, 600, 500)
Center(Me)
Const SHACF_URLMRU = &H4

Const SHACF_URLHISTORY = &H2

Const SHACF_URLALL = (SHACF_URLHISTORY + SHACF_URLMRU)
Const hURL = FBSL_Control("Edit", Me, "", 0, 10, 3, 368, 23, _
             WS_Child + WS_Visible + WS_TabStop + ES_AutoHScroll, WS_Ex_ClientEdge)
Const IDB_Go = 1000
    FBSL_Control("Button", Me, "Go", IDB_Go, 380, 3, 75, 23, WS_Child + WS_Visible + WS_TabStop, 0)
    AtlAxWinInit(0)
    hDisplay = FBSL_Control("AtlAxWin", Me, "MSHTML:<HTML></HTML>",_
                0, 0, 30, 600, 460, WS_Child + WS_Visible, WS_Ex_ClientEdge)

SHAutoComplete(hURL,SHACF_URLHISTORY)

Show(Me)
RefreshMe()

Begin Events
    Select Case CBMsg
        Case WM_Size
            RefreshMe()
        Case WM_Close
            ExitProgram(0)
        Case WM_Command
            If CBCtl = IDB_Go Then EventGo()
    End Select
End Events

Sub EventGo()
    FBSL_GetText(hURL, URL)
    If URL = "" Then Return
    If (hDisplay <> 0) Then Destroy(hDisplay)
    hDisplay = FBSL_Control("AtlAxWin", Me, URL, 0, 0, 30, 600, 460,_
               WS_Child + WS_Visible + WS_VScroll + WS_HScroll, WS_Ex_ClientEdge)
    RefreshMe()
End Sub

Sub RefreshMe()
Dim %Lefti, %Topi, %Righti, %Bottomi
   GetClientRect( Me, Lefti, Topi, Righti, Bottomi )
   ReSize(hDisplay, 10, 30, Righti - 25, Bottomi - 70)
End Sub
270
Living Room / Re: Recommendations for good computer 2.1 speaker system?
« Last post by Cpilot on February 09, 2006, 06:53 PM »
Yeah I got a USB hookup on my Stereo and the sound is miles away from anything you can attach to your computer.  :Thmbsup:
271
Developer's Corner / Re: FBSL - a simple Web browser
« Last post by Cpilot on February 09, 2006, 05:28 PM »
ok, that is pretty sweet.
-mouser

Yep, api access can have it's advantages.  ;)
272
I would think you could enumerate all the open windows then flag the foreground window with GetForegroundWindow,then set all the others on a timer list to close at interval? The one with focus would be exempt from the timer.
273
Developer's Corner / Re: All about FBSL!
« Last post by Cpilot on February 07, 2006, 07:23 PM »
- Is there a way to make replacement hotstrings a la AutoHotKey?  I use AHK currently for hotstrings but would like something faster (typing fast leaves with faulty replacements).

As far as I know there is no "wrapper" function in FBSL for hotstrings. However it would be possible to create a Function to do this.

- Is there a limit on the number of GUI objects allowed?  Using AutoIt I became a fan of the ListView control.  But, AutoIt places a 4096 limit on GUI objects... including ListView rows!  This limits the max size to ~4000 lines.  Also, does the ListView allow you to edit cell contents?  Does it have a "cell" event to tell the program which cell has been clicked on or modified?

Gerome will have to answer questions about the internal functions of native commands, but I personally prefer to impliment listviews using API calls. With this method limitations,size etc. would be spelled out in the MSDN control information.

ListView Controls Overview

FBSL has these ListView commands:

ListView_DeleteColumn( %hLView, %index )
ListView_GetItem( %hLView, %Row, %Column )
ListView_InsertColumn( %hLView, %index, %iSize, %szName )
ListView_InsertItem( %hLView, %index, $szCaption )
ListView_SetColumnText( %hLView, %index, $szCaption )
ListView_SetItem( %hLView, %index, $szCaption )
ListView_SetTextColor( %hLView, %RGBValue )


You can also use SendMessage of course to access all of a ListViews capabilities.

Also using the API you can absolutley access events in the listview.
274
Developer's Corner / Re: All about FBSL!
« Last post by Cpilot on February 07, 2006, 05:50 PM »
There is an online compiler.
FBSL.exe

Also you can't beat MSDN, just google for the API command your looking for.
I also use API-Guide as a reference.
275
Developer's Corner / Re: All about FBSL!
« Last post by Cpilot on February 07, 2006, 05:31 PM »
I'm not one of the developers, but I have used FBSL since before the switch to Version 3. FBSL is just about the fastest interpreted language I have ever seen. And I really enjoy dabbling in Assembly. ;)
I primarily (80% of the time) use FBSL now basically because I like the speed of it and the flexibility.
The usefulness of classes is kinda debatable IMO, but interaction with the API and COM is pretty easy compared to a lot of other languages out there.
If you want automation then you can use the WScript.Shell object, but with FBSL you can also create a GUI interface and then preprogram your key stokes, call on the windows time API to tell it when you want to activate your commands, create a result file and then close everything down when finished.
WMI, InternetExplorer.Application object, Word.Application...shoot about any COM object is accessable, want to use WMI to monitor your CPU usage? You can access the COM interface and create a nice GUI with prograss bar, or any other graphic you want.
Linking to 3rd party DLL's or OCX's are easy.
If you like dabbling with OpenGL then FBSL is fast enough to render 3d smoothly and seamlessly.

It's very hard to describe all the features available with this language. The best thing to do is to read the help and take a look at the examples and scripts posted to the forum.

FBSL


Pages: prev1 ... 6 7 8 9 10 [11] 12next