Shop OBEX P1 Docs P2 Docs Learn Events
Press F1 on a keyword and jump automated to the related page in the propellerma — Parallax Forums

Press F1 on a keyword and jump automated to the related page in the propellerma

StefanL38StefanL38 Posts: 2,292
edited 2009-10-06 02:21 in Propeller 1
Hello,

I found a substantial BUG in my autohotkey-script !

I defined all the hotkeys as GLOBAL hotkeys. This meant The keypress was catched regardless of wich application
is active. Then I checked for a special application (PropTool etc.) Effect for other applications the keystroke vanished
in the nirvana = did not work anymore.

In the new version the hotkeys are application-sensitive. Which means in all other applications the hotkeys work as they
are espected to work.

Sorry for the inconvinience this might have caused. What have I learned from that ?
publish or share something ALWAYS AFTER intensive testing or remark it as an alpha-version.

OK from how much testing I have done so far version V1_1 is a "beta teenager"

in the attachment is the new script for http://www.autohotkey.com/

When you press F1 in a SPIN-file the manual is opened and a search is done for the word under the cursor

It works for the propellertool and for Brad's Spin Tool

Maybe you have to change the paths to Acrobat-Reader and/or Propellertool

Edit:
As I am a keyboard-freak (I don't like mouse-bumbing)
I enjoyed exploring AutoHotkey and added some functions to the PropTool-Editors behaviour

1) open character-chart on pressing Alt-v
2) close small windows (find-dialog Character-chart) on pressing ESC
3) search word under cursor (and ONLY word not word and ".", "+", "-", or whatever on pressing Shift-Ctrl-F

If you still encounter bugs or strange behaviour post a message

best regards

Stefan

Post Edited (StefanL38) : 10/4/2009 4:21:23 PM GMT

Comments

  • StefanL38StefanL38 Posts: 2,292
    edited 2009-10-04 16:20
    New version V1_1 with application sensitive hotkey-definition
  • turbosupraturbosupra Posts: 1,088
    edited 2009-10-05 14:34
    I thought that looked like autoit [noparse]:)[/noparse]

    Let me ask you, I learned programming on autoit/scite ... how hard is it to convert to spin or C for the propeller?


    StefanL38 said...
    Hello,

    I found a substantial BUG in my autohotkey-script !

    I defined all the hotkeys as GLOBAL hotkeys. This meant The keypress was catched regardless of wich application
    is active. Then I checked for a special application (PropTool etc.) Effect for other applications the keystroke vanished
    in the nirvana = did not work anymore.

    In the new version the hotkeys are application-sensitive. Which means in all other applications the hotkeys work as they
    are espected to work.

    Sorry for the inconvinience this might have caused. What have I learned from that ?
    publish or share something ALWAYS AFTER intensive testing or remark it as an alpha-version.

    OK from how much testing I have done so far version V1_1 is a "beta teenager"

    in the attachment is the new script for http://www.autohotkey.com/

    When you press F1 in a SPIN-file the manual is opened and a search is done for the word under the cursor

    It works for the propellertool and for Brad's Spin Tool

    Maybe you have to change the paths to Acrobat-Reader and/or Propellertool

    Edit:
    As I am a keyboard-freak (I don't like mouse-bumbing)
    I enjoyed exploring AutoHotkey and added some functions to the PropTool-Editors behaviour

    1) open character-chart on pressing Alt-v
    2) close small windows (find-dialog Character-chart) on pressing ESC
    3) search word under cursor (and ONLY word not word and ".", "+", "-", or whatever on pressing Shift-Ctrl-F

    If you still encounter bugs or strange behaviour post a message

    best regards

    Stefan
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-10-05 18:23
    Hello TurboSupra,

    I took a short look into an autoit script

    if you can program in autoit you know the basic concepts of almost every programming-language (like variables if-conditions etc.)

    So what's new to you is only the differencies in the syntax between autoit and SPIN.

    example in autoit you write a if-condition and clamp together lines of code by writing ENDIF

    in SPIN you just INDENT all lines that should belong to the if-statement
    no closing ENDIF

    best regards

    Stefan
  • turbosupraturbosupra Posts: 1,088
    edited 2009-10-06 02:21
    Hey Stefan,

    I checked out your 2 scripts, they were cool, I may use the hotkeys one

    This spin has really taken me for a spin [noparse]:)[/noparse] trying to figure out the syntax differences. If there was a scite for spin, I would be great



    StefanL38 said...
    Hello TurboSupra,

    I took a short look into an autoit script

    if you can program in autoit you know the basic concepts of almost every programming-language (like variables if-conditions etc.)

    So what's new to you is only the differencies in the syntax between autoit and SPIN.

    example in autoit you write a if-condition and clamp together lines of code by writing ENDIF

    in SPIN you just INDENT all lines that should belong to the if-statement
    no closing ENDIF

    best regards

    Stefan
Sign In or Register to comment.