Hello!
With PureBasic going Unicode-Exclusive, I've been looking into interesting ways to utilize the massive character set that is Unicode. While this a bit limited on Windows+Console as Unicode is kind of a gray-area there, there are quite a few possibilities from "Ascii"-Art to something like a ...
					Search found 45 matches
- Mon Jan 30, 2023 11:43 pm
 - Forum: Tricks 'n' Tips
 - Topic: Fun With Unicode Glyphs
 - Replies: 5
 - Views: 1343
 
- Sun Jan 29, 2023 1:38 am
 - Forum: Coding Questions
 - Topic: Modify pointer hook directly
 - Replies: 12
 - Views: 1389
 
Re: Modify pointer hook directly
Give this a try :)
EnableExplicit
Structure INPUT_STRUCT
type.i
StructureUnion
mi.MOUSEINPUT
ki.KEYBDINPUT
hi.HARDWAREINPUT
EndStructureUnion
EndStructure
Structure KEYSHORT_STRUCT
vk.a
shift.a
EndStructure
Structure KEYSCAN_STRUCT
StructureUnion
code.u
short.KEYSHORT_STRUCT ...
- Sat Jan 28, 2023 5:18 pm
 - Forum: Coding Questions
 - Topic: Modify pointer hook directly
 - Replies: 12
 - Views: 1389
 
Re: Modify pointer hook directly
Quick and Dirty fix to prevent the hook from calling the second time while swapping a key, could be better:
Global SkipHook.b=#False
Procedure _HookCallBack(iCode, wParam, *hk.KBDLLHOOKSTRUCT)
If Not SkipHook
Protected vKey=*hk\vkCode
Select wParam
Case #WM_KEYDOWN:Debug Str(vKey)+" ▼"
Select ...
					Global SkipHook.b=#False
Procedure _HookCallBack(iCode, wParam, *hk.KBDLLHOOKSTRUCT)
If Not SkipHook
Protected vKey=*hk\vkCode
Select wParam
Case #WM_KEYDOWN:Debug Str(vKey)+" ▼"
Select ...
- Sat Jan 28, 2023 4:44 pm
 - Forum: Coding Questions
 - Topic: Modify pointer hook directly
 - Replies: 12
 - Views: 1389
 
Re: Modify pointer hook directly
P.S. Since this is swapping 2 keys back and fourth in a mirror, there is an issue of somewhat of a 'feedback loop' effect even if up or down are only pressed for a split-second:
 
37 ▼
37 ▲
39 ▼
39 ▲
37 ▼
37 ▲
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ...
					37 ▼
37 ▲
39 ▼
39 ▲
37 ▼
37 ▲
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ▼
40 ▼
38 ...
- Sat Jan 28, 2023 4:12 pm
 - Forum: Coding Questions
 - Topic: Modify pointer hook directly
 - Replies: 12
 - Views: 1389
 
Re: Modify pointer hook directly
I don't know the answer to the question about modifying the pointer specifically, but here is a basic little example that might help. What should happen, is the [Up] And [Down] Arrow Keys will be reversed! (Up=Down, Down=Up, etc.)
The key to it I found was to return a non-zero (1) when you need to ...
					The key to it I found was to return a non-zero (1) when you need to ...
- Sat Jan 28, 2023 1:32 pm
 - Forum: Coding Questions
 - Topic: SendInput_() disable SHIFT [Resolved]
 - Replies: 6
 - Views: 776
 
Re: SendInput_() disable SHIFT [Resolved]
Edit- Didn't see my post was a basically a duplicate.
					- Sat Jan 28, 2023 1:16 pm
 - Forum: Coding Questions
 - Topic: Virtual key press [Resolved]
 - Replies: 8
 - Views: 1008
 
Re: Virtual key press
Hi Kwai,
I have been working on writing some keyboard input stuff myself lately so it is fresh in my mind, maybe I can help or learn something myself.
My use may be a little different, I'm keeping global track of modifier keys being up/down like CTRL/ALT/SHIFT/WIN and doing it at the keydown/keyup ...
					I have been working on writing some keyboard input stuff myself lately so it is fresh in my mind, maybe I can help or learn something myself.
My use may be a little different, I'm keeping global track of modifier keys being up/down like CTRL/ALT/SHIFT/WIN and doing it at the keydown/keyup ...
- Wed Nov 30, 2022 1:54 am
 - Forum: Off Topic
 - Topic: Showcase Your IDE Theme / Colors
 - Replies: 8
 - Views: 1552
 
Re: Showcase Your IDE Theme / Colors
screenshot in AkelPad
screenshot in Notepad++
IDE
http://i.imgur.com/fMQMQkg.png
Nice, looks kind of similar to what I'm using, colors a little softer though.
Are you able to compile/run/debug right out of N++ or Akelpad?
I've considered trying other editors and playing with the syntax ...
- Tue Nov 29, 2022 7:30 am
 - Forum: Off Topic
 - Topic: There's a key logger in microsoft edge.
 - Replies: 14
 - Views: 6321
 
Re: There's a key logger in microsoft edge.

Amazing what they try to pass as legitimate software these days...
- Tue Nov 29, 2022 6:54 am
 - Forum: Off Topic
 - Topic: Showcase Your IDE Theme / Colors
 - Replies: 8
 - Views: 1552
 
Re: Showcase Your IDE Theme / Colors
Make a copy of the code so we can use it for screenshots
Comes With No Warranty! lol this is still incomplete/work in progress. Trying to convert from an older wts library and still undergoing testing on some stuff.
;=======================Terminal/Remote Desktop Services ...
- Tue Nov 29, 2022 1:25 am
 - Forum: Off Topic
 - Topic: Showcase Your IDE Theme / Colors
 - Replies: 8
 - Views: 1552
 
Showcase Your IDE Theme / Colors
Probably been done in the past, but I thought it seemed like a novel idea. Share your current theme/layout/fonts/coloring/shortcuts/ for the PB IDE ! 
Interested to see what everyone else here is staring at at all day and night ;)
Here is my editor, running 'theme' I've had for years with the ...
					Interested to see what everyone else here is staring at at all day and night ;)
Here is my editor, running 'theme' I've had for years with the ...
- Sat Nov 26, 2022 11:12 pm
 - Forum: Tricks 'n' Tips
 - Topic: Create Process With Specified Parent Process
 - Replies: 2
 - Views: 608
 
Re: Create Process With Specified Parent Process
Typing "startupinfoex" into Google spits out https://learn.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-startupinfoexa as the very first result, at least for me. Following the links on the two parameters you can directly get all the information needed...
yikes.. uh, yeah. thats what ...
- Sat Nov 26, 2022 3:52 pm
 - Forum: Tricks 'n' Tips
 - Topic: Create Process With Specified Parent Process
 - Replies: 2
 - Views: 608
 
Create Process With Specified Parent Process
Hi All,
Happy Holidays. Was searching for info on STARTUPINFOEX structure and the following ProcThreadAttribute Kernel32 calls, but couldn't find anything. After some tinkering I got it working, hope someone else finds it useful.
https://i.imgur.com/PKKqEUl.png
 
Import"Kernel32.lib ...
					Happy Holidays. Was searching for info on STARTUPINFOEX structure and the following ProcThreadAttribute Kernel32 calls, but couldn't find anything. After some tinkering I got it working, hope someone else finds it useful.
https://i.imgur.com/PKKqEUl.png
Import"Kernel32.lib ...
- Wed Nov 23, 2022 3:38 am
 - Forum: Coding Questions
 - Topic: runas...
 - Replies: 9
 - Views: 2315
 
Re: runas...
Sorry If I Kept You Waiting... This could be a start for you.
https://github.com/bgeraghty/cwc-TI-Bac ... in/main.pb
					https://github.com/bgeraghty/cwc-TI-Bac ... in/main.pb
- Sun Jul 17, 2022 3:59 pm
 - Forum: Applications - Feedback and Discussion
 - Topic: StringBetween()
 - Replies: 23
 - Views: 9758
 
Re: StringBetween()
I like the idea of using StringField() for this, didn't think of that.
 
The whole thing minimalist:
Procedure.s StringBetween(String.s, StartString.s, EndString.s)
String = StringField(String, 2, StartString)
ProcedureReturn StringField(String, 1, EndString)
EndProcedure
String$ = "<title ...
					The whole thing minimalist:
Procedure.s StringBetween(String.s, StartString.s, EndString.s)
String = StringField(String, 2, StartString)
ProcedureReturn StringField(String, 1, EndString)
EndProcedure
String$ = "<title ...