Search found 2114 matches
- 12 Jun 2024, 03:21
- Forum: Ich brauche Hilfe
- Topic: GDI+ Linien im Gui
- Replies: 4
- Views: 336
Re: GDI+ Linien im Gui
I made an adjustment to the start position of the arrow so that it fits better in the display area of the gauge. . Forum Gauge 2.gif . #SingleInstance, Force ;*********************************************************************************************************************************************...
- 11 Jun 2024, 17:03
- Forum: Ich brauche Hilfe
- Topic: GDI+ Linien im Gui
- Replies: 4
- Views: 336
Re: GDI+ Linien im Gui
Hi Ahk_fan. Here is a potential solution that uses a main window with two graphics layer windows embedded inside (can be all done on one window but this is a simple way of doing it). This part here is the main part to focus on trying to understand how it works. #SingleInstance, Force ;**************...
- 03 Jun 2024, 12:54
- Forum: Ask for Help (v1)
- Topic: Gui +Resize - Caption Topic is solved
- Replies: 13
- Views: 4091
Re: Gui +Resize - Caption Topic is solved
If you aren't able to fix your issue you can add the corners the same way as the "top", "left", etc. are added In the function that creates the resize rectangles you add "topleft", "topright", etc. You change the old values from something like { X: 0 , W: Gui1.W } to { X: depth , W: Gui1.W - 2 * dep...
- 03 Jun 2024, 12:14
- Forum: Ask for Help (v1)
- Topic: Gui +Resize - Caption Topic is solved
- Replies: 13
- Views: 4091
Re: Gui +Resize - Caption Topic is solved
Hello, Thanks but actually i need the TOGGLE as @flyingDman solution, i want to TOGGLE as the simple following example: The toggle is simple to add. Just need to track two variables, one for the caption state and the other for the resize state . resize without resize 2.gif . #SingleInstance, Force ...
- 02 Jun 2024, 19:55
- Forum: Ask for Help (v1)
- Topic: Gui +Resize - Caption Topic is solved
- Replies: 13
- Views: 4091
Re: Gui +Resize - Caption Topic is solved
One option is to create your own resize routine. This only has control areas for top, bottom, left, and right. You can also add the 4 corners for diagonal resizing. This also doesn't have the code to change the cursor, it can be added by using OnMessage( 0x200 ) . resize without resize 1.gif . #Sing...
- 15 Apr 2024, 11:05
- Forum: Ask for Help (v1)
- Topic: Find color closest to cursor and click Topic is solved
- Replies: 24
- Views: 976
Re: Find color closest to cursor and click Topic is solved
it spams grey line squares and thats it, im trying it with the same game and i didnt make any changes but change the color It looks like you are using a BGR format rather than an RGB one. ;******************** colorList := [ "0x101AFD" ] ;******************** ^ That color in RGB would be blue. Eith...
- 15 Apr 2024, 00:52
- Forum: Ask for Help (v1)
- Topic: Find color closest to cursor and click Topic is solved
- Replies: 24
- Views: 976
Re: Find color closest to cursor and click Topic is solved
So basically can you make it work more accurately with much smaller targets, and also make a option to remove mask because my stupid head cant find the 3-4 lines of code that you mentioned here : - If you don't need a mask you can comment out the 3-4 lines of code that handle displaying the block w...
- 05 Apr 2024, 23:05
- Forum: Ask for Help (v1)
- Topic: Find color closest to cursor and click Topic is solved
- Replies: 24
- Views: 976
Re: Find color closest to cursor and click Topic is solved
You didn't use any arrays :think: What if user wanted to find a purple pixel or a green one? Not just variations :lolno: I added an array to hold colors but I didn't bother doin it for variation, it can be added easily by following [ color <---> colorList ] as an example. Before: color := "0xFD0B03...
- 04 Apr 2024, 01:43
- Forum: Ask for Help (v1)
- Topic: Find color closest to cursor and click Topic is solved
- Replies: 24
- Views: 976
Re: Find color closest to cursor and click Topic is solved
What I want is that I want to send only one space (hold space key)+click onto the detected colour that is closest near my cursor in the range. My code was only set to move the cursor, you would need to edit that action so that it does what you need. Here I replaced the old "MouseMove" with a functi...
- 02 Apr 2024, 11:35
- Forum: Ask for Help (v1)
- Topic: Find color closest to cursor and click Topic is solved
- Replies: 24
- Views: 976
Re: Find color closest to cursor and click Topic is solved
I wanted to make a gif too That looks really cool :thumbup: I assume that you are using some sort of a grid search and then checking the distance to get the order to do your actions? It inspired me to edit my version to handle multiple targets. . pixel search range 5.gif . #SingleInstance, Force #N...
- 31 Mar 2024, 22:48
- Forum: Ask for Help (v1)
- Topic: Find color closest to cursor and click Topic is solved
- Replies: 24
- Views: 976
Re: Find color closest to cursor and click Topic is solved
This script searches outwards from your cursor position to a max range and then starts over again. . pixel search range.gif . The rate that it expands the search radius and the max radius are variable. ( i.e. you can change them ) #SingleInstance, Force #NoEnv SetBatchLines, -1 CoordMode, Mouse, Scr...
- 29 Mar 2024, 05:37
- Forum: Scripts and Functions (v1)
- Topic: Bubble Text / Funky Colorful Text
- Replies: 0
- Views: 284
Bubble Text / Funky Colorful Text
This is pretty much just a first draft / POC class. If you have any improvements that you can make feel free to post your code. Special thanks to jNizM and the others in this thread for their help in making rendering faster. https://www.autohotkey.com/boards/viewtopic.php?f=76&t=112861 This class cr...
- 09 Mar 2024, 13:01
- Forum: Scripts and Functions (v1)
- Topic: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
- Replies: 391
- Views: 249987
Re: Examples of Non-Standard GUIs (ActiveX, GDI, etc.)
@Hellbent i started tring to merge my gui with your scale gui. been following allot of it. not sure how to make them compatible. i tried to just plug in functions into your gui scale. i expected it would be long shot. i understand some things in how your scaling so might be able to tweak somethings...
- 09 Mar 2024, 12:15
- Forum: Ask for Help (v1)
- Topic: Formatting objects/arrays
- Replies: 10
- Views: 564
Re: Formatting objects/arrays
In AHK v1, there is no difference between [] and {} . #Requires AutoHotkey v1 obj1 := [] obj1.a := 1 obj1.b := 2 obj2 := {} obj2.push("a") obj2.push("b") for k, v in obj1 { MsgBox % k . ": " . v } for k, v in obj2 { MsgBox % k . ": " . v } Thank you. I was playing around after my last post and I fo...
- 16 Feb 2024, 17:17
- Forum: Ask for Help (v1)
- Topic: Formatting objects/arrays
- Replies: 10
- Views: 564
Re: Formatting objects/arrays
https://biga-ahk.github.io/biga.ahk/#/?id=isarray works like this: isArray(param) { if (param.getCapacity()) { return true } return false } hope this helps Thank you for that but it's not quite what I'm looking for, or at least I don't think it is. What I'm looking to do is distinguish the differen...
- 15 Feb 2024, 14:09
- Forum: Ask for Help (v1)
- Topic: Formatting objects/arrays
- Replies: 10
- Views: 564
Re: Formatting objects/arrays
Thanks mikeyww . I have expanded out the logic a bit more but it still has some ways to go. One issue of many is that I need a better solution for is how to determine if a key value is an array. #Requires AutoHotkey v1.1.33 ;str1 := "obj := {x: ""a, b"", ""C"": 3}" str1 = myObj := { RectObj: { X: 10...
- 15 Feb 2024, 00:57
- Forum: Ask for Help (v1)
- Topic: Formatting objects/arrays
- Replies: 10
- Views: 564
Re: Formatting objects/arrays
Alternatively, you could append the code to your script, run the code, and then use the array itself, but this approach seems more complicated. That might actually be the simplest way (haven't really thought it through yet). One of the issues I could see with doing my splits would have been things ...
- 14 Feb 2024, 21:43
- Forum: Ask for Help (v1)
- Topic: Formatting objects/arrays
- Replies: 10
- Views: 564
Formatting objects/arrays
Hi I'm hoping someone can help me out with a formatting tool I'd like to have. The purpose of the tool is to swap between a long format and a short format for objects / arrays Something like this but with the ability to deal with nested objects and arrays as well as simple ones. . 20240214211902.png...
- 08 Feb 2024, 09:43
- Forum: Scripts and Functions (v1)
- Topic: [Editor/Code Generator] Gdip Bitmap Maker ( v0.1.12 Feb 8th, 2024 )
- Replies: 68
- Views: 29567
- 08 Feb 2024, 07:46
- Forum: Ask for Help (v1)
- Topic: Help with GDip Beziehers
- Replies: 2
- Views: 252
Re: Help with GDip Beziehers
Set the SmoothingMode to a value of 2 or 4
Code: Select all
SmoothingMode := 2
pGraphics := Gdip_GraphicsFromImage( pBitmap )
Gdip_SetSmoothingMode( pGraphics , SmoothingMode )