Welcome Guest.   Make a donation to an author on the site February 27, 2015, 10:51:52 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: Prev 1 ... 126 127 128 129 130 [131] 132 133 134 135 136 ... 182 Next
3251  DonationCoder.com Software / Finished Programs / Re: autohotkey makes cursor slide - i want mouse movement to halt the slide on: May 07, 2010, 05:09:13 AM
yes, they are what i saw - and became no less confused after reading them. i will try to understand it, maybe it's very simple.

It is rather simple since Serenity wrapped the functions nicely.  Simply add the following function definitions to the BOTTOM of your script:

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. RestoreCursors()
  2. {
  3.   SPI_SETCURSORS := 0x57
  4.   DllCall( "SystemParametersInfo", UInt,SPI_SETCURSORS, UInt,0, UInt,0, UInt,0 )
  5. }
  6.  
  7. SetSystemCursor( Cursor = "", cx = 0, cy = 0 )
  8. {
  9.   BlankCursor := 0, SystemCursor := 0, FileCursor := 0 ; init
  10.  
  11.   SystemCursors = 32512IDC_ARROW,32513IDC_IBEAM,32514IDC_WAIT,32515IDC_CROSS
  12.   ,32516IDC_UPARROW,32640IDC_SIZE,32641IDC_ICON,32642IDC_SIZENWSE
  13.   ,32643IDC_SIZENESW,32644IDC_SIZEWE,32645IDC_SIZENS,32646IDC_SIZEALL
  14.   ,32648IDC_NO,32649IDC_HAND,32650IDC_APPSTARTING,32651IDC_HELP
  15.  
  16.   If Cursor = ; empty, so create blank cursor
  17.   {
  18.      VarSetCapacity( AndMask, 32*4, 0xFF ), VarSetCapacity( XorMask, 32*4, 0 )
  19.      BlankCursor = 1 ; flag for later
  20.   }
  21.   Else If SubStr( Cursor,1,4 ) = "IDC_" ; load system cursor
  22.   {
  23.      Loop, Parse, SystemCursors, `,
  24.      {
  25.         CursorName := SubStr( A_Loopfield, 6, 15 ) ; get the cursor name, no trailing space with substr
  26.         CursorID := SubStr( A_Loopfield, 1, 5 ) ; get the cursor id
  27.         SystemCursor = 1
  28.         If ( CursorName = Cursor )
  29.         {
  30.            CursorHandle := DllCall( "LoadCursor", Uint,0, Int,CursorID )  
  31.            Break              
  32.         }
  33.      }  
  34.      If CursorHandle = ; invalid cursor name given
  35.      {
  36.         Msgbox,, SetCursor, Error: Invalid cursor name
  37.         CursorHandle = Error
  38.      }
  39.   }  
  40.   Else If FileExist( Cursor )
  41.   {
  42.      SplitPath, Cursor,,, Ext ; auto-detect type
  43.      If Ext = ico
  44.         uType := 0x1  
  45.      Else If Ext in cur,ani
  46.         uType := 0x2      
  47.      Else ; invalid file ext
  48.      {
  49.         Msgbox,, SetCursor, Error: Invalid file type
  50.         CursorHandle = Error
  51.      }      
  52.      FileCursor = 1
  53.   }
  54.   Else
  55.   {  
  56.      Msgbox,, SetCursor, Error: Invalid file path or cursor name
  57.      CursorHandle = Error ; raise for later
  58.   }
  59.   If CursorHandle != Error
  60.   {
  61.      Loop, Parse, SystemCursors, `,
  62.      {
  63.         If BlankCursor = 1
  64.         {
  65.            Type = BlankCursor
  66.            %Type%%A_Index% := DllCall( "CreateCursor"
  67.            , Uint,0, Int,0, Int,0, Int,32, Int,32, Uint,&AndMask, Uint,&XorMask )
  68.            CursorHandle := DllCall( "CopyImage", Uint,%Type%%A_Index%, Uint,0x2, Int,0, Int,0, Int,0 )
  69.            DllCall( "SetSystemCursor", Uint,CursorHandle, Int,SubStr( A_Loopfield, 1, 5 ) )
  70.         }        
  71.         Else If SystemCursor = 1
  72.         {
  73.            Type = SystemCursor
  74.            CursorHandle := DllCall( "LoadCursor", Uint,0, Int,CursorID )  
  75.            %Type%%A_Index% := DllCall( "CopyImage"
  76.            , Uint,CursorHandle, Uint,0x2, Int,cx, Int,cy, Uint,0 )      
  77.            CursorHandle := DllCall( "CopyImage", Uint,%Type%%A_Index%, Uint,0x2, Int,0, Int,0, Int,0 )
  78.            DllCall( "SetSystemCursor", Uint,CursorHandle, Int,SubStr( A_Loopfield, 1, 5 ) )
  79.         }
  80.         Else If FileCursor = 1
  81.         {
  82.            Type = FileCursor
  83.            %Type%%A_Index% := DllCall( "LoadImageA"
  84.            , UInt,0, Str,Cursor, UInt,uType, Int,cx, Int,cy, UInt,0x10 )
  85.            DllCall( "SetSystemCursor", Uint,%Type%%A_Index%, Int,SubStr( A_Loopfield, 1, 5 ) )        
  86.         }        
  87.      }
  88.   }  
  89. }

Then, to change the cursor, do the following:

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. Cursor := "C:\path\to\my\cursor.cur"
  2. SetSystemCursor( Cursor )

Or:

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. SetSystemCursor( "C:\path\to\my\cursor.cur" )

To restore the cursor, simply do:

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. RestoreCursors()
3252  DonationCoder.com Software / Post New Requests Here / Re: Need ADH Advice on: May 07, 2010, 02:35:19 AM
Try this:  http://skwire.dcmembers.c...m/apps/snacks/Kruskal.zip

It's very basic right now but things could be easily added to it.  It's set to kill any existing instance but this can easily be changed to allow multiple instances.
3253  DonationCoder.com Software / Post New Requests Here / Re: Need ADH Advice on: May 07, 2010, 01:02:35 AM
If I knew how to do it it would be great. Even better than what I am used to -- closing a window is more natural that hotkeying a second time.

I'd be more than happy to write this up for you.  Give me a few minutes.
3254  DonationCoder.com Software / Post New Requests Here / Re: Need ADH Advice on: May 07, 2010, 12:29:11 AM
That's a disappointment.  So there is no solution consistent with my preferences?

I could make it display a small GUI window instead of using a tooltip.  This way, you could move it out of the way, leave it open as long as necessary, and close it when you're done.  Your thoughts?
3255  DonationCoder.com Software / Post New Requests Here / Re: Need ADH Advice on: May 06, 2010, 11:59:19 PM
I'm not at my main computer right now, but I'm pretty sure that you are wrong. The little window showing the window owning program stays displayed after the program exits (as I recall).

It stayed showing because you had a second hotkey (#q::) defined in the script which made the script never exit/end.

I could live with the timeout, but I really don't prefer it. I frequently have to do a lot of stuff based on the information and I'd have to write it down.

How about displaying it while simultaneous copying the data to your clipboard?

What happened to the INI solution? I was looking forward to details.

The fact is, without some sort of delay, that type of script will start, run the code, and exit in the blink of an eye.  When it exits, it destroys any tooltip created.  
3256  DonationCoder.com Software / Post New Requests Here / Re: Need ADH Advice on: May 06, 2010, 11:36:43 PM
Actually...if you change it into an executable, the tooltip will disappear almost immediately after starting the script because the script exits immediately.  This app could be made to show the tooltip, say, for five seconds and then exit thus making the tooltip disappear on its own.  In other words:

1) Run you hotkey to start the app.
2) App displays tooltip for user-specified length of time.
3) App exits and tooltip disappears.  There would be no need to run the hotkey a second time to make the tooltip disappear.

Would that work for you?
3257  DonationCoder.com Software / Post New Requests Here / Re: Need ADH Advice on: May 06, 2010, 11:24:17 PM
I expected that using PowerPro to support the hotkey to call the simple program would behave the same as it had with the AHK hotkey.

What you want can easily be done with a simple INI settings file to save the toggle setting between application runs.  Give me a minute.
3258  DonationCoder.com Software / Post New Requests Here / Re: IDEA: run programs first of the month on: May 06, 2010, 10:35:42 PM
For something like this to work and, since you've already stated you don't want to use the built in Task Scheduler, it would have to stay running in the background.  Is that acceptable?
3259  DonationCoder.com Software / Post New Requests Here / Re: Need ADH Advice on: May 06, 2010, 10:26:51 PM
I tried to modify it to be a simple program

What was your expectation after doing this?

How did the original work wrt making the little window disappear everyother use?

It uses the "ToolTipFlag" variable as a toggle to determine whether to display the display the tooltip or cause it to disappear.
3260  DonationCoder.com Software / Finished Programs / Re: autohotkey makes cursor slide - i want mouse movement to halt the slide on: May 06, 2010, 05:54:29 AM
Adjust the FudgeFactor variable to your liking:

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. Hotkey, #k, MoveUp
  2. Hotkey, ^!+k, MoveUp ; * to work with programmable mouse buttons (if winkey not accepted)
  3. Hotkey, ^!+j, MoveDown
  4. Hotkey, #j, MoveDown ; *
  5. Hotkey, #+j, MoveLeft
  6. Hotkey, ^!+h, MoveLeft ; *
  7. Hotkey, #+k, MoveRight
  8. Hotkey, ^!+l, MoveRight ; *
  9. horizontalspeed=0 ; 0 = fastest, 100 = slowest
  10. verticalspeed=0
  11. speedmultiplier=30 ; cursor movement needs speeding up a bit
  12. rightscreenwidth=1920 ; width of monitor
  13. screenheight=1200 ; height of monitor
  14. FudgeFactor=50
  15.  
  16. MoveUp:
  17. MouseGetPos, xpos, ypos
  18. loop
  19. {
  20.    MouseGetPos, xpos_,
  21.    If ( xpos_ < ( xpos - FudgeFactor ) OR ( xpos_ > ( xpos + FudgeFactor ) ) )
  22. ypos -= speedmultiplier
  23. MouseMove, xpos, ypos, verticalspeed
  24.    if ypos = 0
  25. }
  26.  
  27. MoveDown:
  28. MouseGetPos, xpos, ypos
  29. loop
  30. {
  31.    MouseGetPos, xpos_,
  32.    If ( xpos_ < ( xpos - FudgeFactor ) OR ( xpos_ > ( xpos + FudgeFactor ) ) )
  33. ypos += speedmultiplier
  34. MouseMove, xpos, ypos, verticalspeed
  35.    if ypos = %screenheight%
  36. }
  37.  
  38. MoveLeft:
  39. MouseGetPos, xpos, ypos
  40. loop
  41. {
  42.    MouseGetPos, , ypos_
  43.    If ( ypos_ < ( ypos - FudgeFactor ) OR ( ypos_ > ( ypos + FudgeFactor ) ) )
  44. xpos -= speedmultiplier
  45. MouseMove, xpos, ypos, horizontalspeed
  46.    if xpos = 0
  47. }
  48.  
  49. MoveRight:
  50. MouseGetPos, xpos, ypos
  51. loop
  52. {
  53.    MouseGetPos, , ypos_
  54.    If ( ypos_ < ( ypos - FudgeFactor ) OR ( ypos_ > ( ypos + FudgeFactor ) ) )
  55. xpos += speedmultiplier
  56. MouseMove, xpos, ypos, horizontalspeed
  57.    if xpos = %rightscreenwidth%
  58. }
3261  Main Area and Open Discussion / General Software Discussion / Re: Clipboard Managing-Which one? on: May 06, 2010, 04:53:27 AM
I've used ArsClip for years.  http://www.joejoesoft.com/cms/showpage.php?cid=97
3262  Main Area and Open Discussion / Living Room / Re: could two numeric keypads work at the same time on: May 06, 2010, 04:45:46 AM
It has a switchable keypad: http://www.microsoft.com/...ve_tab=systemRequirements

Click the Details tab if the link doesn't bring you there directly.
3263  DonationCoder.com Software / Find And Run Robot / Re: How to use pskill with farr on: May 05, 2010, 01:46:08 AM
I realise this might be a little late to add, but there is a ProcessKill plugin for FARR that works well:

http://taichi.dcmembers.com/Plugins/
http://www.donationcoder....um/index.php?topic=9111.0
3264  Main Area and Open Discussion / Living Room / Re: could two numeric keypads work at the same time on: May 04, 2010, 11:41:25 PM
i've seen a company (that i can't find now) that make a large flat board with button like keys you position anywhere on the board. i think they must be magnetic.

I think you're talking about this one: http://accessories.us.del...mp;cs=19&sku=a0643515
3265  Main Area and Open Discussion / General Software Discussion / Re: Looking for a "last accessed - with date" application on: May 04, 2010, 07:09:59 AM
If you find that Karen's Directory Printer doesn't suit your needs, this wouldn't take more than a couple minutes to write up in AHK.
3266  Main Area and Open Discussion / Living Room / Re: could two numeric keypads work at the same time on: May 04, 2010, 05:29:54 AM
I'm thinking we need to see some pictures of your various setups so we know what we're dealing with here.  =]
3267  Special User Sections / N.A.N.Y. 2009 / Re: NANY 2009 Release: Trout (audio player) on: May 04, 2010, 02:33:16 AM
Could you enable drag&drop support in the playlist itself?

Not easily within AHK (the language this player is written in), no.

I sometimes want to move some track up or down ...

Ctrl-up/Ctrl-down will move a contiguous selection.

Could you make option to lock columns?

Again, not easily within AHK.  What I do is set a local hotkey to the "Justify columns" action to quickly resize columns.
3268  Main Area and Open Discussion / Living Room / Re: could two numeric keypads work at the same time on: May 02, 2010, 08:04:04 PM
You would almost certainly have to use the HID stuff to make something like this work:  http://www.autohotkey.com/forum/topic41397.html
3269  DonationCoder.com Software / Finished Programs / Re: DONE: Toggle mouse acceleration with a simple program on: May 02, 2010, 09:13:54 AM
Website | Download
v1.0.3 - 2010-05-02
   + Added ability to specify a custom cursor.  (Thanks, nudone)
3270  DonationCoder.com Software / Finished Programs / Re: DONE: Toggle mouse acceleration with a simple program on: May 02, 2010, 09:06:57 AM
Great to hear.  I'll promote that test build to a full release.  Thanks for the feedback.
3271  DonationCoder.com Software / Coding Snacks / MOVED: ALT key down visual indicator (for when alt key is stuck) on: May 02, 2010, 08:55:08 AM
This topic has been moved to Finished Programs.

http://www.donationcoder.com/forum/index.php?topic=22603.0
3272  DonationCoder.com Software / Finished Programs / Re: DONE: automated mp3 rip from video clip on: May 02, 2010, 02:08:08 AM
That's something I would like.

Done.  Dropped files only, no folders. 

Website | Download
v1.0.1 - 2010-05-01
    + Added ability to handle multiple dropped files.  (Thanks, app103)
3273  DonationCoder.com Software / Finished Programs / Re: DONE: Right Click any file and create New Folder by its Name on: May 01, 2010, 10:48:34 PM
I couldn't get it to go until I uninstalled Folder Guide,  MMM and another context menu program MooO  so there must be a correlation between having Context menu programs and Files2Folders

I honestly have no idea why it won't work with those other apps installed.

Thanks skwire another good program..

You're welcome.  I'm glad folks find it useful.
3274  DonationCoder.com Software / Finished Programs / Re: DONE: Toggle mouse acceleration with a simple program on: May 01, 2010, 09:26:41 PM
Yeah...but I don't see how this will help you since you can't do much with the LMB held down, right?  In other words, you may want to change the LMB to a key or something.
3275  DonationCoder.com Software / Finished Programs / Re: DONE: Toggle mouse acceleration with a simple program on: May 01, 2010, 07:23:33 PM
You can't do it directly with MAT, but you can easily with a couple of AHK hotkeys set up like this:

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. ~^!+LButton:: Run, C:\path\to\MouseAccelToggler.exe accel=on speed=20 cursor="C:\path\to\cursor.cur"
  2. ~^!+LButton Up:: Run, C:\path\to\MouseAccelToggler.exe accel=off speed=10 cursor="Default"

This will let you use ctrl-alt-shift-left mouse button down to do one thing and another when releasing it.
Pages: Prev 1 ... 126 127 128 129 130 [131] 132 133 134 135 136 ... 182 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.484s | Server load: 0.08 ]