Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by wilsoj2

  1. wilsoj2

    bind keyboard <enter> to button

    Thank you -- very simple problem I just wasn't seeing.
  2. wilsoj2

    Random Number Generator

    static const long A = 48271L; static const long M = 2147483647L; //2^31 -1 static const long Q = M / A; static const long R = M % A; unsigned long Random::RandomLong( ) { long TmpSeed = A * ( Seed % Q ) - R * ( Seed / Q ); if( TmpSeed >= 0 ) Seed = TmpSeed; else Seed = TmpSeed +...
  3. wilsoj2

    bind keyboard <enter> to button

    I have a tk app with an input field that users will type text into. They will then press "send" with the mouse or <Enter> with the keyboard and the message will go to a "log" field and display the text they typed. They should also be able to press <Enter> without having to use the mouse to...
  4. wilsoj2

    is the cpu 32-bits or 64-bits?

    Is there a function/variable available which returns the cpu's bit size? (32 or 64 or some other value which indicates the cpu's bit size). I was thinking it would be in the tcl_platform(array) but it wasn't. My c++ is rusty and I thought it would be defined in <climit> or derivable from stuff...
  5. wilsoj2

    exec command limitation?

    Thanks BC! FYI to close this out, since I also wanted to do variable substitution and the {} force no substitution the completed solution I used included the following: set FILENAME &quot;./code/test_case1&quot; set config &quot;gate&quot; set tb &quot;tb13&quot; set generic...
  6. wilsoj2

    exec command limitation?

    The following command would be executed in a unix shell: ncelab -generic 'FILE_NAME => &quot;./code/tc1&quot;' work.tb:configuration Note: The single and double quotes must be passed to the ncelab tool, (ie they cannot be removed, substituted). I want to execute this in a tcl script, however...

Part and Inventory Search

Back
Top