Search found 164 matches

by Klonk
Tue Jun 09, 2020 1:58 pm
Forum: Coding Questions
Topic: How obtain which keyboard is used
Replies: 4
Views: 1148

Re: How obtain which keyboard is used

Many thanks for that. Haven't tried it yet though. I think the main problem is that in order to make my plans work the keyboard input has to be intercepted at a very early stage which 1. need to install a driver of some sort for intercepting (maybe library "interception" may work for that:...
by Klonk
Thu Jun 04, 2020 1:12 pm
Forum: Coding Questions
Topic: How obtain which keyboard is used
Replies: 4
Views: 1148

How obtain which keyboard is used

Hi everyone, maybe it was asked somewhere else, but at least I haven't found anything. I want to create a tool (basically I need it myself) which temporary "locks" the internal keyboard of a laptop without interfering with an external one. I thought of doing it that way: * Check on which k...
by Klonk
Wed Aug 02, 2017 7:18 am
Forum: Coding Questions
Topic: D'n'D & Treegadget
Replies: 7
Views: 6241

Re: D'n'D & Treegadget

OK, one more thing is missing: Handling of item images.

BTW: Is there some way to obtain the ImageID of a Treeitem so it can be reused in Addgadgetitem?
by Klonk
Mon Jul 31, 2017 3:13 pm
Forum: Coding Questions
Topic: D'n'D & Treegadget
Replies: 7
Views: 6241

Re: D'n'D & Treegadget

Exactly what I searched for. Many thanks. BTW: Works also on PB 5.60 (Just CreateGadgetList(9 has to be removed) Just one thing: Any idea how to get it dropped at the very first position? The only thing i can think of is: always inserting draged stuff before the item you droped on. But this does not...
by Klonk
Sat Jul 22, 2017 1:24 pm
Forum: Coding Questions
Topic: Automatic closing of application
Replies: 10
Views: 3713

Re: Automatic closing of application

Ah, ok, many thanks...
by Klonk
Fri Jul 21, 2017 3:44 pm
Forum: Tricks 'n' Tips
Topic: SweetyVD (Visual Designer)
Replies: 165
Views: 67158

Re: SweetyVD (Visual Designer)

Looks very nice. Good work...
by Klonk
Fri Jul 21, 2017 10:14 am
Forum: Coding Questions
Topic: Automatic closing of application
Replies: 10
Views: 3713

Re: Automatic closing of application

Sorry for the maybe dumb question, but why sendmessage?

Sendmessage waits for the result, Postmessage not. Is this the reason?

If it does not wait I cannot look at the result?
by Klonk
Fri Jul 21, 2017 9:12 am
Forum: Coding Questions
Topic: Automatic closing of application
Replies: 10
Views: 3713

Re: Automatic closing of application

@Dude: The result of Postmessage can be checked, right? So the following should work? result=PostMessage_(LaunchApp()\hWnd,#WM_CLOSE,0,0); close Window If result = false then PostMessage_(LaunchApp()\hWnd,#WM_SYSCOMMAND,#SC_CLOSE,0); close window, 2nd try End If
by Klonk
Fri Jul 21, 2017 7:30 am
Forum: Coding Questions
Topic: Automatic closing of application
Replies: 10
Views: 3713

Automatic closing of application

Hi everyone, I wrote an application starter (starts other programs using RunProgram). I wanted to include a feature that all opened applications will ber closed when closing the launcher. The only way I found is the following (using the windowhandle) The procedure starting a program: Procedure RunPr...
by Klonk
Thu Jul 20, 2017 12:58 pm
Forum: Coding Questions
Topic: [Solved] PB 5.60: Bug? String variable for Messagerequester
Replies: 3
Views: 1460

Re: PB 5.60: Bug? String variable for Messagerequester

Such small mistakes make such big problems. tssss...

Many thanks. Sometimes im blind.... :D
by Klonk
Thu Jul 20, 2017 12:43 pm
Forum: Coding Questions
Topic: [Solved] PB 5.60 Bug? #PBAny not possible in ImageID
Replies: 3
Views: 1505

Re: PB 5.60 Bug? #PBAny not possible in ImageID (Catchimage)

Aah, now I see my mistake.

Many thanks to everyone.
by Klonk
Thu Jul 20, 2017 12:31 pm
Forum: Tricks 'n' Tips
Topic: Create your own icons for toolbars etc. with PureBasic
Replies: 264
Views: 327640

Re: Create your own icons for toolbars etc. with PureBasic

Wow, cool work. Thanks for that...
by Klonk
Thu Jul 20, 2017 12:26 pm
Forum: Coding Questions
Topic: [Solved] PB 5.60 Bug? #PBAny not possible in ImageID
Replies: 3
Views: 1505

[Solved] PB 5.60 Bug? #PBAny not possible in ImageID

Hi, can you tell me what I'm doing wrong? Or is it a bug? This code works: If CreatePopupImageMenu(#TrayMenu,#PB_Menu_ModernLook) MenuItem(3, "Set Applications", CatchImage(2, ?Prefs)) MenuItem(2, "Help/About", CatchImage(1, ?Help)) MenuBar() MenuItem(1,"Exit", CatchIma...
by Klonk
Thu Jul 20, 2017 12:20 pm
Forum: Coding Questions
Topic: [Solved] PB 5.60: Bug? String variable for Messagerequester
Replies: 3
Views: 1460

[Solved] PB 5.60: Bug? String variable for Messagerequester

Hi everyone, is this a bug or am I doing something completely wrong? Some partial code which shows the problem (BTW: worked with PB 5.40) ;... Restore Helptext Read linecount.b For i=1 To linecount Read.s tmp$ text$ = text$ + tmp$ + Chr(13) + Chr(10) Next i MessageRequester("tst",text$) ;T...
by Klonk
Mon Jun 10, 2013 11:47 am
Forum: The PureBasic Form Designer
Topic: [Done] Can't remove window color once set
Replies: 6
Views: 5273

Re: Can't remove window color once set

Same for text, backgrounds etc.

+1