Search found 82 matches

by dd900
02 Dec 2019, 02:43
Forum: Ask For Help
Topic: Using control click on the add attachments button with a specific class NN Topic is solved
Replies: 17
Views: 481

Re: Using control click on the add attachments button with a specific class NN Topic is solved

I know I'm late to this party, but it looks to me like the winspy info in the OP is not correct. The "Edit Attachment" window has the focus. You need to close that window and make sure only the parent window containing the button is open. Open winspy and hover the mouse over the paperclip. Do not cl...
by dd900
19 Nov 2019, 21:59
Forum: Ask For Help
Topic: Maximising a window with a matching MyWinTitle Topic is solved
Replies: 9
Views: 968

Re: Maximising a window with a matching MyWinTitle Topic is solved

No problem. winTitle := "Custom Filter - Occurrence List - Q-Pulse" winTitle2 := "LaunchPad <Knight, James>" winClass := "ahk_class WindowsForms10.Window.8.app.0.2eed1ca_r9_ad1" editControl := "WindowsForms10.EDIT.app.0.2eed1ca_r9_ad" hWnd1 := WinExist(winTitle) ; Get Custom Filter window hWnd hWnd2...
by dd900
18 Nov 2019, 17:16
Forum: Ask For Help
Topic: Maximising a window with a matching MyWinTitle Topic is solved
Replies: 9
Views: 968

Re: Maximising a window with a matching MyWinTitle Topic is solved

Well if you know both wintitles then we definitely should't need a loop. What does this do? winTitle := "Custom Filter - Occurence List - Q-Pulse" winTitle2 := "LaunchPad <Knight, James>" winClass := "ahk_class WindowsForms10.Window.8.app.0.2eed1ca_r9_ad1" hWnd1 := WinExist(winTitle) ; Get Custom Fi...
by dd900
17 Nov 2019, 11:38
Forum: Ask For Help
Topic: 4 digits pin cracker?
Replies: 4
Views: 163

Re: 4 digits pin cracker?

Press q to start, Esc to stop. q:: Loop, 9999 { send, % format("{:04}",A_Index-1) "{Enter}" Sleep, 5 ; perhaps you will need to adjust this value ( in milliseconds ) } return *Esc:: ExitApp Close, but since it is zero based you need to add 1 to the number of loops q:: Loop, 10000 { send, % format("...
by dd900
17 Nov 2019, 11:04
Forum: Ask For Help
Topic: Maximising a window with a matching MyWinTitle Topic is solved
Replies: 9
Views: 968

Re: Maximising a window with a matching MyWinTitle Topic is solved

Well since you already know what the WinTitle is I see no reason for the WinGet or the Loop. One of the commands here should Maximize the window. SetTitleMatchMode, 2 DetectHiddenWindows, On winTitle := "Custom Filter - Occurence List - Q-Pulse" winClass := "ahk_class WindowsForms10.Window.8.app.0.2...
by dd900
16 Nov 2019, 14:38
Forum: Ask For Help
Topic: Why is this script freezing?
Replies: 0
Views: 1542

Why is this script freezing?

I'm trying to download rom patches from romhacking.net. The site doesn't allow hotlinking directly to the files and a copy/paste password must be entered to initialize the download. I can get past that, but when the File Download dialog pops up my script seems to freeze. I narrowed it down to the Wi...
by dd900
14 Nov 2017, 15:47
Forum: Offtopic
Topic: AHKathon! [AHK Hackathon] 12/17
Replies: 80
Views: 15480

Re: AHKathon! [AHK Hackathon] 12/17

This sounds fun...
by dd900
31 Oct 2017, 10:35
Forum: AHK Studio
Topic: AHK Studio
Replies: 1075
Views: 305641

Re: AHK Studio

Hey maestrith, just started using AhkStudio. So far I love it, thank you. I did notice however that if a class extends another class it does not show up properly in the lib tree. I can confirm removing the "extends classWhatever" fixes the problem and the class shows up as it should.
by dd900
29 Oct 2017, 15:12
Forum: Scripts and Functions
Topic: UTF-8 ini files
Replies: 8
Views: 2229

Re: UTF-8 ini files

Nice code. But whats wrong with normal Ini cmds? Works fine: IniWrite, % Chr(8730) Chr(33) Chr(333) Chr(3333) Chr(33333) Chr(8730), ini.ini, sec, key IniRead, nonASCII, ini.ini, sec, key MsgBox, % nonASCII Notepad++ is telling me the above ini is encoded with UCS-2 LE BOM Funny because the documente...
by dd900
29 Oct 2017, 11:53
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 345
Views: 95652

Re: GDI+ standard library 1.45 by tic

Thanks for the help tic. I have another question. What would be the proper way to use BitBlt with Gdip2? This works with the original library: Gui, New, +HwndhMain -Caption Gui, %hMain%:Show, w1280 h720 x40 y40 dcMain := GetDC(hMain) , hbm := CreateDIBSection(1280, 720) , hdc := CreateCompatibleDC()...
by dd900
23 Oct 2017, 23:05
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 345
Views: 95652

Re: GDI+ standard library 1.45 by tic

Hey tic just got around to trying out Gdip2. I'm having a bit of trouble with example 3 (create-gui-from-image). If I try to set the x and y coords to anything but 0 the right and bottom sides of the image get cut off.
by dd900
22 Aug 2015, 11:44
Forum: Wish List
Topic: Call dll directly without specifying parameter type
Replies: 8
Views: 2331

Re: Call dll directly without specifying parameter type

Have you tried DynaCall? Using DynaCall you only have to define parameters once.

Code: Select all

Msg:= DynaCall("MessageBox", ["i=tssui", 2, 3], A_ScriptHwnd, "text", "caption", 0x00000000)
%Msg%("Hi", "Title")
by dd900
11 Aug 2015, 11:22
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 188
Views: 57251

Re: CodeQuickTester

What effect do you think this new approach has on code readability? I think that would depend on the user. I myself find it easier to read the newer version, but that's only because I am familiar with how classes work in ahk (thank you lexikos). Someone with no experience using objects or classes i...
by dd900
10 Aug 2015, 23:46
Forum: Scripts and Functions
Topic: [Editor] CodeQuickTester - Write and run code without saving to a temporary file
Replies: 188
Views: 57251

Re: CodeQuickTester

Looks good. I just tested this with CodeQuickTester then I used the new instance to load another instance of CodeQuickTester.

CodeQuickTesterCeption
by dd900
07 Aug 2015, 00:40
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 153
Views: 52868

Re: .NET Framework Interop (CLR, C#, VB)

One more question. How would I get an object reference to System.Windows.Forms.MessageBoxButtons?
by dd900
06 Aug 2015, 23:14
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 153
Views: 52868

Re: .NET Framework Interop (CLR, C#, VB)

How do I get a reference to the MessageBox class Type? asm := CLR_LoadLibrary( "System.Windows.Forms" ) type := asm.GetType() ;type = System.Reflection.Assembly I've also tried to create a domain then call domain.Load_2(assemblyName) , but the only thing I can get to load is "mscorlib". Anything els...
by dd900
06 Aug 2015, 14:18
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 153
Views: 52868

Re: .NET Framework Interop (CLR, C#, VB)

They're both .NET-based classes. Use CLR_LoadLibrary to load the System.Xml assembly. I figured as much, but I can't get anything to work loading the assemblies directly. asm := CLR_LoadLibrary( "System.Xml" ) XPath := CLR_CreateObject( asm, "XPath" ) xPathDoc := new XPath.XPathDocument("path to xm...
by dd900
04 Aug 2015, 14:38
Forum: Ask For Help
Topic: Disable just the Edit box portion of a ComboBox?
Replies: 20
Views: 4515

Re: Disable just the Edit box portion of a ComboBox?

I was just about to add this when I saw your edit. Yours is better. GetComboEditHwnd( comboHwnd, winTitle:="A" ) { WinGet, OutputVar, ControlListHwnd, %winTitle% next := 0 Loop Parse, OutputVar, `n { if next { hwnd := A_LoopField break } if ( A_LoopField = comboHwnd ) next := 1 } return hwnd }
by dd900
03 Aug 2015, 17:03
Forum: Ask For Help
Topic: Disable just the Edit box portion of a ComboBox?
Replies: 20
Views: 4515

Re: Disable just the Edit box portion of a ComboBox?

try using this: CBS_DROPDOWNLIST := 0x0003 style when creating the control.

thanks to user "just me" for his collection of GUI Constants
https://github.com/AHK-just-me/AHK_Gui_Constants/

more specifically
https://github.com/AHK-just-me/AHK_Gui_ ... mboBox.ahk
by dd900
03 Aug 2015, 13:20
Forum: Ask For Help
Topic: Inputbox in the centre of the GUI
Replies: 17
Views: 3352

Re: Inputbox in the centre of the GUI

Gui New, +HwndhGui -DPIScale

Go to advanced search