Search found 44 matches
- 25 Aug 2022, 02:16
- Forum: Ask for Help (v1)
- Topic: How to "interpret" winapi parameters on NumPut?
- Replies: 1
- Views: 242
How to "interpret" winapi parameters on NumPut?
I'm trying to understand how to 'fill' NumPut parameters when calling winapis https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-bitmapinfo CreateDIBSection(w, h, bpp:=32, ByRef ppvBits:=0, ByRef bi:="") { VarSetCapacity(bi, 40, 0) NumPut(40, bi, 0, "int") NumPut(w, bi, 4, "int") Nu...
- 10 Aug 2022, 11:03
- Forum: Ask for Help (v1)
- Topic: How to use class 'this.' var inside of var = ( ) ?
- Replies: 1
- Views: 293
How to use class 'this.' var inside of var = ( ) ?
foo.x() return Class foo { x() { this.color := "blue" text = (LTrim color is this.color ) MsgBox text: %text% } } how to use the value of this.color inside of text = ( ) ? do i necessarily need to append it to another variable and call it with %%? x() { this.color := "blue" color := this.color ; <-...
- 16 Jun 2022, 07:08
- Forum: Ask for Help (v1)
- Topic: How to build wParam and lParam of WM_KEYDOWN/UP message?
- Replies: 14
- Views: 2152
Re: How to build wParam and lParam of WM_KEYDOWN/UP message?
Thank you!
When sending WM_CHAR on the postmessage, theres no need to send WM_KEYUP?
is sending B
When sending WM_CHAR on the postmessage, theres no need to send WM_KEYUP?
Code: Select all
SendKeys("BACKSPACE")
- 16 Jun 2022, 04:51
- Forum: Ask for Help (v1)
- Topic: How to build wParam and lParam of WM_KEYDOWN/UP message?
- Replies: 14
- Views: 2152
Re: How to build wParam and lParam of WM_KEYDOWN/UP message?
Do you know how to also build these params for WM_CHAR?teadrinker wrote: ↑15 Jun 2022, 18:59Both parameters are different, see descriptions on MSDN: WM_CHAR, WM_KEYDOWN.
- 15 Jun 2022, 16:12
- Forum: Ask for Help (v1)
- Topic: How to build wParam and lParam of WM_KEYDOWN/UP message?
- Replies: 14
- Views: 2152
Re: How to build wParam and lParam of WM_KEYDOWN/UP message?
I changed the function a little: Theres difference from the wParam and lParam used by WM_KEYDOWN and WM_CHAR ? When i modify the function to send WM_CHAR the keys are sended as uppercase, and modifier like F1, F2, F3, BACKSPACE, etc, didn't work ControlGetFocus, FocusedCtrl, A PostMessage, 0x102, w...
- 12 Jun 2022, 11:00
- Forum: Ask for Help (v1)
- Topic: How to build wParam and lParam of WM_KEYDOWN/UP message?
- Replies: 14
- Views: 2152
Re: How to build wParam and lParam of WM_KEYDOWN/UP message?
Use this example: Thank you! exactly what i was looking for, question: PostMessage, WM_KEYDOWN, wParam, lParam, %FocusedCtrl%, A how this line evaluate the value of the variables without the %% ? I mean: PostMessage, %WM_KEYDOWN%, %wParam%, %lParam%, %FocusedCtrl%, A Also how to send keycodes like ...
- 12 Jun 2022, 10:44
- Forum: Ask for Help (v1)
- Topic: How to build wParam and lParam of WM_KEYDOWN/UP message?
- Replies: 14
- Views: 2152
Re: How to build wParam and lParam of WM_KEYDOWN/UP message?
You just copied what i posted and added a msgbox, my goal is a function to build the parameters and not rely on creating a GUI to receive the msg and return the value
- 12 Jun 2022, 09:27
- Forum: Ask for Help (v1)
- Topic: How to build wParam and lParam of WM_KEYDOWN/UP message?
- Replies: 14
- Views: 2152
How to build wParam and lParam of WM_KEYDOWN/UP message?
I have build this GUI that intercept WM_KEYDOWN and WM_KEYUP messages and print their parameters values: AutoHotkey_2022-06-12_11-14-42.png How i could 'programatically' build wParam and lParam to use with PostMessage ? I mean something similar to the maro of building WM_LBUTTONDOWN lParam lParam :=...
- 01 Jun 2022, 07:52
- Forum: Scripts and Functions (v1)
- Topic: [Class] LV_Colors - 1.1.05.00 (2024-03-16)
- Replies: 151
- Views: 71253
Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
just me, is possible to change the background color of the entire ListView? I mean, when there are no rows yet, the background is fully white, possible to change it to another color? Also, when i add the class to the listview, i cant resize it anymore, by resize i mean this: image.png Is this a 'bug...
- 25 May 2022, 13:25
- Forum: Ask for Help (v1)
- Topic: Hide command console when using RunWaitOne() example Topic is solved
- Replies: 34
- Views: 4095
Re: Hide command console when using RunWaitOne() example Topic is solved
This approach doesn't give an ability to interrupt waiting for data since ReadFile is called in the synchronous mode and completely blocks the script. However I tried the asynchronous approach: MsgBox, % ReadStdOut("notepad",,, 3000) ExitApp ReadStdOut(cmd, encoding := "", callBack := "", timeout :...
- 24 Apr 2022, 12:57
- Forum: Ask for Help (v1)
- Topic: ScrollWindowEx SW_SMOOTHSCROLL
- Replies: 3
- Views: 502
Re: ScrollWindowEx SW_SMOOTHSCROLL
@c7aesa7r
same thing, independent of what value i input as the time, it scroll at the same speed
same thing, independent of what value i input as the time, it scroll at the same speed
- 23 Apr 2022, 18:32
- Forum: Ask for Help (v1)
- Topic: ScrollWindowEx SW_SMOOTHSCROLL
- Replies: 3
- Views: 502
ScrollWindowEx SW_SMOOTHSCROLL
do someone know how to use the flag SW_SMOOTHSCROLL on ScrollWindowEx SW_SMOOTHSCROLL Scrolls using smooth scrolling. Use the HIWORD portion of the flags parameter to indicate how much time, in milliseconds, the smooth-scrolling operation should take. i tried this: flags := SW_SCROLLCHILDREN | SW_SM...
- 23 Apr 2022, 18:22
- Forum: Ask for Help (v1)
- Topic: Scrollable GUI from given position
- Replies: 8
- Views: 1013
Re: Scrollable GUI from given position
@lmstearn i had found your topic before and also test it, i see in your script you limit the scroll speed to 5sec
do you mean only allow scroll between a minimum time?
do you mean only allow scroll between a minimum time?
- 22 Apr 2022, 09:17
- Forum: Ask for Help (v1)
- Topic: Scrollable GUI from given position
- Replies: 8
- Views: 1013
Re: Scrollable GUI from given position
just me Its scrolling from the given area, however its causing glitches: 2022-04-22_11-11-32.gif I also tried with ScrollWindowEx and it happens the same thing I tried playing with the flags and in which value to use the rect, but I must be missing something: ;flags := SW_ERASE | SW_SCROLLCHILDREN ...
- 10 Apr 2022, 10:42
- Forum: Ask for Help (v1)
- Topic: How to properly call Track Mouse Event?
- Replies: 5
- Views: 858
Re: How to properly call Track Mouse Event?
global WM_MOUSEMOVE := 0x200 , WM_MOUSEHOVER := 0x2A1 , WM_MOUSELEAVE := 0x2A3 , WM_NCMOUSEMOVE := 0xA0 , WM_NCMOUSEHOVER := 0x02A0 , WM_NCMOUSELEAVE := 0x2A2 Gui, +E0x02000000 +E0x00080000 Gui, Add, Text, vTxt1, first text Gui, Add, Text, vTxt2, second text Gui, Add, Text, vTxt3, third text Gui, A...
- 09 Apr 2022, 19:53
- Forum: Ask for Help (v1)
- Topic: How to properly call Track Mouse Event?
- Replies: 5
- Views: 858
- 07 Apr 2022, 18:47
- Forum: Ask for Help (v1)
- Topic: How to properly call Track Mouse Event?
- Replies: 5
- Views: 858
How to properly call Track Mouse Event?
Im trying to get this script post by lexikos here, working: https://www.autohotkey.com/board/topic/16842-trackmouseevent/ In her script the message OnMouseHover never get fired, imt not sure if its something related to x32/x64 versions as its a old script. Gui, Add, Text, vTxt1, first text Gui, Add,...
- 11 Mar 2022, 16:53
- Forum: Scripts and Functions (v1)
- Topic: ChooseColors() : Color selection UI
- Replies: 34
- Views: 7882
Re: ChooseColors() : Color selection UI
Great job SKAN!
When i click multiple times in a color it goes getting darker, is possible to disable this behaviour?
When i click multiple times in a color it goes getting darker, is possible to disable this behaviour?
- 11 Feb 2022, 00:34
- Forum: Ask for Help (v1)
- Topic: AnimateWindow
- Replies: 3
- Views: 484
AnimateWindow
Would like to ask if the code below also cause a flickering for someone else: SetBatchLines, -1 SetWinDelay, -1 SetControlDelay, -1 Gui, +HwndhGUI +E0x02000000 +E0x00080000 -Caption Gui, Color, 0 Gui, Show, w640 h480 Return F2:: DllCall("AnimateWindow", "UInt", hGui, "UInt", 600, "UInt", 0x00000002|...
- 09 Feb 2022, 20:36
- Forum: Ask for Help (v1)
- Topic: How to move a gui control while moving the mouse? Topic is solved
- Replies: 3
- Views: 785
Re: How to move a gui control while moving the mouse? Topic is solved
I have found a better way to achieve this, thanks to MiM: #SingleInstance, Force SetControlDelay, -1 SetBatchLines, -1 SetWinDelay, -1 Gui, Color, White Gui, +hwndGuiHwnd +E0x02000000 +E0x00080000 Gui, Add, Picture, x10 y10 w64 h64 +hwndTabButton1Hwnd vTabButton1 gTabButtons +0x40000 +0x4000000 +Ico...