Jump to content

Recommended Posts

Posted

Hi Helper,

 sorry  for my english

i try to detect slow internet connection from my data card by reading string from COM port:

it generate the strings like below:

rssi:

^mode: 5,7

^mode: 5,4

^mode: 3,3

^mode: 5,5

ok

.....

i want to capture only string : ^mode:3,3 (mean bad signal) and make sure at the moment the connection speed is slow. But those string change every 2 or 3 sec..

my code look like:

$instr = _commgetstring()

$instr = StringReplace($instr,@CR,@CRLF)

If StringInStr($instr, "^MODE:3,3") Then

(do somme things here)

but it 's seem not correct

any help would be appreciated. 

Posted

try StringInStr($instr, "^MODE: 3,3")

you forgot a space behind the colon

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Posted
  On 8/12/2013 at 10:33 AM, Edano said:

try StringInStr($instr, "^MODE: 3,3")

you forgot a space behind the colon

Hi Edano, thank for your quick reponse

 the syntax was correct but it need 1 condition : internet speed at this moment is slow, be cause sometimes it have "^mode:3,3" in string but connection speed is exellent. I don't know how to define the speed, or some one have a solution?

Posted

Use IneGet with background set to 1 and then use InetGetInfo with some maths to determine the speed. Look in my signature for _Inet functions I created.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 8/13/2013 at 8:40 AM, guinness said:

Use IneGet with background set to 1 and then use InetGetInfo with some maths to determine the speed. Look in my signature for _Inet functions I created.

 Hi Guiness,

imagine i'm new to autoit ): can you give me a exemple?

thanks for your help.

Posted

  On 8/13/2013 at 9:17 AM, chipchip said:

Hi Guiness,

imagine i'm new to autoit ): can you give me a exemple?

thanks for your help.

I did. All you had to do was look in my signature. But I will imagine you're totally new to Forum etiquette as well >>

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Why not just use a speedtesting site instead of complicating yourself?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

Here is a script i made from using one of the UDF from Ascend4nt. it does what you r asking but it will also shut down your computer if idle for too long. let me know if you need anything explained.

Note: make sure you check the includes so you know which files you need.

EDIT: meant Ascend4nt

NetworkSpeed.au3

Edited by Kidney
Posted

Those aren't my UDFs unfortunately.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 8/14/2013 at 5:16 AM, Kidney said:

Here is a script i made from using one of the UDF from guinness. it does what you r asking but it will also shut down your computer if idle for too long. let me know if you need anything explained.

Note: make sure you check the includes so you know which files you need.

Thanks but it take too long...

Posted

...and Melba23.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

No, but you did the ExtMsgBox. I like the UDF, but for purposes of demonstrating a MsgBox would have been suffice.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...