Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: load different display by a hot key

$
0
0
You need to escape the embedded quotation marks: hiSetBindKey( "Schematics" " k" "drLoadDrf(\"/home/andy/display.drf\" nil)") ;hiSetBindKey hiSetBindKey( "Schematics" "Shift k" "drLoadDrf(\"/home/andy/display_thick.drf\" nil)") ;hiSetBindKey Otherwise it will see the bind key string as ending after the 'drLoadDrf(' bit and then the rest would cause a syntax error because there's no space. Escaping the quotation marks needed as part of the call to drLoadDrf means that the entire command is defined as the bind key. Regards, Andrew.

Viewing all articles
Browse latest Browse all 33813

Trending Articles