Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Detecting Keys Pressed (EUDs)
Detecting Keys Pressed (EUDs)
Feb 21 2009, 2:27 am
By: Morphling
Pages: < 1 2 3 4 57 >
 

Feb 23 2009, 7:04 am Heinermann Post #41

SDE, BWAPI owner, hacker.

According to that map
Code
Starting with Unit 1059 Player 12

289
290
291
292
293
294
295
296
297 Backspace
298 Tab
299
300
301 KP 5 (NL off)
302 Enter
303
304
305 Shift
306 Ctrl
307 Alt
308 Pause/Break
309 Caps Lock
310
311
312
313
314
315
316 Esc
317
318
319
320
321 Space
322 Page Up
323 Page Down
324 End
325 Home
326 Left
327 Up
328 Right
329 Down
330
331
332
333
334 Insert
335 Delete
336
337 0
338 1
339 2
340 3
341 4
342 5
343 6
344 7
345 8
346 9
347
348 KP Add
349
350
351
352
353
354 a, A
355 b, B
356 c, C
357 d, D
358 e, E
359 f, F
360 g, G
361 h, H
362 i, I
363 j, J
364 k, K
365 l, L
366 m, M
367 n, N
368 o, O
369 p, P
370 q, Q
371 r, R
372 s, S
373 t, T
374 u, U
375 v, V
376 w, W
377 x, X
378 y, Y
379 z, Z
380
381 Windows Key
382 Context Menu key
383
384
385 KP 0 (NL on)
386 KP 1 (NL on)
387 KP 2 (NL on)
388 KP 3 (NL on)
389 KP 4 (NL on)
390 KP 5 (NL on)
391 KP 6 (NL on)
392 KP 7 (NL on)
393 KP 8 (NL on)
394 KP 9 (NL on)
395 KP Multiply
396
397
398 KP Subtract
399 KP Decimal
400 KP Divide
401 F1?
402 F2?
403 F3?
404 F4?
405 F5
406 F6
407 F7
408 F8
409 F9
410 F10
411 F11
412 F12
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433 Num Lock
434 Scroll Lock
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462 Mute (Sony laptop)
463 Volume Down (Sony laptop)
464 Volume Up (Sony laptop)
465 Next Track (Sony laptop)
466 Previous Track (Sony laptop)
467 Stop (Sony laptop)
468 Play/Pause (Sony laptop)
469
470
471
472
473
474
475 ; and :
476 = and +
477 , and <
478 - and _
479 . and >
480 / and ?
481 ` and ~
482 A (unused)
483 B (unused)
484 C (unused)
485 D (unused)
486 E (unused)
487 F (unused)
488 G (unused)
489 H (unused)
490 I (unused)
491 J (unused)
492 K (unused)
493 L (unused)
494 M (unused)
495 N (unused)
496 O (unused)
497 P (unused)
498 Q (unused)
499 R (unused)
500 S (unused)
501 T (unused)
502 U (unused)
503 V (unused)
504 W (unused)
505 X (unused)
506 Y (unused)
507 Z (unused)
508 [ and {
509 \ and |
510 ] and }
511 ' and ~
512
513
514
515 \ and | (alternate)
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544 Media key (Compaq keyboard)
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600


Post has been edited 1 time(s), last time on Feb 23 2009, 2:34 pm by Heinermann.




Feb 24 2009, 1:24 am Epyon214 Post #42



if it DOES become possible for multiplayer, I totally want to use this. How awesome would it be to, instead of using a moving defiler or building a marine, say the attack out loud and have the spell activate in a arena map ( fyi, im attempting to make a " pokemon budokai " map, though progress is slow cause im lazy.



None.

Feb 24 2009, 3:03 am Rantent Post #43



Quote
But really you couldn't tell set leaderboard is leaderboard.
Well there's toggle leaderboard computer players, set leaderboard goal, set score. If it's set leaderboard goal, I think that could be detectable.



None.

Feb 24 2009, 6:03 am stickynote Post #44



Quote
If it's set leaderboard goal, I think that could be detectable.
How would you do that?



None.

Feb 24 2009, 6:08 am Elvang Post #45



As far as I know, there are no conditions relating to leaderboards.



None.

Feb 25 2009, 12:40 am samsizzle Post #46



So this will probably not work for actions such as spells or other things then? I just want to be sure in case i go making a map using a gateway for a selection system when i couldve used this. Also in the map spellsword rpg it can detect if you clicked on an upgrade and it cancels it. How the heck does that work?



None.

Feb 25 2009, 1:17 am Heinermann Post #47

SDE, BWAPI owner, hacker.

IT'S ONLY CLIENT SIDE. YOU CANNOT CREATE ACTIONS THAT AFFECT GAMEPLAY AT ALL.





Feb 25 2009, 1:24 am stickynote Post #48



Lol. Make it nice and clear. If you don't understand what he meant, he means that the only actions that will work are ones that do not affect units, vision, players, or anything. For example, displaying a text message does not affect anything.



None.

Feb 25 2009, 6:15 am Pyro682 Post #49



samsizzle, The reason why is that the Upgrade for armor is 50 gas, and the weapon is 1 gas.
The Armor is slightly slower than the weapon upgrade.
If a player in Spellsword RPG tries to do a weapon upgrade when the armor is 50 gas, a trigger will detect that the player has 49 gas, and give away/remove + create the forge doing the upgrade. Since the upgrade is interrupted, the gas is automatically refunded by starcraft, and no harm done. The upgrades in SpellSword RPG have nothing to do with EUDs.



However, you CAN create text messages that WILL affect gameplay, by telling the player how to do certain things.
For example, have a combo that unlocks a new level or spell if the player influences the trigger with the EUD condition be revealed to the player.
You can easily set up a randomizer that switches this combo, so people can't get this combo and memorize it for another game, or tell others what the combo is.
The "Keypad" or "Combo-enterer"(Enterer???) thingie could be something like a GW or Starport, and you create a unit or "siege a tank like in spellsword" to enter in the combo, so people cant guess easily by building tons of random units.



None.

Feb 25 2009, 2:28 pm Brontobyte Post #50



I also noticed that the response time is slow. I made a map using the arrow keys to move a unit one square at a time, and it was either slow reaction time or the triggers or they just didn't work for one click, or a combination of the two.



None.

Feb 25 2009, 2:57 pm Symmetry Post #51

Dungeon Master

Quote from Brontobyte
I also noticed that the response time is slow. I made a map using the arrow keys to move a unit one square at a time, and it was either slow reaction time or the triggers or they just didn't work for one click, or a combination of the two.

Really? The Legend of Zelda map in UMS Production uses WASD movement, and it seemed to work really well for me.



:voy: :jaff: :voy: :jaff:

Feb 25 2009, 5:52 pm Pigy_G Post #52



I made the first unit control with this, and it worked fine. Your triggers suck prolly.



None.

Feb 25 2009, 7:22 pm Brontobyte Post #53



Quote from Pigy_G
I made the first unit control with this, and it worked fine. Your triggers suck prolly.

Yeah, that's what it is. Do you have a map to show me? Maybe I'm doing something wrong. Triggers detect when you press an arrow key and then for the actions, it creates a mobile grid and moves the unit one square in that direction.



None.

Feb 26 2009, 8:58 am Ateo Post #54



you know, since the 'display text' action could be used without dropping players, this could still be useful for an rpg where you have players press a key to 'talk' to an NPC, or press up a key to display a 'virtual' menu that is run by death counts, from which a build unit or move unit (a la Spellsword) selection system is used to scroll through the options and confirm the selection.



None.

Mar 1 2009, 10:54 am Ahli Post #55

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

I added information for the German keyboard and my laptop's windows button. Odd that it has another number.
Code
Starting with Unit 1059 Player 12

notes:
-keys with capslock and without capslock have no difference
-if u press multiple keys, you can only detect the one with the higher number in this list
-I couldn't detect "Alt Gr"

list:
289
290
291
292
293
294
295
296
297 Backspace
298 Tab
299
300
301 KP 5 (NL off)
302 Enter
303
304
305 Shift
306 Ctrl
307 Alt
308 Pause/Break
309 Caps Lock
310
311
312
313
314
315
316 Esc
317
318
319
320
321 Space
322 Page Up
323 Page Down
324 End
325 Home
326 Left
327 Up
328 Right
329 Down
330
331
332
333
334 Insert
335 Delete
336
337 0
338 1
339 2
340 3
341 4
342 5
343 6
344 7
345 8
346 9
347
348 KP Add
349
350
351
352
353
354 a, A
355 b, B
356 c, C
357 d, D
358 e, E
359 f, F
360 g, G
361 h, H
362 i, I
363 j, J
364 k, K
365 l, L
366 m, M
367 n, N
368 o, O
369 p, P
370 q, Q
371 r, R
372 s, S
373 t, T
374 u, U
375 v, V
376 w, W
377 x, X
378 y, Y
379 z, Z
380 GER Windows Key (Ahli's laptop) (?)
381 Windows Key
382 Context Menu key
383
384
385 KP 0 (NL on)
386 KP 1 (NL on)
387 KP 2 (NL on)
388 KP 3 (NL on)
389 KP 4 (NL on)
390 KP 5 (NL on)
391 KP 6 (NL on)
392 KP 7 (NL on)
393 KP 8 (NL on)
394 KP 9 (NL on)
395 KP Multiply
396
397
398 KP Subtract
399 KP Decimal
400 KP Divide
401 F1? (not detectable)
402 F2? (not detectable)
403 F3? (not detectable)
404 F4? (not detectable)
405 F5
406 F6
407 F7
408 F8
409 F9
410 F10
411 F11
412 F12
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433 Num Lock
434 Scroll Lock
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462 Mute (Sony laptop)
463 Volume Down (Sony laptop)
464 Volume Up (Sony laptop)
465 Next Track (Sony laptop)
466 Previous Track (Sony laptop)
467 Stop (Sony laptop)
468 Play/Pause (Sony laptop)
469
470
471
472
473
474
475 ; and : and GER: ü
476 = and + and GER: +
477 , and <
478 - and _
479 . and >
480 / and ? and GER: #
481 ` and ~ and GER: ö
482 A (unused)
483 B (unused)
484 C (unused)
485 D (unused)
486 E (unused)
487 F (unused)
488 G (unused)
489 H (unused)
490 I (unused)
491 J (unused)
492 K (unused)
493 L (unused)
494 M (unused)
495 N (unused)
496 O (unused)
497 P (unused)
498 Q (unused)
499 R (unused)
500 S (unused)
501 T (unused)
502 U (unused)
503 V (unused)
504 W (unused)
505 X (unused)
506 Y (unused)
507 Z (unused)
508 [ and { and GER: ß
509 \ and | and GER: ^
510 ] and } and GER: ´
511 ' and ~ and GER: ä
512
513
514
515 \ and | (alternate)
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544 Media key (Compaq keyboard)
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600





Mar 1 2009, 5:41 pm Heinermann Post #56

SDE, BWAPI owner, hacker.

Possibly Left and Right WIN keys.

Another application:
Leaderboard page flipping in observer matches. Only if current player is observer[local current player only].

Perhaps these key codes are used outside of the actual game(Lobby, Briefing, Menu, BNET)?




Mar 22 2009, 11:38 pm Morphling Post #57



I made this map a little while back, but never posted. Uses WASD to control a marine. Holding two keys causes the marine to move on an angle. I implemented an acceleration system so the marine gradually gets faster.(well not faster, but to it's normal speed) I did the movement by a pixel grid.

Attachments:
WASD Movement.scx
Hits: 19 Size: 47.46kb

Post has been edited 1 time(s), last time on Mar 22 2009, 11:47 pm by Morphling.



None.

Mar 23 2009, 3:21 pm Devourer Post #58

Hello

Mhh...
it seems like that the action runs 2 times when you press the key.

like:
PLAYER PRESSES "H"
-> set switch1
-> preserve trigger

switch1 is set
-> create 1 wraith at X for player X
-> clear switch1
-> preserve trigger


There are crated 2 wraiths. How to fix?



Please report errors in the Staredit.Network forum.

Mar 23 2009, 5:32 pm Heinermann Post #59

SDE, BWAPI owner, hacker.

Quote
PLAYER PRESSES "H"
switch1 is clear
-> create 1 wraith at X for player X
-> set switch1
-> preserve trigger


switch1 is set
player is NOT pressing "H"
-> clear switch1
-> preserve trigger

BTW, the array that we have been playing with is actually a VKEY array. Media keys are not part of this array, but come after with other input values.
See http://msdn.microsoft.com/en-us/library/ms645540.aspx
I'll need to go on my desktop to get the base addresses.

Someone test mouse button presses?




May 8 2009, 4:06 pm Pr0nogo Post #60



Thanks for this so much! I just need to familiarize myself with it and I'll be good to go. :D




Options
Pages: < 1 2 3 4 57 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy