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: https ...
Search found 164 matches
- Tue Jun 09, 2020 1:58 pm
- Forum: Coding Questions
- Topic: How obtain which keyboard is used
- Replies: 4
- Views: 1631
- Thu Jun 04, 2020 1:12 pm
- Forum: Coding Questions
- Topic: How obtain which keyboard is used
- Replies: 4
- Views: 1631
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 keyboard ...
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 keyboard ...
- Wed Aug 02, 2017 7:18 am
- Forum: Coding Questions
- Topic: D'n'D & Treegadget
- Replies: 7
- Views: 6770
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?
BTW: Is there some way to obtain the ImageID of a Treeitem so it can be reused in Addgadgetitem?
- Mon Jul 31, 2017 3:13 pm
- Forum: Coding Questions
- Topic: D'n'D & Treegadget
- Replies: 7
- Views: 6770
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 ...
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 ...
- Sat Jul 22, 2017 1:24 pm
- Forum: Coding Questions
- Topic: Automatic closing of application
- Replies: 10
- Views: 4422
Re: Automatic closing of application
Ah, ok, many thanks...
- Fri Jul 21, 2017 3:44 pm
- Forum: Tricks 'n' Tips
- Topic: SweetyVD (Visual Designer)
- Replies: 165
- Views: 83072
Re: SweetyVD (Visual Designer)
Looks very nice. Good work...
- Fri Jul 21, 2017 10:14 am
- Forum: Coding Questions
- Topic: Automatic closing of application
- Replies: 10
- Views: 4422
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?
Sendmessage waits for the result, Postmessage not. Is this the reason?
If it does not wait I cannot look at the result?
- Fri Jul 21, 2017 9:12 am
- Forum: Coding Questions
- Topic: Automatic closing of application
- Replies: 10
- Views: 4422
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
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
- Fri Jul 21, 2017 7:30 am
- Forum: Coding Questions
- Topic: Automatic closing of application
- Replies: 10
- Views: 4422
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 ...
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 ...
- Thu Jul 20, 2017 12:58 pm
- Forum: Coding Questions
- Topic: [Solved] PB 5.60: Bug? String variable for Messagerequester
- Replies: 3
- Views: 1813
Re: PB 5.60: Bug? String variable for Messagerequester
Such small mistakes make such big problems. tssss...
Many thanks. Sometimes im blind....
Many thanks. Sometimes im blind....

- Thu Jul 20, 2017 12:43 pm
- Forum: Coding Questions
- Topic: [Solved] PB 5.60 Bug? #PBAny not possible in ImageID
- Replies: 3
- Views: 1987
Re: PB 5.60 Bug? #PBAny not possible in ImageID (Catchimage)
Aah, now I see my mistake.
Many thanks to everyone.
Many thanks to everyone.
- Thu Jul 20, 2017 12:31 pm
- Forum: Tricks 'n' Tips
- Topic: Create your own icons for toolbars etc. with PureBasic
- Replies: 264
- Views: 395087
Re: Create your own icons for toolbars etc. with PureBasic
Wow, cool work. Thanks for that...
- Thu Jul 20, 2017 12:26 pm
- Forum: Coding Questions
- Topic: [Solved] PB 5.60 Bug? #PBAny not possible in ImageID
- Replies: 3
- Views: 1987
[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", CatchImage(0, ?Exit ...
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", CatchImage(0, ?Exit ...
- Thu Jul 20, 2017 12:20 pm
- Forum: Coding Questions
- Topic: [Solved] PB 5.60: Bug? String variable for Messagerequester
- Replies: 3
- Views: 1813
[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 ...
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 ...
- Mon Jun 10, 2013 11:47 am
- Forum: The PureBasic Form Designer
- Topic: [Done] Can't remove window color once set
- Replies: 6
- Views: 6066
Re: Can't remove window color once set
Same for text, backgrounds etc.
+1
+1