WiFiDirectLegacyAPDemo icon indicating copy to clipboard operation
WiFiDirectLegacyAPDemo copied to clipboard

Feature Request: Non-console mode

Open ysaliens opened this issue 5 years ago • 5 comments

Very useful tool! Windows is now disabling hosted networks on newer adapters and I was delighted to see this uses the newer Wi-Fi direct standard.

Would it be possible to make a non-console version of this tool? I'm looking for something I can run on startup to enable the Hotspot functionality. This could work perfectly if it could use a config file for settings and be able to start and stop a network from the command line

ysaliens avatar Oct 24 '20 17:10 ysaliens

That would help me too.

What do you think is the easiest way to implement that, and can you maybe help? Writing C++ makes me unhappy :-(

One approach might be to take a list of commands (delimited somehow?) as a command-line argument. Then in the main we split the commands and just execute each one.

So that one could say: WiFiDirectLegacyAPDemo.exe "ssid MyNetwork" "pass 12341234" "autoaccept 1" "start"

Then in main just iterate through the delimiter commands and call SimpleConsole.Execute for each one. Not sure what the best delimiter story is - quotes and spaces?

govert avatar Oct 24 '20 17:10 govert

Alternatively just use "-" to indicate the start of a new command: WiFiDirectLegacyAPDemo.exe -ssid MyNetwork -pass 12341234 -autoaccept 1 -start

govert avatar Oct 24 '20 17:10 govert

hi. is there any solution about this issue. I need work at startup. I configure some batch files but it does not work correctly. My codes:

wifilegacy.bat

cd C:\user\path\to\WifiApi echo type commands.txt | WifiLegacyDemo.exe

commands.txt

ssid MySsid pass 123456789 start

When i send this command, it works repeatedly.

suheylkiris avatar Feb 20 '23 17:02 suheylkiris

Alternatively just use "-" to indicate the start of a new command: WiFiDirectLegacyAPDemo.exe -ssid MyNetwork -pass 12341234 -autoaccept 1 -start

It didn't work

ImBIOS avatar Mar 19 '23 07:03 ImBIOS

@ImBIOS

It didn't work

Indeed, it would not work like that now. My suggestion was that someone could implement the command line switches this way. It is not currently implemented like this.

govert avatar Mar 21 '23 13:03 govert