Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DEBUG, FIX hotkey?
Message
From
17/03/2006 12:25:06
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
16/03/2006 19:53:24
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01104900
Message ID:
01105351
Views:
24
Hi Herman

That works. Thanks!

>>Hi all
>>
>>I asked this before and no one responded. In the debugger debug menu, the fix option has no hotkey. When I click the debug menu option, there is quite a delay as some application code runs. I'd like to have a hotkey for the fix option so I can fix the piece of code faster!
>>
>>Alt+D,F,Y is better than using the mouse. So I did an ON KEY LABEL CTRL+F8 DO DebugFix.PRG.
>>
>>DebugFix.prg will basically KEYBOARD "{ALT+D}FY" PLAIN CLEAR
>>
>>I'd like to detect that the debugger is the active window so it doesn't do that keystroke just anyplace. How would I do that?
>
>Hi Mike,
>
>Are you using "Debug Frame" ? If so, try put this in DebugFix.PRG
>
>If !empty( sys( 16 ))  && make sure there is a running program
>   Declare Long GetActiveWindow in User32
>   Declare Integer GetWindowText in User32 ;
>      Long nhWnd, String @lpString, Integer nMaxCount
>
>   cCaption = space( 255 )
>   If (GetWindowText( GetActiveWindow(), @cCaption, 255 ) > 0)
>      If ('VISUAL FOXPRO DEBUGGER' $ upper( cCaption ))
>         Keyboard "{ALT+D}FY" plain clear
>      endif
>   endif
>endif
>
>
>HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform