Search found 315 matches

by cgx5871
13 Mar 2024, 10:50
Forum: Ask for Help (v2)
Topic: how to use class RemoteBuffer? Topic is solved
Replies: 6
Views: 246

Re: how to use class RemoteBuffer? Topic is solved

@neogna2
thank you very much
by cgx5871
11 Mar 2024, 12:47
Forum: Ask for Help (v2)
Topic: how to use class RemoteBuffer? Topic is solved
Replies: 6
Views: 246

Re: how to use class RemoteBuffer? Topic is solved

@teadrinker
convert it to V2
by cgx5871
10 Mar 2024, 18:01
Forum: Ask for Help (v2)
Topic: how to use class RemoteBuffer? Topic is solved
Replies: 6
Views: 246

how to use class RemoteBuffer? Topic is solved

Please tell me how to use class RemoteBuffer? This is a piece of V1 code, I want to convert it to V2 How to use this class RemoteBuffer? Help me hSci := ControlGetHwnd('Scintilla2', 'ahk_class SciTEWindow') sciOutputHwnd:=WinGetPID(hSci) str:="xxxx" n := VarSetCapacity(data, StrPut(str, "UTF-8")) St...
by cgx5871
07 Mar 2024, 12:51
Forum: Ask for Help (v1)
Topic: How to reference variables in cmd
Replies: 1
Views: 55

How to reference variables in cmd

Code: Select all

sCmd=C:\Program Files (x86)\Adobe
Run, SciTE.exe "--open:" %sCmd%
"Program Files (x86)"
An error will occur, how to put it in quotes
try "%sCmd%" Still error
by cgx5871
06 Mar 2024, 21:59
Forum: Ask for Help (v2)
Topic: Questions about the order of hotkeys
Replies: 3
Views: 174

Questions about the order of hotkeys

I noticed that most + are listed first, and I would like to know,
Are there rules for this priority? + # ^ ! x::
For example:
+^!f::
^!+f::
by cgx5871
28 Feb 2024, 14:43
Forum: Ask for Help (v2)
Topic: How to get the input method position its window?
Replies: 0
Views: 99

How to get the input method position its window?

An input method (rime) window, ---NoActive It has no title, only a changed class, But it changes every time with different programs, and its class changes. There seems to be no way to locate it using .exe. I used uia to check and couldn't find any usable identifiers. Is there any way to locate it? i...
by cgx5871
28 Feb 2024, 06:02
Forum: Wish List
Topic: An important suggestion about the V2 version
Replies: 2
Views: 167

An important suggestion about the V2 version

An important suggestion about the V2 version
Is there a way to wrap a function that can call a function identified as v1 version.
This allows backward compatibility with v1 scripts.
Similar :
V1_Call(v1_Funcname)
v1_Func(){
}
by cgx5871
27 Feb 2024, 23:34
Forum: SciTE4AutoHotkey
Topic: How to run a lua script in scite?
Replies: 1
Views: 139

How to run a lua script in scite?

image.png
image.png (7.51 KiB) Viewed 139 times
When I open a lua script
I see the menu is gray.
Where is this controlled?
by cgx5871
25 Feb 2024, 13:23
Forum: Ask for Help (v2)
Topic: How to create a button using an .ico file? Topic is solved
Replies: 7
Views: 188

Re: How to create a button using an .ico file? Topic is solved

@XMCQCX
So amazing
This is exactly what I want, thank you
by cgx5871
25 Feb 2024, 10:15
Forum: Ask for Help (v2)
Topic: How to create a button using an .ico file? Topic is solved
Replies: 7
Views: 188

Re: How to create a button using an .ico file? Topic is solved

image.png
image.png (27.49 KiB) Viewed 179 times
Picture can add .ico, but it has no button display effect

I saw Scite's toolbar, which perfectly displays the style and border of icons.
What is it implemented with?
by cgx5871
25 Feb 2024, 10:07
Forum: Ask for Help (v2)
Topic: How to create a button using an .ico file? Topic is solved
Replies: 7
Views: 188

How to create a button using an .ico file? Topic is solved

Code: Select all

g:=gui()
g.add("button")   ;    ;b8.ico
g.show
For example, to add a button, use the test.ico style.
Inherit its transparency and border styles?

I only know that Picture can add .ico, but it has no button effect
by cgx5871
23 Feb 2024, 15:26
Forum: Ask for Help (v2)
Topic: #HotIf WinActive("ahk_class SciTEWindow") && MouseGetPos( , , , &Ctl)="Scintilla2" Topic is solved
Replies: 2
Views: 79

#HotIf WinActive("ahk_class SciTEWindow") && MouseGetPos( , , , &Ctl)="Scintilla2" Topic is solved

MouseGetPos( , , , &Ctl)
no return value
In addition to creating another function to return
Is there a way to write a direct return?
How to write a #hotif condition
by cgx5871
21 Feb 2024, 02:39
Forum: Ask for Help (v2)
Topic: about +Owner Causes two Gui interference
Replies: 1
Views: 50

about +Owner Causes two Gui interference

I made two GUIs and used +Owner to prevent them from being displayed on the taskbar. The problem now is that show/hide will interfere with each other.
Is there a better way to not show it on the taskbar?
by cgx5871
21 Feb 2024, 01:45
Forum: Scripts and Functions (v2)
Topic: AutoResizer => Responsive Gui Controls without code change
Replies: 5
Views: 1338

Re: AutoResizer => Responsive Gui Controls without code change

A very strange phenomenon, #Include <SetButtonStyle>
It intercepts my hotkey Ctrl+u, which I use to display another gui.
I checked for a long time and found out that it was a problem with #Include <SetButtonStyle>.
i dont know with it?@sashaatx
by cgx5871
20 Feb 2024, 19:22
Forum: Scripts and Functions (v2)
Topic: [Class] GuiReSizer - Position and Resize Gui Controls
Replies: 27
Views: 5668

Re: [Class] GuiReSizer - Position and Resize Gui Controls

@FanaticGuru
thanks a lot
the ListView , DarkTheme
The title bar is black and I can't see the words.
The out-of-focus check row is completely white, which is very inconsistent.
How to solve it?
image.png
image.png (12.8 KiB) Viewed 73 times
by cgx5871
20 Feb 2024, 18:35
Forum: Ask for Help (v2)
Topic: Tooltips in GUI V1 to V2 convert Topic is solved
Replies: 6
Views: 488

Re: Tooltips in GUI V1 to V2 convert Topic is solved

mikeyww I just saw you write like this. You can also delay the display of the tooltip. ToolTip("ok"), SetTimer(ToolTip, -3000) ----------------------------- Why is the official help so complicated? As a beginner, very confused. Why is the help file written like this? ----------------------------- #...
by cgx5871
20 Feb 2024, 16:31
Forum: Ask for Help (v2)
Topic: Official help file, what is the cause of the error? Topic is solved
Replies: 1
Views: 74

Official help file, what is the cause of the error? Topic is solved

Error: Invalid callback function.

Code: Select all

#Requires Autohotkey v2
#SingleInstance

myGui := Gui()
myGui.Add("Button", "", "&OK").OnEvent("ContextMenu", Gui_ContextMenu)
myGui.show
Gui_ContextMenu(GuiObj, GuiCtrlObj, Item, IsRightClick, X, Y){
  MsgBox GuiObj.Name
}
image.png
image.png (20.02 KiB) Viewed 74 times
by cgx5871
20 Feb 2024, 15:06
Forum: Scripts and Functions (v2)
Topic: AutoResizer => Responsive Gui Controls without code change
Replies: 5
Views: 1338

Re: AutoResizer => Responsive Gui Controls without code change

AHKpy.ahk 390 Line ctrl.Opt("Background101011") not supported---hotkey gui

Go to advanced search