Search found 220 matches

by gwarble
03 Sep 2017, 07:00
Forum: Scripts and Functions
Topic: EitherMouse 0.71 - Multiple mice, individual settings...
Replies: 207
Views: 38076

new update: EitherMouse 0.7 - Multiple mice, individual settings...

0.7 update I think i found what was missing when detecting resume from sleep/standby, so hopefully that's working now for everyone (if not please let me know again) I added in a crude way to turn off the check for updates. I don't recommend this as all updates are improvements, bug fixes, and additi...
by gwarble
30 Aug 2017, 13:53
Forum: Scripts and Functions
Topic: Is picture? Know it before calling LoadPicture()
Replies: 20
Views: 585

Re: Is picture? Know it before calling LoadPicture()

IsPicture() does not support CUR files.. ICO supports PNG, so I consider it a picture. I keep wondering if CUR format is a picture at all. Maybe when the ICO format changed with Vista+ to support PNG data, CUR did not follow suit. Before that, both were BMP based as far as I understand, with very f...
by gwarble
30 Aug 2017, 12:11
Forum: Scripts and Functions
Topic: Is picture? Know it before calling LoadPicture()
Replies: 20
Views: 585

Re: Is picture? Know it before calling LoadPicture()

very cool, thanks for sharing

or CUR next? very similar to ICO
by gwarble
28 Aug 2017, 09:59
Forum: Ask For Help
Topic: [Solved] Lock a folder? Topic is solved
Replies: 6
Views: 245

Re: [Solved] Lock a folder? Topic is solved

so to expand on this, I would actually like to be able to lock from deletion/moving but still be accessible/stuff created/modified/deleted within... in short, the third parameter, dwShareMode = 3 https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx DirName := A_ScriptDir &...
by gwarble
27 Aug 2017, 20:48
Forum: Ask For Help
Topic: [Solved] Lock a folder? Topic is solved
Replies: 6
Views: 245

Re: Lock a folder? Topic is solved

Flipeador, still to test, but thanks!

Edit: Works great, thanks again! My intended use is to lock certain folders with a script running on a server, to prevent those root folders from being accidentally drag'n'drop'ed around by users who have open permissions for creating/deleting
by gwarble
26 Aug 2017, 18:07
Forum: Ask For Help
Topic: [Solved] Lock a folder? Topic is solved
Replies: 6
Views: 245

[Solved] Lock a folder? Topic is solved

Hey all,

Is it possible to lock a folder in the way you can lock a file to prevent deletion/moving by another user?
file := FileOpen(FileName, "r-d")

is this possible with the LockFile function or any other way? Edit: CreateFile?
help appreciated
thanks

Solved by Flipeador below
by gwarble
04 Aug 2017, 15:50
Forum: Scripts and Functions
Topic: [class][v1/v2] taskbar ornaments and controls
Replies: 16
Views: 979

Re: [class][v1/v2] taskbar ornaments and controls

very nice, thanks for sharing
by gwarble
04 Aug 2017, 15:41
Forum: Scripts and Functions
Topic: GUIs via DllCall: MsgBox
Replies: 11
Views: 974

Re: GUIs via DllCall: MsgBox

Thanks for sharing... I have a need to create windows of different class names for EitherMouse... basically I want to add the system window shadow attribute to my normal gui windows (done successfully with ShadowEnabled := DllCall("SetClassLong", "uint", WinExist(), &...
by gwarble
28 Jul 2017, 11:05
Forum: Ask For Help
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 1102

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

Edits noted, thanks again!

Its good that its at least reporting in ResHack the same as a cursor added thru itself, but I wouldn't worry about the color depth showing wrong since when used you can clearly see the cursor has more than 2 colors
by gwarble
27 Jul 2017, 19:45
Forum: Ask For Help
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 1102

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

Totally kludged together and its working... after two years i have a way (proof of concept at least) to build new EitherMouse binaries on new releases of AHK without using ResourceHacker! Very cool Still need to make sense of it all to wrap it into a nice library for general PE cursor resource manag...
by gwarble
27 Jul 2017, 18:21
Forum: Ask For Help
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 1102

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

nice! thanks for the links and code example... it was successful on my end as well... It also made apparent a bug in ResHack, as inspecting the data after adding it reports as a 1 color cursor... and the previous ones i've added in ResHack itself say 2 colors, even though the cursor is really 32 bit...
by gwarble
27 Jul 2017, 15:16
Forum: Ask For Help
Topic: Play sounds simultaneously? Topic is solved
Replies: 3
Views: 123

Re: Play sounds simultaneously? Topic is solved

i think this will work for you, but I didn't test it:

Code: [Select all]GeSHi © Codebox Plus

FileRead,Sound,*c chimes.wav
PlaySoundAsync(Sound)

PlaySoundAsync( ByRef Sound ) {
Return DllCall( "winmm.dll\PlaySound" ( A_IsUnicode ? "W" : "A" ), UInt,&Sound, UInt,0, UInt, 0x7 )
}
by gwarble
25 Jul 2017, 17:45
Forum: Ask For Help
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 1102

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

Alright this seems to get rid of the ERROR_RESOURCE_TYPE_NOT_FOUND error, but my MaxIndex is still 0... It does successfully add the Cursor resource item(s) depending on how many are in the .cur file, and adds the Cursor Group resource item, but the data is wrong for the color depth/resolution: 1233...
by gwarble
25 Jul 2017, 14:22
Forum: Ask For Help
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 1102

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

Sweet, thanks Helgef!
You're right, it seems I'm not enumerating them properly and MaxIndex() is always an empty string... hmm
I will experiment further with this bit of info, thanks
by gwarble
24 Jul 2017, 19:12
Forum: Ask For Help
Topic: Programmatically add cursor resource to Exe/Dll with UpdateResource api?
Replies: 14
Views: 1102

Re: Programmatically add cursor resource to Exe/Dll with UpdateResource api?

Bumping this up in case any new viewers can help me out with this... I think most if not all resource types can now be read to and written from Exe's and Dll's with AHK except cursors. I would greatly appreciate any advice, tips, solutions, links, etc to help me understand what I'm missing to accomp...
by gwarble
25 Jun 2017, 12:32
Forum: Scripts and Functions
Topic: EitherMouse 0.71 - Multiple mice, individual settings...
Replies: 207
Views: 38076

Re: EitherMouse 0.67 - Multiple mice, individual settings...

You're welcome, i'm glad you use it
I posted in that help thread, but the solution is not trivial... Someday i'll add it to Notify()
by gwarble
25 Jun 2017, 08:03
Forum: Ask For Help
Topic: Notify() - Move all open Notifications down on close Topic is solved
Replies: 1
Views: 165

Re: Notify() - Move all open Notifications down on close Topic is solved

Its probably easier to modify Notify() to do it, but to do it script-side you would have to: Keep track of the gui numbers when creating Notify()s (return value) also compute the shadow's gui number (probably gui number + 25) when one is closed (click, timeout, X...), check the location and height o...
by gwarble
14 Jun 2017, 08:05
Forum: Scripts and Functions
Topic: EitherMouse 0.71 - Multiple mice, individual settings...
Replies: 207
Views: 38076

Re: EitherMouse 0.67 - Multiple mice, individual settings...

@Notify thanks @multiple simultaneous cursors Nice example, and well worded... No matter what, the "solution" to using multiple mice at the same time will always just be an illusion , which is exactly the reason I haven't tried to push this functionality into EitherMouse. Its fun to play a...
by gwarble
13 Jun 2017, 19:15
Forum: Scripts and Functions
Topic: EitherMouse 0.71 - Multiple mice, individual settings...
Replies: 207
Views: 38076

Re: EitherMouse 0.67 - Multiple mice, individual settings...

On a related note: could you upload your Notify() code and documentation to your website again now? The code + docs are now hard for find as the old forum is horrible and the links there to your Notify pages are 404-ing (last time I checked anyway). here you go: https://gwarble.com/ahk/Notify/ http...

Go to advanced search