MaxStudio Posted February 23, 2009 Share Posted February 23, 2009 What might cause my keyboard shortcuts to stop working? has this ever happened to anyone after running a script? Quote Link to comment
MullinRJ Posted February 24, 2009 Share Posted February 24, 2009 Are you sure the script has stopped running? If the script is still running then nothing will work. Do menu selections work? If not, try hitting Cmd-period several times to interrupt the script, assuming it's still active. If the script really has quit, then you'll have to provide more information. Raymond Quote Link to comment
MaxStudio Posted February 24, 2009 Author Share Posted February 24, 2009 Thanks mullin that is a great tip. I'll definitely try the Cmd-period trick the next time it happens. I have also noticed that if I bold any of my code it cause vectorworks to freeze when I run the script. I now only change font colors to organize my work. Quote Link to comment
MaxStudio Posted March 4, 2009 Author Share Posted March 4, 2009 This script creates 2 lines. For some reason once i run the script my keyboard shortcuts cease to work. PROCEDURE CreateLines; VAR X1,Y1: REAL; BEGIN DSelectAll; X1:=58; Y1:=20; PenSize(4); PenPat(2); PenFore(255); PenBack(255); MoveTo(-X1,-Y1); LineTo(-X1+8,-Y1); PenPat(-8); PenFore(7); PenBack(7); LineTo(X1-8,-Y1); END; RUN(CreateLines); Can anyone see a problem in this script that might explain why this is happening? Quote Link to comment
MullinRJ Posted March 5, 2009 Share Posted March 5, 2009 No problem here, but I'm using 2009. I see nothing in your script that would trigger a problem in any version. How are you running your script? From a script palette? Please describe in greater detail. It may have something to do with your OS. Raymond Quote Link to comment
MaxStudio Posted April 8, 2009 Author Share Posted April 8, 2009 Its been awhile since I've been around. I've run into this problem again with another script. In both scripts I am trying to create lines. I'm not sure if that commmand is the problem. But... I have noticed something quite interesting. I run the script and my shortcuts stop working. I then delete the script and my keyboard shortcuts are reactivated. That would lead me to believe that the script was still running and preventing my shortcuts from working. Once I deleted the script I recreated it... and guess what? it didn't deactivate my keyboard shortcuts. I have no idea why it would disable them the first time and not the second... Quote Link to comment
Pat Stanford Posted April 8, 2009 Share Posted April 8, 2009 I just tried the script you posted above in VW2008 SP3 on Mac and it runs fine. I can't see anything in your script that would cause a problem or hang. If it happens again try hitting command (apple) period (.) maybe multiple times. This should force quit the script if it is hanging. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.