Jump to content

Recommended Posts

Posted

Jmerch Are you trying to run 1 lisp with various conditions contained within the program eg ans=1 ans=2 ans=3 then why not just ask for condition, you can display message, press a key, pick from a dialouge, pick from a screen menu, pick from a toolbar or pull down menu ? Trying to use a CTRL 1 seems like hard work for little gain.

  • Replies 25
  • Created
  • Last Reply

Top Posters In This Topic

  • jmerch

    9

  • alanjt

    8

  • BIGAL

    4

  • ReMark

    3

Top Posters In This Topic

Posted
I need a lefthanded screw driver where do I find them looked everywhere.

 

Did you look in China, I understand when you flush a toilet there, The water swirls the opposite way.

Posted
Jmerch Are you trying to run 1 lisp with various conditions contained within the program eg ans=1 ans=2 ans=3 then why not just ask for condition, you can display message, press a key, pick from a dialouge, pick from a screen menu, pick from a toolbar or pull down menu ? Trying to use a CTRL 1 seems like hard work for little gain.

 

Not sure I'm following. I don't think a condition will work b/c the routine I'm trying to do only follows 1 command still. Let's say the command is called DOTHIS. If I type that or click the button associated with that, that command works. Then, if I hold the Ctrl key and click that button, the command is still DOTHIS only it works in a different way. I just wanted to know if I was capable of assigning Ctrl in LISP or not.

Posted

Your trying to what I am saying run one program but does different things within one program draw blue line, run program draw red line

 

lineblue (setq ans 1) (load myprog) draws blue line

linered (setq ans 2) (load myprog) draws red line

 

You would need to capture button v's ctrl button this would be 2 seperate commands with some form of preset value as per ans1 ans2 ans3 etc assigned to these user keyboard inputs.

 

eg ctrl+1 pressed would do (setq ans 1)(load "myprog") ctrl+2 (setq ans 2)(load "myprog")

 

theres posts here about using keyboard combo's not sure about a ctrl+toolbar button ? tried it on my custom toolbar didn't seem to do anything.

old code would do cond and defuns now

(if (= in_sul 1) 
(progn 
do insulation 1 now

)
(if (= in_sul 2) 
(progn 
do insulation 2 now

)

Posted
:? I'm not trying to make it so it's a keyboard shortcut with Ctrl....I need it to mimic the Ctrl button being pressed while executing the command. So it's really not a keyboard combo.
Posted (edited)

I think you need to explain a lot more and simply what you are trying to do, dont know to many commands where I need to do a ctrl+key in the command ? Its sounding more and more that it cant be done.

 

Going back and looking at your 3rd post I think I found the answer "some one elses software uses a Ctrl key function" to do something they have done, what I have said they do an option based on what keys are pressed they probably check a list of commands to see what has to be done next !

Edited by BIGAL
read post 3

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...