Small Tweaks and changes
This commit is contained in:
27
FakeeDeck/ButtonType/Button.cs
Normal file
27
FakeeDeck/ButtonType/Button.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FakeeDeck.ButtonType
|
||||
{
|
||||
internal class Button
|
||||
{
|
||||
public static string getButton(string Key)
|
||||
{
|
||||
return
|
||||
"<div class=\"m-2\">" +
|
||||
" <form style=\"margin-bottom: 0px;\" method=\"post\" action=\"keyboard\\stratogem\">" +
|
||||
" <input type=\"hidden\" name=\"stratogem\" value=>" +
|
||||
" <input style=\"background-size: cover; ; width: 150px;height: 150px;background-color: aquamarine;\" type=\"submit\" value=\"\">" +
|
||||
" </form>" +
|
||||
"</div>";
|
||||
}
|
||||
|
||||
public static bool invokeAction(string Key)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
@@ -7,7 +7,7 @@ using static System.Net.WebRequestMethods;
|
||||
|
||||
namespace FakeeDeck.ButtonType
|
||||
{
|
||||
class HelldiversTwoMacro
|
||||
class HelldiversTwoMacro : Button
|
||||
{
|
||||
//https://helldivers.wiki.gg/wiki/Stratagems
|
||||
//https://helldivers.fandom.com/wiki/Stratagems_(Helldivers_2)
|
||||
@@ -51,19 +51,24 @@ namespace FakeeDeck.ButtonType
|
||||
{
|
||||
return
|
||||
"<div class=\"m-2\">" +
|
||||
" <form style=\"margin-bottom: 0px;\" method=\"post\" action=\"keyboard\\stratogem\">" +
|
||||
" <form style=\"margin-bottom: 0px;\" method=\"post\" action=\"button\\HelldiversTwoMacro\">" +
|
||||
" <input type=\"hidden\" name=\"stratogem\" value=\"" + Key + "\">" +
|
||||
" <input style=\"background-image: url('" + stratogemsIcons[Key].ToString() + "'); width: 200px;height: 200px;background-color: aquamarine;\" type=\"submit\" value=\"" + FirstLetterToUpper(Key) + "\">" +
|
||||
" <input style=\"background-size: cover; background-image: url('" + stratogemsIcons[Key].ToString() + "'); width: 150px;height: 150px;background-color: aquamarine;\" type=\"submit\" value=\"" + FirstLetterToUpper(Key) + "\">" +
|
||||
" </form>" +
|
||||
"</div>";
|
||||
}
|
||||
|
||||
public static bool invokeAction(string Key)
|
||||
public static bool invokeAction(string stratogem)
|
||||
{
|
||||
return false;
|
||||
foreach (var key in stratogems[stratogem])
|
||||
{
|
||||
KeyboardMacro.SendKey(key);
|
||||
Console.WriteLine(key);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static string FirstLetterToUpper(string str)
|
||||
private static string FirstLetterToUpper(string str)
|
||||
{
|
||||
if (str == null)
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user