Search found 181 matches

by theimmersion
09 Sep 2018, 05:10
Forum: Ask for Help (v1)
Topic: Do a CBT check before doing something after target A_TimeIdle has been reached
Replies: 1
Views: 700

Re: Do a CBT check before doing something after target A_TimeIdle has been reached

Nope, still didn't figure this out. :headwall: The important part from the MSDN link: (Using AHK's A_TimeIdle here) Once a screen saver is chosen, Windows monitors keystrokes and mouse movements and then starts the screen saver after a period of inactivity. However, Windows does not start the screen...
by theimmersion
30 Mar 2018, 19:23
Forum: Scripts and Functions (v1)
Topic: Windows 10, change virtual desktop, and background for each desktop
Replies: 4
Views: 3654

Re: Windows 10, change virtual desktop, and background for each desktop

I guessed as much but UnregisterPostMessageHookProc in regards to being in the script but never being visibly called. What purpose does it serve then? Its a tut script so should if possible explain the ins and outs for us lesser programmers as well. xD
by theimmersion
30 Mar 2018, 08:40
Forum: Scripts and Functions (v1)
Topic: Windows 10, change virtual desktop, and background for each desktop
Replies: 4
Views: 3654

Re: Windows 10, change virtual desktop, and background for each desktop

Amazing work. A few noob questions though. What is the purpose of "UnregisterPostMessageHookProc", i dont see it called anywhere. Also, what happens when the script closes? I saw a few of your example scripts scattered but not see "DllCall("FreeLibrary", Ptr, A_ScriptDir . "\VirtualDesktopAccessor.d...
by theimmersion
29 Mar 2018, 09:03
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved
Replies: 18
Views: 6766

Re: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved

Btw, do you by any chance have a proper Gdip_DrawRoundedRectangle() function as well? It has the same exact issues. Im using it to create a black line around an image and the outer border in case some image has same colors like the border. xD GIF.gif As you can see, the border (grey) using your func...
by theimmersion
29 Mar 2018, 06:40
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved
Replies: 18
Views: 6766

Re: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved

Well, just me's code works wonderfully. wolf_II, your function kinda also works nicely but creates some different artifacts as well. It creates one pixel lines on either bottom-[left/right] depending on the W vs H vs R values. GIF.gif But except that, the outer rim is perfect. So ill go with just me...
by theimmersion
29 Mar 2018, 06:29
Forum: Ask for Help (v1)
Topic: Working with INI files, there must be a more efficient way to do it.
Replies: 29
Views: 5318

Re: Working with INI files, there must be a more efficient way to do it.

@BoBo Was ist mit dir und Deutsch? We get it, Your german. Everyone knows by now. :P But not everyone knows german language tho. @WalkerOfTheDay well, iniread is reading any plain text file and an ahk script is a plain text file anyway. In simple terms, IniRead/Write only knows for 3 things: Section...
by theimmersion
28 Mar 2018, 13:41
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved
Replies: 18
Views: 6766

Re: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved

My sister confiscated the laptop. Will try later or tomorrow. Thanks just me. :)
by theimmersion
28 Mar 2018, 11:54
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved
Replies: 18
Views: 6766

Re: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved

Can this be changed to support 1/2 radius and the GDI lib updated?
by theimmersion
28 Mar 2018, 10:55
Forum: Ask for Help (v1)
Topic: Working with INI files, there must be a more efficient way to do it.
Replies: 29
Views: 5318

Re: Working with INI files, there must be a more efficient way to do it.

@Odlanir, I know it wont work for compiled scripts. I just showed example while keeping everything in one place. Easier to work with for test/demo scripts. About the "%A_ScriptFullpath%", i keep forgetting this one. Thanks. xD P.S: nope, i did that long before that for another project of mine. I eve...
by theimmersion
28 Mar 2018, 10:34
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved
Replies: 18
Views: 6766

Re: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved

Also, Gdip_DrawRoundedRectangle() has the same issues as Gdip_FillRoundedRectangle().
by theimmersion
28 Mar 2018, 10:29
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved
Replies: 18
Views: 6766

Re: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved

Must be something in the function itself and its calculus/matrix or how its called. Gdip_FillRoundedRectangle(pGraphics, pBrush, x, y, w, h, r) { Region := Gdip_GetClipRegion(pGraphics) Gdip_SetClipRect(pGraphics, x-r, y-r, 2*r, 2*r, 4) Gdip_SetClipRect(pGraphics, x+w-r, y-r, 2*r, 2*r, 4) Gdip_SetCl...
by theimmersion
28 Mar 2018, 09:58
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved
Replies: 18
Views: 6766

Re: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved

Exactly, i expected those artifacts at 51+ of a 100x100 size but it starts at 34+. Ill snoop around the code see if i goofed something and post my find. So, you get the proper bevel at 0-50? No artifacts and a perfect circle? EDIT Well, i placed a tooltip at bottom and i get the proper numbers as fa...
by theimmersion
28 Mar 2018, 09:50
Forum: Ask for Help (v1)
Topic: Working with INI files, there must be a more efficient way to do it.
Replies: 29
Views: 5318

Re: Working with INI files, there must be a more efficient way to do it.

What is the purpose of this and how flexible should this be? Im guessing only 2 languages will be supported or are you perhaps thinking to add more? I dont think buttons is good for selecting languages. Why not use DDL (drop-down list) instead? Because lots of languages and GUI gets cluttered badly ...
by theimmersion
28 Mar 2018, 08:42
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved
Replies: 18
Views: 6766

GDI+ Gdip_FillRoundedRectangle() weird artifacts Topic is solved

For some reason, Gdip_FillRoundedRectangle() creates weird artifacts when bevel level goes beyond a certain number. For instance, width and height of 100x100 with bevel (or roundness) being 34 and up will start showing artifacts. Im using a slider from 0% to 100%. I really need that but cant find a ...
by theimmersion
26 Mar 2018, 07:03
Forum: Ask for Help (v1)
Topic: Attach window between desktop icons and background? Topic is solved
Replies: 9
Views: 3102

Re: Attach window between desktop icons and background? Topic is solved

@Briss9132,
Sorry, i cant help You because i dont have 2 monitors to test/try. :(
by theimmersion
25 Mar 2018, 09:15
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_AlphaMask() not preserving png transparency
Replies: 6
Views: 2472

Re: GDI+ Gdip_AlphaMask() not preserving png transparency

Im experimenting with nnnik's code you posted, noname. Seems like its closer to what i need but has one drawback currently. The edges are rough. No smoothing going on but it seems it does exactly what i need. Ill try to make a nicer wrapper and try figure out the anti-aliasing (i guess?). For direct...
by theimmersion
20 Mar 2018, 07:10
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_AlphaMask() not preserving png transparency
Replies: 6
Views: 2472

Re: GDI+ Gdip_AlphaMask() not preserving png transparency

I hope when Tic does a rewrite, hell add some missing functions. Also hope he could somehow make some stuff easier to do. I also just notice that Gdip_AlphaMask() is a bit finicky. The crop cuts out a few bits more then it should. What ever i try, it does not seem to crop it right. Like 1-2 pixels g...
by theimmersion
20 Mar 2018, 05:06
Forum: Ask for Help (v1)
Topic: GDI+ Gdip_AlphaMask() not preserving png transparency
Replies: 6
Views: 2472

Re: GDI+ Gdip_AlphaMask() not preserving png transparency

Wonder if it could be possible to detect if an image has transparency and if so, create a solid image from any pixels from that image. Add the usual solid for roundness as well to it and then apply the alpha mask on the final image. That way, you could get a round profile image and its original tran...

Go to advanced search