Search found 4549 matches

by RASHAD
Thu Mar 28, 2024 10:59 am
Forum: Coding Questions
Topic: Problem with Mouse and F10 key ...
Replies: 16
Views: 370

Re: Problem with Mouse and F10 key ...

Try If OpenWindow (1, 10, 10, 800, 600, "Keyboard Functionkey test ...", #PB_Window_SystemMenu) If OpenWindowedScreen (WindowID (1), 0, 0, 800, 600, 0, 0, 0) ClearScreen ($FF202020) KeyboardMode (#PB_Keyboard_Qwerty) AddKeyboardShortcut(1, #PB_Shortcut_F10, 100) .... .... .... .... If Keyb...
by RASHAD
Wed Mar 27, 2024 4:48 pm
Forum: Windows
Topic: ListIcon and image transparency
Replies: 10
Views: 365

Re: ListIcon and image transparency

Previous post modified
by RASHAD
Wed Mar 27, 2024 3:34 pm
Forum: Windows
Topic: ListIcon and image transparency
Replies: 10
Views: 365

Re: ListIcon and image transparency

The problem comes from Windows XP theme Next is a much easier method SetThemeAppProperties_(0) Procedure Add_Icon_To_ImageList(ImgList, DLL_Path.s, index) Protected hIcon, img_index = -1 hIcon = ExtractIcon_(#Null, DLL_Path, index) StartDrawing(ImageOutput(1)) Box(0,0,24,24,$FFFFFF) DrawImage(hicon,...
by RASHAD
Wed Mar 27, 2024 11:40 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 10
Views: 365

Re: ListIcon and image transparency

Procedure Add_Icon_To_ImageList(ImgList, DLL_Path.s, index) Protected hIcon, img_index = -1 iinf.ICONINFO hIcon = ExtractIcon_(#Null, DLL_Path, index) StartDrawing(ImageOutput(1)) Box(0,0,32,32,$FFFFFF) DrawImage(hicon,0,0,24,24) StopDrawing() iinf\hbmMask = ImageID(0) iinf\hbmColor = ImageID(1) ic...
by RASHAD
Wed Mar 27, 2024 2:30 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 10
Views: 365

Re: ListIcon and image transparency

Procedure Add_Icon_To_ImageList(ImgList, DLL_Path.s, index) Protected hIcon, img_index = -1 hIcon = ExtractIcon_(#Null, DLL_Path, index) StartDrawing(ImageOutput(1)) Box(0,0,24,24,$ffffff) DrawImage(hicon,0,0,24,24) StopDrawing() iinf.ICONINFO iinf\fIcon = 1 iinf\hbmMask = ImageID(0) iinf\hbmColor ...
by RASHAD
Sun Mar 24, 2024 9:59 am
Forum: Coding Questions
Topic: How to catch the keyboard layout switch event?
Replies: 4
Views: 256

Re: How to catch the keyboard layout switch event?

I didn't use any Window and forced CMD to be run as Invoker not admin
It works here with Windows 11 x64
It's different than you did
by RASHAD
Sun Mar 24, 2024 4:31 am
Forum: Coding Questions
Topic: How to catch the keyboard layout switch event?
Replies: 4
Views: 256

Re: How to catch the keyboard layout switch event?

Catch Input language change while running CMD.exe Global prog,kb,oldkb prog = RunProgram("cmd.exe","","",#PB_Program_Open) While ProgramRunning(prog) kb = GetWindowThreadProcessId_(GetForegroundWindow_(),0) kb = GetKeyboardLayout_(kb) If kb <> oldkb oldkb = kb Delay(100...
by RASHAD
Fri Mar 22, 2024 11:10 am
Forum: Coding Questions
Topic: Icon display messed up
Replies: 11
Views: 335

Re: Icon display messed up

Hi tatanas
It depends
Delay is not always the good solution
But you can use [While WindowEvent():Wend ] when needed
Be sure that every repeated process start on clean ground
Try and error is your answer :D
by RASHAD
Fri Mar 22, 2024 3:19 am
Forum: Coding Questions
Topic: EscapeRegularExpression() function?
Replies: 5
Views: 215

Re: EscapeRegularExpression() function?

Sample for using Escape with RegularExpression It may help Text$ = ~"<a href=\"https://www.sample.com\">Share</a>" + #CRLF$ Text$ + ~"<p> Share</p>" + #CRLF$ Text$ + ~"<a NoReplaceMe>Share</a>" + #CRLF$ Text$ + ~"<a href=\"https://www.sample.com\&quo...
by RASHAD
Fri Mar 22, 2024 2:43 am
Forum: Coding Questions
Topic: EscapeRegularExpression() function?
Replies: 5
Views: 215

Re: EscapeRegularExpression() function?

Maybe
String lib

Code: Select all

EscapeString(String$ [, Mode])
UnescapeString(String$ [, Mode])
by RASHAD
Thu Mar 21, 2024 6:57 pm
Forum: Coding Questions
Topic: Icon display messed up
Replies: 11
Views: 335

Re: Icon display messed up

Most of my problems comes from Time and Timing specially these days with SSD devices :)
Check that and give the CPU and other components time to breeze
by RASHAD
Thu Mar 21, 2024 2:14 pm
Forum: Tricks 'n' Tips
Topic: Color Button using API [Windows]
Replies: 4
Views: 443

Re: Color Button using API [Windows]

Hi guys
Thanks blueb and pjay for your comments
NM I am so glad to read your comments at any PB post :)
I hope you are in a very good shape
by RASHAD
Wed Mar 20, 2024 1:46 pm
Forum: Coding Questions
Topic: [SOLVED] Drag'n'Drop and Admin mode
Replies: 11
Views: 355

Re: Drag'n'Drop and Admin mode

Hi
You can't D&D from lower UAC to higher UAC [ Security issue ]
Workaround :
1- Create a dummy application as user UAC
2- D&D to the dummy
3- Copy from the dummy then paste to the higher one

It's tricky and need some ghost effects to do it :)
by RASHAD
Wed Mar 20, 2024 3:44 am
Forum: Coding Questions
Topic: [SOLVED] Drag'n'Drop and Admin mode
Replies: 11
Views: 355

Re: Drag'n'Drop and Admin mode

Hi How do you expect the string gadget to accept D&D if it's Read Only EnableExplicit Define.s XMLString XMLString="<?xml version='1.0' encoding='UTF-16'?>"+Chr(10)+ ;{ "<dialogs>"+Chr(10)+ " <window id='0' name='Window1' text='Test' xpos='0' ypos='0' width='auto' minwid...