AutoCAD Teksten

Uitleg

In AutoCAD wordt er een voorgeprogrammeerde tekst geplaatst op de plek waar de muis op dat moment staat.


Gebruikte functies

~ = Enter

{RIGHT} = Cursor naar rechts

{TAB} = Tab

^ = Control

^~ = Control+Enter


Programma

Kopieer onderstaande tekst naar LuaMacros 

----------------------------------------------------
-- assign logical name to macro keyboard
lmc_assign_keyboard('MACROS');

-- define callback for whole device
lmc_set_handler('MACROS',function(button, direction)
if (direction == 1) then return end -- ignore down
----------------------------------------------------
if (button == 97) then -- Numpad 1
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 1') -- Type Tekst 1
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
elseif (button == 98) then -- Numpad 2
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 2') -- Type Tekst 2
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
elseif (button == 99) then -- Numpad 3
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 3') -- Type Tekst 3
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
elseif (button == 100) then -- Numpad 4
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 4') -- Type Tekst 4
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
elseif (button == 101) then -- Numpad 5
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 5') -- Type Tekst 5
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
elseif (button == 102) then -- Numpad 6
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 6') -- Type Tekst 6
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
elseif (button == 103) then -- Numpad 7
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 7') -- Type Tekst 7
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
elseif (button == 104) then -- Numpad 8
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 8') -- Type Tekst 8
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
elseif (button == 105) then -- Numpad 9
lmc_send_keys ('TEXT') -- commando Tekst
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("{TAB}") -- TAB
lmc_sleep(100)
lmc_send_keys ("{RIGHT}") -- cursor naar rechts
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('25') -- Teksthoogte 25
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('0') -- Tekstverdraaiing 0
lmc_sleep(100)
lmc_send_keys ("~") -- Enter
lmc_sleep(100)
lmc_send_keys ('Tekst 9') -- Type Tekst 9
lmc_sleep(100)
lmc_send_keys ("^~") -- Ctrl+Engter (einde commando)
----------------------------------------------------
else print('Not yet assigned: ' .. button)
end
end)
----------------------------------------------------

Maak een gratis website. Deze website werd gemaakt met Webnode. Maak jouw eigen website vandaag nog gratis! Begin