Search found 1390 matches

by TheDewd
18 Nov 2019, 14:50
Forum: Scripts and Functions
Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
Replies: 303
Views: 135909

Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)

I made another attempt to style a Gui similar to Google's Material Design. It's only the styled Gui at the moment, with functional window control buttons (minimize, maximize, close). No other functionality added yet. Started with a captionless and borderless Gui, and added custom images to emulate t...
by TheDewd
15 Nov 2019, 08:41
Forum: Scripts and Functions
Topic: Image2Include - #include images in your scripts
Replies: 10
Views: 2596

Re: Image2Include - #include images in your scripts

First of all, nice work so far. Been trying to use your script, but I have no clue how to add more images in a GUI using this. Can you tell me how? This is using my older functions, because I already had the code ready to post. #SingleInstance, Force B64Logo := "iVBORw0KGgoAAAANSUhEUgAAAgUAAABOCAMA...
by TheDewd
15 Nov 2019, 08:35
Forum: Ask For Help
Topic: [Gdip] Use Base64 PNG data with Gdip? Topic is solved
Replies: 24
Views: 5546

Re: [Gdip] Use Base64 PNG data with Gdip? Topic is solved

...does this removes transparency from PNG images? In my tests I overlapped two images to test it and it seems transparency is gone. Can you confirm this, please? You will need to use +BackgroundTrans on the image to make it transparent when you do the overlapping. #SingleInstance, Force B64Logo :=...
by TheDewd
13 Nov 2019, 13:54
Forum: Scripts and Functions
Topic: Image2Include - #include images in your scripts
Replies: 10
Views: 2596

Re: Image2Include - #include images in your scripts

guest3456 , I'm currently using the functions below... These are what I settled on after making that post in "Ask for Help" that you linked to: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=49849 ; GDI+ Startup hGdip := DllCall("Kernel32.dll\LoadLibrary", "Str", "Gdiplus.dll") ; Load modul...
by TheDewd
13 Nov 2019, 11:03
Forum: Ask For Help
Topic: Embed Font? Topic is solved
Replies: 3
Views: 396

Re: Embed Font? Topic is solved

Success! I've converted the hexadecimal data of a TrueType font into a font that is read from memory and applied to a text control in the Gui. I had difficulty getting SKAN's compression & decompression method to work for this hexadecimal code, so I just included the original data in its entirety. M...
by TheDewd
12 Nov 2019, 21:45
Forum: Ask For Help
Topic: Embed Font? Topic is solved
Replies: 3
Views: 396

Embed Font? Topic is solved

Is there a way to embed a TrueType font file in my script without encoding the file data and then writing to a file after executing the script? I know I can write the hex data to my script and then write it to the disk as a font file, but I'd like a way to keep the font in memory only, never writing...
by TheDewd
12 Nov 2019, 16:27
Forum: Ask For Help
Topic: Create Pixel Color
Replies: 13
Views: 2032

Re: Create Pixel Color

If you use a picture control, I believe there's no way around having to create another one for each color you want. To change the color of an existing picture control, only need to use the function again with a different color code... CreatePixel(hText1, "FF00DC") The function can be called multipl...
by TheDewd
12 Nov 2019, 16:00
Forum: Ask For Help
Topic: Create Pixel Color
Replies: 13
Views: 2032

Re: Create Pixel Color

This might have the added advantage in that you can change the color of the control whenever you want without having to have one for each color. If you prefer using Progress controls, you can change the color on demand: #SingleInstance, Force Colors := ["Red", "Green", "Blue", "Yellow", "Silver", "...
by TheDewd
12 Nov 2019, 15:41
Forum: Ask For Help
Topic: Create Pixel Color
Replies: 13
Views: 2032

Re: Create Pixel Color

I use Progress controls for this purpose. The following looks equivalent in results to your example. Is there a reason this wouldn't suffice? I use them for big blocks of color as in your example, as well as for drawing lines with widths as small as a pixel. Gui, Add, Progress, x0 y0 w300 h300 Back...
by TheDewd
12 Nov 2019, 11:30
Forum: Ask For Help
Topic: Create Pixel Color
Replies: 13
Views: 2032

Re: Create Pixel Color

MrRED , Actually, the function only needed a simple tweak to solve the high memory consumption issue. The updated function is posted below: Function : CreatePixel(HWND, Color) { ; TheDewd / 2019-11-12 hBitmap := DllCall("Gdi32.dll\CreateBitmap", "Int", 1, "Int", 1, "UInt", 1, "UInt", 24, "Ptr", 0, ...
by TheDewd
08 Nov 2019, 14:00
Forum: Ask For Help
Topic: Toggle Rebound key
Replies: 1
Views: 200

Re: Toggle Rebound key

Code: Select all

#SingleInstance, Force

Toggle := 0 ; Initialize variable
return

F12:: ;<-- F12 Hotkey
	Toggle := !Toggle ; Toggle variable to 1 or 0
return

#If (Toggle) ; If Toggle variable = 1
	LButton::LAlt
#If
by TheDewd
05 Nov 2019, 16:00
Forum: Offtopic
Topic: How is the "weight" of a code measured? Topic is solved
Replies: 3
Views: 1719

Re: How is the "weight" of a code measured? Topic is solved

I count the total number of lines, including blank lines and lines containing comments. In my opinion, the line count should not be used to define the worth/value of a project. A SQL script can be written on multiple lines for better readability, however the same code can also be written on a single...
by TheDewd
30 Oct 2019, 12:40
Forum: Ask For Help
Topic: Extract ZIP to RAM?
Replies: 65
Views: 6220

Re: Extract ZIP to RAM?

@tmplinshi,

Wow! Thank you for providing this example!

I will experiment with the sample code and try to prevent the crashing.
by TheDewd
29 Oct 2019, 12:30
Forum: Ask For Help
Topic: Extract ZIP to RAM?
Replies: 65
Views: 6220

Re: Extract ZIP to RAM?

just 1 minute Googling I will check it out with time https://www.autohotkey.com/boards/viewtopic.php?t=9858 Please let me know if you figure out how to do this. I have attached an example for extracting a file using the 7Zip DLL file, however I don't know how to set the output to the named pipe. Se...
by TheDewd
29 Oct 2019, 09:49
Forum: Ask For Help
Topic: Extract ZIP to RAM?
Replies: 65
Views: 6220

Re: Extract ZIP to RAM?

I guess you could extract it to a named pipe. Thanks! I'll reference keywords "Named Pipe" and "CreateNamedPipe" in my Google searches to see if I can figure out a solution. My goal is to read the raw binary of the compressed file without extracting the file to the hard disk. If anyone can provide ...
by TheDewd
29 Oct 2019, 08:25
Forum: Ask For Help
Topic: Extract ZIP to RAM?
Replies: 65
Views: 6220

Extract ZIP to RAM?

How can I extract a file from a zip archive to memory without writing anything to the harddrive? If possible, I would prefer to use one of the 7zip dll files. I want to unpack a single file from a zip archive into RAM, and then be able to read the contents of the file from RAM. Any ideas? I know it'...
by TheDewd
16 Oct 2019, 11:29
Forum: Ask For Help
Topic: Information for the run is contained in a ini-file
Replies: 3
Views: 327

Re: Information for the run is contained in a ini-file

Code: Select all

Run, C:\Pvx\Pvxwin32.exe C:\squid2\program\CHNCUPD.ini
:?:
by TheDewd
16 Oct 2019, 11:19
Forum: Ask For Help
Topic: Trying to get the username of the person that opened the file Topic is solved
Replies: 5
Views: 539

Re: Trying to get the username of the person that opened the file Topic is solved

Use the variable A_Startup A_Startup The full path and name of the Startup folder in the current user's Start Menu. For example: C:\Users\<UserName>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup #SingleInstance, Force MsgBox, % A_Startup RegExMatch(A_Startup, ":\\Users\\(.*?)\\", Use...
by TheDewd
15 Oct 2019, 14:43
Forum: Ask For Help
Topic: Add a button in a GUI to separate each input line Topic is solved
Replies: 2
Views: 282

Re: Add a button in a GUI to separate each input line Topic is solved

#SingleInstance, Force Gui, Margin, 10, 10 Gui, Add, Text, w260 r1, PO Number(s): Gui, Add, Edit, y+10 wp r20 vEdit1 Gui, Add, Button, Default y+10 w80 h24 gClose, Close Gui, Add, Button, x+10 wp hp gOpen, Open Gui, Add, Button, x+10 wp hp gAddlines, Add lines Gui, Add, Button, x+10 wp hp gCancel, ...

Go to advanced search