Search found 1058 matches

by Hellbent
01 Apr 2020, 12:09
Forum: Ask For Help
Topic: Child gui is always behind Parent gui Topic is solved
Replies: 19
Views: 1018

Re: Child gui is always behind Parent gui Topic is solved

See if this works for you.

Code: Select all

#SingleInstance, Force
#NoEnv
SetBatchLines, -1

Gui,1:+AlwaysOnTop

Gui,2:+Parent1
Gui,2:Color,Black
Gui,2:Show,x0 y0 w100 h100

Gui,1:Show,w200 h200

return
GuiClose:
GuiContextMenu:
*ESC::
	ExitApp
by Hellbent
31 Mar 2020, 22:15
Forum: Scripts and Functions
Topic: [Gdip] How to draw shapes and lines with the mouse
Replies: 12
Views: 2435

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

SpeedMaster Good stuff :thumbup: Here is replacing the 20th color with a new one. ;This goes above the first editbox (Alpha) Gui,99:Add,Button,xm y+1 w40 gGetColor,GET ;This goes anywhere GetColor(){ local tx, ty, out CoordMode,Mouse,Screen CoordMode,Pixel,Screen While(!GetKeyState("ctrl")){ ToolTi...
by Hellbent
31 Mar 2020, 04:20
Forum: Scripts and Functions
Topic: [Editor/Code Generator] Gdip Bitmap Maker (v0.1.8 March 29th, 2020)
Replies: 54
Views: 12730

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

I have no idea what I'm doing or how to make the #include work correctly. Every time I try to run the script it gives me an error "Call to nonexistent function" specifically New_Brush(yada-yada-code-you-put-here) on line 1368. Halp! Thanks for bringing that to my attention. I didn't realize that I ...
by Hellbent
30 Mar 2020, 11:07
Forum: Ask For Help
Topic: I pay fot this mouse x y to arrow key
Replies: 2
Views: 175

Re: I pay fot this mouse x y to arrow key

Code: Select all

#SingleInstance, Force
Speed := 10, mObj := {Left:-Speed,Right:Speed}
return
Left:: 	
Right:: 	
	While(GetKeyState(A_ThisHotkey,"P"))
		MouseMove, mObj[A_ThisHotkey], 0, 0, R
	return

Up::
Down::Click % (A_ThisHotkey="up")?("Left"):("Right")

*ESC::ExitApp
by Hellbent
30 Mar 2020, 09:37
Forum: Gaming
Topic: Minecraft auto miner (simple)
Replies: 2
Views: 514

Re: Minecraft auto miner (simple)

Not really sure what you mean when you say
BUT I can tab off of the screen

Code: Select all

#SingleInstance, Force
Numpad1::Send,% (Tog:=!Tog)?("{LButton Down}"):("{LButton Up}")
#If (Tog)
~LButton::Tog:=!Tog
*~Tab::Send,% (Tog:=!Tog)?("{LButton Down}"):("{LButton Up}")
#If
*ESC::ExitApp
by Hellbent
30 Mar 2020, 08:49
Forum: Scripts and Functions
Topic: [Gdip] How to draw shapes and lines with the mouse
Replies: 12
Views: 2435

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

SpeedMaster Well done :thumbup: Here is a slightly altered version with the ability to change the color, alpha, and pen thickness on the fly. ;================================================================================================================================ ; Subject: Gdip Draw shapes...
by Hellbent
29 Mar 2020, 07:07
Forum: Scripts and Functions
Topic: [Editor/Code Generator] Gdip Bitmap Maker (v0.1.8 March 29th, 2020)
Replies: 54
Views: 12730

Re: [Editor] Gdip Bitmap Maker

; Updates: v0.1.8 - March 29th, 2020 ;--------------------------------------------------------------------------------------------------------------- ; Element Listbox now shows if a element has a note attached to it. ; Gdip library removed from the script, user must now #Include it. ;--------------...
by Hellbent
28 Mar 2020, 00:21
Forum: Ask For Help
Topic: Help: How to change the ClassNN or control name
Replies: 2
Views: 337

Re: Help: How to change the ClassNN or control name

I'm not sure what you are trying to do, my best guess is that you simply don't want to use the ClassNN as the identifier of the control. If that is the case, you can use the controls hwnd (Handle), or associate a variable with the control and use that as the identifier. Gui, 1:Add, Pic, vImage1Varia...
by Hellbent
27 Mar 2020, 16:44
Forum: Scripts and Functions
Topic: GDIP Art ?
Replies: 16
Views: 3961

Re: GDIP Art ?

I have no idea what inspired this. Nope, no idea at all. ***Viewer Discretion Advised*** ;*************************************************************************************************** #Include <My Altered Gdip Lib> ;<------ Replace with your copy of GDIP ;**************************************...
by Hellbent
26 Mar 2020, 14:22
Forum: Ask For Help
Topic: Count number of iteration of each script
Replies: 2
Views: 198

Re: Count number of iteration of each script

Perhaps this will give you some ideas about how you want to do it.


Run this a few times.

Code: Select all

#SingleInstance, Force
IniRead, Var, % A_ScriptFullPath, Report, % A_ComputerName
IniWrite, % ( Var = "error" ) ? ( 1 ) : ( ++Var ), % A_ScriptFullPath, Report, % A_ComputerName
return
/*
[Report]
*/
by Hellbent
25 Mar 2020, 09:39
Forum: Ask For Help
Topic: Create a Icon from pBitmap / hBitmap Topic is solved
Replies: 4
Views: 226

Re: Create a Icon from pBitmap / hBitmap Topic is solved

@teadrinker

Thank you very much.
That is exactly what I was hoping for.
by Hellbent
25 Mar 2020, 09:14
Forum: Ask For Help
Topic: Create a Icon from pBitmap / hBitmap Topic is solved
Replies: 4
Views: 226

Re: Create a Icon from pBitmap / hBitmap Topic is solved

Alternatively, you could use your code to generate the image, save it as a bmp or png file so you can use an icon generator app, then embed that icon file into your code using one of the binary-to-ASCII conversion routines. I know that’s not exactly what you’re looking for, but the end result would...
by Hellbent
25 Mar 2020, 07:20
Forum: Ask For Help
Topic: Create a Icon from pBitmap / hBitmap Topic is solved
Replies: 4
Views: 226

Create a Icon from pBitmap / hBitmap Topic is solved

Anyone know how to use a bitmap as a Icon (tray or w/e) without having to use any external resources? Is it even possible? I have never had any interest in changing a scripts icon before, but I figured it might be time to look into it. I'm only really interested in self contained code. For example, ...
by Hellbent
13 Mar 2020, 17:51
Forum: Ask For Help
Topic: Gui control, controling wrong editbox. Topic is solved
Replies: 2
Views: 265

Re: Gui control, controling wrong editbox. Topic is solved

You don't have much code here to work with, but...

Try setting your variables as global and when you are passing them to your function, pass them as a string, otherwise you are passing the contents of the variable rather than the name used for GuiControl

Code: Select all

SetColorTheme("LineColor")
by Hellbent
13 Mar 2020, 15:29
Forum: Ask For Help
Topic: why wont this work as a toggle for a loop?
Replies: 2
Views: 212

Re: why wont this work as a toggle for a loop?

Code: Select all

Numpad1::
	Tog := True
	While(Tog){
		ToolTip,% A_Index
	}
	ToolTip,
	return

Numpad2::Tog := False
HTH
by Hellbent
13 Mar 2020, 15:12
Forum: Ask For Help
Topic: cancel loop temporary
Replies: 2
Views: 225

Re: cancel loop temporary

A easy way to do it would be to use a timer rather than a loop. Numpad1:: if(Tog:=!Tog){ SetTimer, SomeAction, 3000 Counter := 0 }else{ SetTimer, SomeAction, Off ToolTip, } return SomeAction: ToolTip, % "Action Count: " ++Counter return ***Edit*** Seeing as you might be rather new to this sort of th...
by Hellbent
13 Mar 2020, 15:02
Forum: Offtopic
Topic: I finally broke 2,000 subscribers on my AutoHotkey YouTube channel!
Replies: 14
Views: 3615

Re: I finally broke 2,000 subscribers on my AutoHotkey YouTube channel!

Joe Glines wrote:
12 Mar 2020, 18:39
Thanks @Hellbent! We need to plan another joint video! :)
I'll contact you in the next few weeks to work something out.
by Hellbent
12 Mar 2020, 16:23
Forum: Ask For Help
Topic: Click on a certain area of a Window when mouse is over a certain area of the window
Replies: 5
Views: 399

Re: Click on a certain area of a Window when mouse is over a certain area of the window

a if() with more than one line needs { }

Code: Select all


if(something)
	msgbox, this works fine

if(something){
	blah blah
	blah blah
	msgbox, this needs to be enclosed
}

by Hellbent
12 Mar 2020, 15:14
Forum: Ask For Help
Topic: Click on a certain area of a Window when mouse is over a certain area of the window
Replies: 5
Views: 399

Re: Click on a certain area of a Window when mouse is over a certain area of the window

With fixed click positions. #SingleInstance, Force SetBatchLines, -1 CoordMode, Mouse, Client Gui, 1:+AlwaysOnTop -DPIScale hwndGuiHwnd Gui, 1:Color, 222222 Gui, 1:Font, cBlack s10 Bold y := 10 , w := 80 , h := 80 , Index := 1 , colors := ["880016","7F7F7F","00A3E8","FEF200"] , cCount := [0,0,0,0] ,...
by Hellbent
12 Mar 2020, 15:01
Forum: Ask For Help
Topic: Click on a certain area of a Window when mouse is over a certain area of the window
Replies: 5
Views: 399

Re: Click on a certain area of a Window when mouse is over a certain area of the window

Try this. #SingleInstance, Force SetBatchLines, -1 CoordMode, Mouse, Client Gui, 1:+AlwaysOnTop -DPIScale hwndGuiHwnd Gui, 1:Color, 222222 Gui, 1:Font, cBlack s10 Bold y := 10 , w := 80 , h := 80 , Index := 1 , colors := ["880016","7F7F7F","00A3E8","FEF200"] , cCount := [0,0,0,0] , positions := [] L...

Go to advanced search