Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why mouse wheel F/B ok, but with <CTL> first needs rel
#9
I think you don't need to initialize or get name from handle. You can identify the control by id.

Function FreehandZoom:
Code:
Copy      Help
;/
function size action ;;action: 0 set, 1 add, -1 sub

int handle=id(432 "FreeHand")
str s
if(action)
,s.getwintext(handle)
,int i=val(s)
,if(action>0) size=i+size
,else size=i-size
s=size
act handle
BlockInput 1
key- CSAW
key (s) Y
BlockInput 0

;BlockInput and key- CSAW are used to prevent mixing modifier keys with Enter in case the trigger is a mouse trigger with "When released" unchecked.

It works with Macromedia Freehand MX 11.

Examples

Zoom +25%:
Code:
Copy      Help
FreehandZoom 25 1

Zoom -25%:
Code:
Copy      Help
FreehandZoom 25 -1

Zoom to 100%:
Code:
Copy      Help
FreehandZoom 100 0


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)