Search found 76 matches

by dd900
14 Nov 2017, 15:47
Forum: Offtopic
Topic: AHKathon! [AHK Hackathon] 12/17
Replies: 80
Views: 14610

Re: AHKathon! [AHK Hackathon] 12/17

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

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: 2040

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: 338
Views: 89281

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: 338
Views: 89281

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: 2258

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: 54320

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: 54320

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: 50425

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: 50425

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: 50425

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: 4306

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: 4306

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: 3157

Re: Inputbox in the centre of the GUI

Gui New, +HwndhGui -DPIScale
by dd900
03 Aug 2015, 04:02
Forum: Ask For Help
Topic: [SOLVED] Convert string to raw binary data?
Replies: 14
Views: 4496

Re: Convert string to raw binary data?

;test here: https://paulschou.com/tools/xlate/ string := "test StrinG`[email protected]#$%^&*()" Binary := StrToBin( string ) msgbox % Binary clipboard := "", clipboard := Binary StrToBin( string ) { Loop Parse, string { var := 128 Transform, bin, Asc, %A_LoopField% loop 8 { oldbin := bin, bin := bin-var, v...
by dd900
03 Aug 2015, 00:10
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 153
Views: 50425

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

Wow I wish I would have looked into this sooner. I am wondering if I could get some advice? I'm relatively new to C#. I am trying to create a class to use XPathNavigator. So far what I have works, but I really don't want to go any further until I get some clarification on a few things. Here is my co...
by dd900
02 Aug 2015, 15:27
Forum: Ask For Help
Topic: Inputbox in the centre of the GUI
Replies: 17
Views: 3157

Re: Inputbox in the centre of the GUI

I hope you get everything worked out. Good luck with your script. ibSize := { ib1: { w: 400, h: 200 }, ib2: { w: 450, h: 250 } } Gui New, +HwndhGui Gui %hGui%:Add, Button, vib1 gibShow, Inputbox1 Gui %hGui%:Add, Button, vib2 gibShow, Inputbox2 Gui %hGui%:show,x200 y100 h300 w700,Test OnMessage( 0x00...
by dd900
02 Aug 2015, 13:59
Forum: Ask For Help
Topic: Inputbox in the centre of the GUI
Replies: 17
Views: 3157

Re: Inputbox in the centre of the GUI

You will either have to do the calculation everytime you move/resize the gui or whenever you call an InputBox. Otherwise you will not have updated coords and size when the gui has changed positions. ibSize := [ { w: 300, h: 200 }, { w: 350, h: 250 } ] Gui New, +HwndhGui Gui %hGui%:Add, Button, ga1, ...
by dd900
02 Aug 2015, 13:43
Forum: Ask For Help
Topic: Inputbox in the centre of the GUI
Replies: 17
Views: 3157

Re: Inputbox in the centre of the GUI

You could always use an Array to store the InputBox sizes.

Why do you need so many different sizes?
by dd900
02 Aug 2015, 12:25
Forum: Ask For Help
Topic: how to add files to Resource Library
Replies: 0
Views: 541

how to add files to Resource Library

You can include library functions in resource of exe or dll (Resorce type must be "LIB", e.g. LIB/WATCHDIRECTORY.AHK). Additionally AutoHotkey.dll can load library functions from exe file automatically (Note both execuables must be using same password if source is encrypted). Note, this is not supp...

Go to advanced search