Search found 56 matches
- Aug 23, 2018 17:12
- Forum: Windows
- Topic: After Ctl+Alt+Delete is pressed, continous Alt key is sent
- Replies: 25
- Views: 5481
Re: After Ctl+Alt+Delete is pressed, continous Alt key is sent
Also, there is GetNativeSystemInfo() available since Windows XP. #include "Windows.bi" Dim SysInfo AS SYSTEM_INFO GetNativeSystemInfo(@SysInfo) 'Available since Windows XP. MessageBox(HWND_DESKTOP, "Windows is " & _ IIf(SysInfo.wProcessorArchitecture = PROCESSOR_ARCHITECTURE_...
- Aug 17, 2018 5:46
- Forum: Windows
- Topic: After Ctl+Alt+Delete is pressed, continous Alt key is sent
- Replies: 25
- Views: 5481
Re: After Ctl+Alt+Delete is pressed, continous Alt key is sent
On my Seven machine, if the MultiKey console window have focus, the LeftMenu(Alt) pushed key down is detected, the going up key release is not always detected, probably because it occur while the ctrl-alt-del screen is active and it's a barrier to MultiKey. If the focus is on another window, the Lef...
- Jul 21, 2018 18:22
- Forum: Windows
- Topic: How to determine is string is UTF-8 encoded
- Replies: 19
- Views: 6149
Re: How to determine is string is UTF-8 encoded
jj2007 >> Good idea but Paul had it a bit earlier Yep, I missed it, maybe my subconscious did not? Useless redundancy. No copyright for me. marcov>> it is only certain if there is a BOM Even there I woudn't say "certain". I'd say mostly certain. It's easy to imagine a text search engine th...
- Jul 21, 2018 2:54
- Forum: Windows
- Topic: How to determine is string is UTF-8 encoded
- Replies: 19
- Views: 6149
Re: How to determine is string is UTF-8 encoded
Just for the fun of it... What if we use MultiByteToWideChar in a way that it will return an error when thanslating an invalid UTF-8 string to unicode. The unicode result is not of importance but if the function fail then the UTF-8 string was invalid. #define JumpCompiler "<D:\Free\64\fbc.exe>&...
- Jul 20, 2018 20:52
- Forum: Windows
- Topic: How to determine is string is UTF-8 encoded
- Replies: 19
- Views: 6149
Re: How to determine is string is UTF-8 encoded
>> " that function only indicates that a string is unicode " Hey Paul, Yep, in fact, "try to indicates" would be even more appropriate. I posted it because several ideas may be extracted from it to help testing a string for the unicode side. And sometime doing some eliminations a...
- Jul 20, 2018 18:28
- Forum: Windows
- Topic: How to determine is string is UTF-8 encoded
- Replies: 19
- Views: 6149
- Feb 25, 2018 3:34
- Forum: Windows
- Topic: How to get the monitor id (at mouse pointer)?
- Replies: 15
- Views: 2862
Re: How to get the monitor id (at mouse pointer)?
- About the old BBCode ... BBCode guide https://freebasic.net/forum/styles/elegance_steelblue/theme/images/logo.png MonitorFromPoint https://msdn.microsoft.com/en-us/library/windows/desktop/dd145062(v=vs.85).aspx https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE1Mu3b?ve...
Re: GUIRuler
Nice job... :-)
Pierre
Pierre
- Jun 27, 2017 23:31
- Forum: Windows
- Topic: Display Icons in ressources on TOOLBAR
- Replies: 2
- Views: 1523
Re: Display Icons in ressources on TOOLBAR
Salut Spartacus, You may try the following... Just set the LoadImage() function to reflect what is in your resource... Pierre http://codesite.host22.com/image/Toolbar01.png #Define JumpCompiler "<D:\Free\64\fbc.exe>" #Define JumpCompilerCmd "<-s gui -w pedantic "D:\Free\bas\~~Def...
- Jun 03, 2017 15:39
- Forum: Windows
- Topic: detecting windows SMB feature + 1 more
- Replies: 21
- Views: 3996
Re: detecting windows SMB feature + 1 more
Hi MrSwiss, Yes, I use UltraEdit and those two lines are for my own pre-compiler tool. I find it more logic to have the compiler selection and options embedded in the source code. So when I got ten or fifteen files in the editor, there is no need to change any options in the editor. I just hit "...
- Jun 03, 2017 3:46
- Forum: Windows
- Topic: detecting windows SMB feature + 1 more
- Replies: 21
- Views: 3996
Re: detecting windows SMB feature + 1 more
Hey,
No need to be sorry. ;-)
Easy does it...
Pierre
No need to be sorry. ;-)
Easy does it...
Pierre
- Jun 02, 2017 23:58
- Forum: Windows
- Topic: detecting windows SMB feature + 1 more
- Replies: 21
- Views: 3996
Re: detecting windows SMB feature + 1 more
The SMB version used will be determined by the lowest Windows OS Client versus Server version. One way to find it could be by using NetWkstaGetInfo() to retreive those both Client and Server version and then deduct the SMB version that will be used. SMB version by Jose Barreto Yours to try :-) Pierr...
- May 31, 2017 1:54
- Forum: Windows
- Topic: Windows Service
- Replies: 9
- Views: 3461
Windows Service
A simple service to play with... Pierre http://somesite.host-ed.me/freeBASIC/image/Service01.png '*************************************************************************************** '* Windows service (32 bit or 64 bit) * '* * '* Asuming you named this compiled code "MyService.exe" * '...
- Mar 06, 2017 1:18
- Forum: Windows
- Topic: Windows TaskBar application button as ProgressBar
- Replies: 0
- Views: 1035
Windows TaskBar application button as ProgressBar
Hey, This code will show how to use the Windows TaskBar application button as a ProgressBar. Available colors are red, green, yellow, and a green marquee. Usefull to show a long process progression. Pierre 'Windows TaskBar application button as ProgressBar #Lang "fb" #Define unicode #Inclu...
- Feb 18, 2017 2:05
- Forum: Windows
- Topic: Button style changes
- Replies: 5
- Views: 1580
Re: Button style changes
To expand a little on St_W saying... #Include Once "Windows.bi" DECLARE FUNCTION SetWindowTheme LIB "UxTheme.dll" ALIAS "SetWindowTheme" _ (BYVAL hWndb as HANDLE, BYVAL pszSubAppName AS LPCWSTR, BYVAL pszSubIdList AS LPCWSTR) AS LONG SetWindowTheme(hButton, " "...