AutoHotkey Community

It is currently May 27th, 2012, 11:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: February 1st, 2012, 3:09 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
Following scenario: You want to use 6 different keyboards with same laptop. The keyboards are as follows:

keyboard0: original QWERTY of laptop
keyboard1: attached ps2 keyboard via usb connector
keyboard2..5: other 4 usb-keyboards

The idea is using these 6 keyboards for real-time typing games for 6 players in parallel.

Example: typing a trigram "is." followed by SPACE, ten times per line, 4 lines. That's all. The quicker the higher the score. For each mistake some negative points. This would be fun, if players could play/type in parallel, plus some nice visual representation during typing, e.g. as horse race figures moving from left to right.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2012, 3:20 pm 
http://www.autohotkey.com/wiki/index.ph ... ds_or_Mice :?:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2012, 3:28 pm 
Offline

Joined: July 10th, 2008, 8:49 am
Posts: 1865
Location: Brussels, Belgium
Good luck !

Main code :
check which keyboard is typing (look for the HID in the link given above)
send the key to the corresponding window/control in a gui

But I can already say the first player typing will probably win as the script run sequentially and use input command to retrieve the text typed (you must create a ahk keylogger to get the keys typed or make as much hotkeys as the possibilities of keys the "players" will have...).
And an ahk script is not really a game coded in C++... :-P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 1st, 2012, 4:27 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
For the 6 player case I would just write into 6 variables, after each SPACE, do a check if the trigram is correct, update the players score, plus the horse horizontal position :) ... So all variables would be independent of each other. The only problem would be to connect each HID to one such variable.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Edd and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group