Search found 223 matches

by gwarble
05 Sep 2017, 20:50
Forum: Scripts and Functions
Topic: OnResume() - action when resume from sleep/standby/lock/etc
Replies: 7
Views: 531

OnResume() - action when resume from sleep/standby/lock/etc

this can probably be improved upon by some of you geniuses, but here's a tidy/simple function for running a subroutine when resuming from sleep, standby or hibernate, or unlocking or logging on while running. Lots more options could be added and full wrapping of WM_PowerBroadcast and WM_WTSSession_C...
by gwarble
05 Sep 2017, 11:16
Forum: Scripts and Functions
Topic: EitherMouse 0.71 - Multiple mice, individual settings...
Replies: 218
Views: 44532

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

0.71 update bug fixed when resuming from sleep/standby/lock when reload failed launching Mouse Properties, hopefully that's working now for everyone (if not please let me know again!) EitherMouse Setup.exe v0.71 EitherMouse.exe v0.71 http://www.EitherMouse.com Also if anyone is still having settings...
by gwarble
04 Sep 2017, 10:57
Forum: Scripts and Functions
Topic: EitherMouse 0.71 - Multiple mice, individual settings...
Replies: 218
Views: 44532

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

Hmm... the "Mouse Properties" window from the control panel? Thats odd, I'll have to look into it. ... ok try re-downloading 0.7 and hopefully you won't get that problem... Unfortunately that means it still probably isn't fixing the mice correctly, but at least you won't get the mouse prop...
by gwarble
03 Sep 2017, 07:00
Forum: Scripts and Functions
Topic: EitherMouse 0.71 - Multiple mice, individual settings...
Replies: 218
Views: 44532

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: 916

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: 916

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: 323

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: 323

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: 323

[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: 1266

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: 1254

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: 1266

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: 1266

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: 1266

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?
Replies: 3
Views: 164

Re: Play sounds simultaneously?

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: 1266

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: 1266

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: 1266

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: 218
Views: 44532

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()

Go to advanced search