findmyip Posted October 30, 2010 Share Posted October 30, 2010 (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 October 30, 2010 by findmyip Link to comment Share on other sites More sharing options...
martin Posted October 30, 2010 Share Posted October 30, 2010 $count = 1Do ; Print the count send("$count") send("{ENTER}") ; Increase the count by one $count = $count + 1 Until $count > 99HOW 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. Link to comment Share on other sites More sharing options...
findmyip Posted October 30, 2010 Author Share Posted October 30, 2010 $count = 1Do ; Print the count send("$count") send("{ENTER}") ; Increase the count by one $count = $count + 1 Until $count > 99HOW 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 Link to comment Share on other sites More sharing options...
trancexx Posted October 30, 2010 Share Posted October 30, 2010 i looked up hex but still no idea Try this dummy Send(Hex($count, 2)) ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Developers Jos Posted October 30, 2010 Developers Share Posted October 30, 2010 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 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now