Search found 1058 matches

by Hellbent
18 May 2020, 00:41
Forum: Ask For Help
Topic: AutoHotKey Password
Replies: 14
Views: 613

Re: AutoHotKey Password

Perhaps something along these lines.

Code: Select all

::@Youtube::
	Run, www.Youtube.com
	return
Hotstrings:
https://www.autohotkey.com/docs/Hotstrings.htm
by Hellbent
17 May 2020, 19:49
Forum: General Discussion
Topic: 32 Bit or 64 Bit?
Replies: 7
Views: 873

Re: 32 Bit or 64 Bit?

Thanks guys, as usual you have been very helpful. I think that this gives me enough info to recommend the 32-Bit version. - but I rarely compile. I haven't bothered with compiling any scripts since at least 2017, the false positives left a bad taste in my mouth and I just don't want to waste a secon...
by Hellbent
17 May 2020, 10:18
Forum: General Discussion
Topic: 32 Bit or 64 Bit?
Replies: 7
Views: 873

Re: 32 Bit or 64 Bit?

Thank you for the input.

If someone compiles a script while using the 64-Bit version, can a person using a 32-Bit OS run the script?
by Hellbent
17 May 2020, 02:06
Forum: Ask For Help
Topic: Gui gcontrol as a funtion Topic is solved
Replies: 10
Views: 568

Re: Gui gcontrol as a funtion Topic is solved

Gives a warning. #SingleInstance, Force #Warn return *ESC::ExitApp Test(i="") { Global if instr(i, "key") i := substr(i, 4) else i := substr(A_guicontrol, 2) Guicontrolget, c%i% if (c%i% != ""){ soundbeep ToolTip, % c%i% } } Numpad1:: Test("key1") Gives no warning. #SingleInstance, Force #Warn c1 :=...
by Hellbent
17 May 2020, 01:55
Forum: Ask For Help
Topic: Gui gcontrol as a funtion Topic is solved
Replies: 10
Views: 568

Re: Gui gcontrol as a funtion Topic is solved

Please supply code that I can run that gives the error.
by Hellbent
17 May 2020, 01:28
Forum: Ask For Help
Topic: Gui gcontrol as a funtion Topic is solved
Replies: 10
Views: 568

Re: Gui gcontrol as a funtion Topic is solved

PuzzledGreatly wrote:
17 May 2020, 01:19
Thanks, but I would rather understand how to write the code so I don't get the warning.
If you are using #Warn, just declare your variables.
by Hellbent
17 May 2020, 01:24
Forum: Ask For Help
Topic: Gui gcontrol as a funtion Topic is solved
Replies: 10
Views: 568

Re: Gui gcontrol as a funtion Topic is solved

I am unable to get that error. Can you supply more of your code? Gui,1:+AlwaysOnTop Gui,1:Add,DDL, vc1 gTest,Item1|ITEM2| Gui,1:Show, ;~ Gui1() return GuiClose: *ESC:: ExitApp ;~ Gui1(){ ;~ Global ;~ Gui,1:+AlwaysOnTop ;~ Gui,1:Add,DDL, vc1 gTest,Item1||ITEM2| ;~ Gui,1:Show, ;~ } Test(i="") { Global...
by Hellbent
16 May 2020, 14:19
Forum: Scripts and Functions
Topic: [class] LayeredWindow ( WS_EX_LAYERED )
Replies: 11
Views: 2261

Re: [class] LayeredWindow ( WS_EX_LAYERED )

burque505 wrote:
18 Apr 2020, 08:24
@Hellbent, are those coronavirus cells bouncing around there, or have I just been under a stay-at-home order too long? :crazy:
I don't know what you're talking about, those are clearly green frogs jumping around the screen :D
by Hellbent
16 May 2020, 14:09
Forum: General Discussion
Topic: 32 Bit or 64 Bit?
Replies: 7
Views: 873

32 Bit or 64 Bit?

I'm currently getting ready to do a new series and one of the first topics will be installing AHK. So the question is which one should I recommend people get? I had recently reinstalled AHK and had gone for the 64 bit version, but soon after I was working with maestrith on something and he wanted me...
by Hellbent
20 Apr 2020, 03:08
Forum: Ask For Help
Topic: Lines on GUI's Topic is solved
Replies: 4
Views: 373

Re: Lines on GUI's Topic is solved

Progress controls also work well as lines. #SingleInstance, Force Gui,1:+AlwaysOnTop -DPIScale Gui,1:Color,222222 Draw_Outline(1,10,10,280,130,"336699",2) Draw_Outline(1,20,20,260,110,"ffff00",1) Draw_Line(1,30,30,190,10,"880000") Draw_Line(1,30,50,1,60,"Teal") Draw_Line(1,40,50,200,2,"Aqua") Draw_O...
by Hellbent
17 Apr 2020, 22:50
Forum: Scripts and Functions
Topic: [class] LayeredWindow ( WS_EX_LAYERED )
Replies: 11
Views: 2261

Re: [class] LayeredWindow ( WS_EX_LAYERED )

***OP Update*** Added a few new methods (functions) to the class for a program I'm working on. Here is a simple example of using the new methods. ;*************************************************************************************************** ;****************************************************...
by Hellbent
09 Apr 2020, 15:14
Forum: Ask For Help
Topic: GUI show in different positions Topic is solved
Replies: 4
Views: 366

Re: GUI show in different positions Topic is solved

Give this a try. #SingleInstance, Force SetBatchLines, -1 CoordMode, Mouse, Screen Positions := [], W := 190, H := 100 Positions[1] := { X: 50, Y: 50 } Positions[2] := { X: 50, Y: Floor((A_ScreenHeight-H)/2) } Positions[3] := { X: 50, Y: (A_ScreenHeight-H-50) } Positions[4] := { X: Floor((A_ScreenWi...
by Hellbent
09 Apr 2020, 03:19
Forum: Ask For Help
Topic: Right click on GUI button --> Action
Replies: 9
Views: 817

Re: Right click on GUI button --> Action

Here is one approach of many possible approaches. #SingleInstance, Force SetBatchLines, -1 global Handles := [] Gui,1:+AlwaysOnTop Gui,1:Add,Button,hwndhwnd gButt1Action1,Button 1 Handles[hwnd] := "Butt1Action2" Gui,1:Add,Button,hwndhwnd gButt2Action1,Button 2 Handles[hwnd] := "Butt2Action2" Gui,1:A...
by Hellbent
08 Apr 2020, 15:00
Forum: Ask For Help
Topic: How can many GUIs be used simultaneously? Topic is solved
Replies: 4
Views: 475

Re: How can many GUIs be used simultaneously? Topic is solved

Albireo wrote:
08 Apr 2020, 14:47
Hellbent wrote:
08 Apr 2020, 14:14
What is up with this?

Code: Select all

Gui 2: Show, x%PosX% y%PosY% h190 w250, Programslut!
This causes the second window to follow and be placed on top of the main window (with an offset +20)
That's not what I was referring to. :silent: :lol: :silent:
by Hellbent
08 Apr 2020, 14:14
Forum: Ask For Help
Topic: How can many GUIs be used simultaneously? Topic is solved
Replies: 4
Views: 475

Re: How can many GUIs be used simultaneously? Topic is solved

Change:

Code: Select all

Gui 2: +AlwaysOnTop
To:

Code: Select all

Gui 2: New, +AlwaysOnTop
***Edit***

What is up with this?

Code: Select all

Gui 2: Show, x%PosX% y%PosY% h190 w250, Programslut!
Is that a typo? :lol:
by Hellbent
06 Apr 2020, 12:38
Forum: Ask For Help
Topic: How to create/open many GUI at same time? Topic is solved
Replies: 3
Views: 302

Re: How to create/open many GUI at same time? Topic is solved

1) But I have no idea when this is used or how to use this .: OnMessage(0x112,"Msg") / Msg(w)... That gets triggered when you press the close button on a gui [ X ] It is used so that you don't have to do something like this. 1GuiClose: 2GuiClose: 3GuiClose: 4GuiClose: 5GuiClose: 6GuiClose: 7GuiClos...
by Hellbent
06 Apr 2020, 11:53
Forum: Scripts and Functions
Topic: [Editor/Code Generator] Gdip Bitmap Maker (v0.1.8 March 29th, 2020)
Replies: 54
Views: 12513

Re: [Editor/Code Generator] Gdip Bitmap Maker (v0.1.8 March 29th, 2020)

I used this library. https://github.com/marius-sucan/AHK-GDIp-Library-Compilation/blob/master/Gdip_All.ahk But I get such a mistake. "C:\Users\hasan\Desktop\GdipEdit.ahk (1372) : ==> Call to nonexistent function. Specifically: New_Brush(This.Bitmap_Elements[index].Color,This.Bitmap_Elements[index]....
by Hellbent
05 Apr 2020, 16:27
Forum: Ask For Help
Topic: How to create/open many GUI at same time? Topic is solved
Replies: 3
Views: 302

Re: How to create/open many GUI at same time? Topic is solved

#SingleInstance, Force SetBatchLines, -1 Index := 0 OnMessage(0x112,"Msg") return GuiClose: *ESC:: Gui,1:+OwnDialogs MsgBox, 262144, , Gui 1 closed exitApp NumPad1:: CreateNewGui: Index++ Gui,% Index ":New", +hwndHwnd +AlwaysOnTop Gui,% Index ":Show",w200 h300 return Msg(w){ if(w = 61536 && A_Gui !...
by Hellbent
05 Apr 2020, 15:14
Forum: Scripts and Functions
Topic: [Gdip] How to draw shapes and lines with the mouse
Replies: 12
Views: 2194

Re: [Gdip] How to draw shapes and lines with the mouse

Onimuru OK :lol: It's a nice class, but it doesn't exactly allow this tool to change the color+ on the fly. That is what the gui does ;) In a case like this (this tool) I don't really see a need to do more than just replacing the old brush and pen with a new one. If anything, I might do something l...
by Hellbent
05 Apr 2020, 13:36
Forum: Ask For Help
Topic: [Gui] 100% Transparent background and 50% transparent picture Topic is solved
Replies: 4
Views: 328

Re: [Gui] 100% Transparent background and 50% transparent picture Topic is solved

Scr1pter wrote:
05 Apr 2020, 13:20
Thank you, Hellbent!
No problem.

For better results, you may want to look at using a layered window. Winset, Transcolor can cause some issues with gradient antialiased edges on rounded corners. Anyway, just something to consider.

1 More ;)

Go to advanced search