Sign in to follow this  
Followers 0
findmyip

how do i do "$count" but in hex

5 posts in this topic

#1 ·  Posted (edited)

$count = 1

Do

; Print the count

send("$count")

send("{ENTER}")

; Increase the count by one

$count = $count + 1

Until $count > 99

HOW do i do this in HEX numbers? and do Until $count > FF (where it will go 19 to 1A)

and how do i make it to send "01" instead of "1"

Edited by findmyip

Share this post


Link to post
Share on other sites



$count = 1

Do

; Print the count

send("$count")

send("{ENTER}")

; Increase the count by one

$count = $count + 1

Until $count > 99

HOW do i do this in HEX numbers? and do Until $count > FF (where it will go 19 to 1A)

and how do i make it to send "01" instead of "1"

Look up Hex in the help, it does what you want.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

$count = 1

Do

; Print the count

send("$count")

send("{ENTER}")

; Increase the count by one

$count = $count + 1

Until $count > 99

HOW do i do this in HEX numbers? and do Until $count > FF (where it will go 19 to 1A)

and how do i make it to send "01" instead of "1"

i looked up hex but still no idea

Share this post


Link to post
Share on other sites

i looked up hex but still no idea

Try this dummy

Send(Hex($count, 2))

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

i looked up hex but still no idea

To get you started:

$count = 1
Do
    ; Print the count
    Send(Hex($count))
    Send("{ENTER}")
    ; Increase the count by one
    $count = $count + 1
Until $count > 99

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0