Search found 868 matches

by Albireo
27 Dec 2019, 05:44
Forum: Ask For Help
Topic: Communication between Autohotkey / Arduino
Replies: 12
Views: 730

Re: Communication between Autohotkey / Arduino

Now I have tried to clear the buffer. I have tested different delays (But nothing seems to help) It has something to do with the initiation of the USB port - I think. ; https://autohotkey.com/board/topic/26231-serial-com-port-console-script/ - inspired by that link ; 8/11/09 ; Assembled, tested (on ...
by Albireo
19 Dec 2019, 06:54
Forum: Ask For Help
Topic: How to handle XML- / Modbus- codes to a device
Replies: 0
Views: 104

How to handle XML- / Modbus- codes to a device

Questions .: Is it possible / easy to handle / read XML-information with AHK? Background .: I found an intresting Product WebRelay-Quad . These relays can be programmed via ethernet. In the PDF manual it says .: WebRelay-Quad™ can be operated by using a web browser, by sending text commands to an X...
by Albireo
17 Dec 2019, 11:28
Forum: Ask For Help
Topic: A_LineNumber - why in hex format?
Replies: 2
Views: 169

Re: A_LineNumber - why in hex format?

Yes! I do the following .: SetFormat INTEGER, H Var := "" Loop parse, data { Var .= Asc(SubStr(A_LoopField, 0)) . "`," ; Get the key that was pressed and convert it to its ASCII code } SetFormat, INTEGER, D RS232_Write(RS232_FileHandle, Var) And in the function RS232_Write , in a MsgBox (just for te...
by Albireo
15 Dec 2019, 16:31
Forum: Ask For Help
Topic: A_LineNumber - why in hex format?
Replies: 2
Views: 169

A_LineNumber - why in hex format?

When I run my AHK-program (The program communicate through USB with an Arduino) The AHK program is written in ANSI with Notepad++ I have some MsgBox instructions like this one .: MsgBox ,, Row %A_LineNumber% -> %A_ScriptName%, .... My wish is to get the following result .: Row 333 -> TestProg.ahk Bu...
by Albireo
13 Dec 2019, 13:49
Forum: Ask For Help
Topic: Communication between Autohotkey / Arduino
Replies: 12
Views: 730

Re: Communication between Autohotkey / Arduino

Great solution! I tested the communication, with this program int incomingByte; void setup() { Serial.begin(9600); pinMode(13, OUTPUT); } void loop(){ if (Serial.available() > 0) { incomingByte = Serial.read(); if (incomingByte == 'A') { digitalWrite(13, HIGH); } if (incomingByte == 'B') { digitalWr...
by Albireo
12 Dec 2019, 15:06
Forum: Ask For Help
Topic: Communication between Autohotkey / Arduino
Replies: 12
Views: 730

Re: Communication between Autohotkey / Arduino

The ideas on how AHK can communicate with an Arduino come to an end. Everything I've tested has not worked.
Have I missed any AHK instruction to send/receive data to/from an USB-port?
Do not think that Baudrate can play any role.
by Albireo
08 Dec 2019, 18:40
Forum: Ask For Help
Topic: Communication between Autohotkey / Arduino
Replies: 12
Views: 730

Re: Communication between Autohotkey / Arduino

Right now I'm focusing on being able to communicate with Autohotkey, between a PC and Windows 7 or Windows 10 with an Arduino. Be able to understand how data is sent / read between these two devices. I have no problem to communicate between the Arduino Serial monitor on the PC and an Arduino Uno. An...
by Albireo
08 Dec 2019, 16:26
Forum: Ask For Help
Topic: AutohotkeyCE - Unicode-Build 1.0.48.760 - Instructions
Replies: 0
Views: 140

AutohotkeyCE - Unicode-Build 1.0.48.760 - Instructions

Investigates what I could do with AutohotkeyCE . It seems to build on Unicode-Build 1.0.48.760. Is it possible to find any help file for this AHK version? I found a list with tested commands " WorkingCommands.pdf " But I don't find anything about Objects, Arrays and so on... Is there something simil...
by Albireo
08 Dec 2019, 07:17
Forum: Ask For Help
Topic: GUI - Handle edit field Topic is solved
Replies: 3
Views: 801

Re: GUI - Handle edit field Topic is solved

Thanks!
For many years ago I solved the problem on this way

Code: Select all

#IfWinActive ahk_group hkgroup
~NumpadEnter::
~Enter::
...
(I don't remember where this idea came from)
by Albireo
06 Dec 2019, 19:09
Forum: Ask For Help
Topic: GUI - Handle edit field Topic is solved
Replies: 3
Views: 801

GUI - Handle edit field Topic is solved

My wish is to be able to handle two editable GUI-fields. I have several problems - Save the information entered in the fields. - Move the focus between fields with "Enter". (like TAB) For information .: My desire with this program is the following .: 1) When the program start the first field ( field...
by Albireo
06 Dec 2019, 16:30
Forum: Ask For Help
Topic: USB-port settings
Replies: 0
Views: 2142

USB-port settings

Is it possible to read / check the settings for an USB port (Windows 7/10)? 1) I know the name eg. .: Arduino Uno And the values for this port was .: Com Port .: COM3 Baud Rate .: 9600 Databits .: 8 Parity .: None Stop bits .: 1 Flow control .: None Is it possible? 2) If I know the port number eg. C...
by Albireo
03 Dec 2019, 18:17
Forum: Ask For Help
Topic: Read serial flow USB - Serial.ahk
Replies: 0
Views: 2571

Read serial flow USB - Serial.ahk

Is it possible to read what communication values the USB-port have on this computer? (eg. COM3 = 19200, N ,8, 1 ) Is it possible to read the name on the COM-port from the device manager? (eg. Arduino Uno (COM3) ) Don't know if I found the latest version of Serial.ahk or Arduino.ahk Is there any docu...
by Albireo
03 Dec 2019, 08:35
Forum: Ask For Help
Topic: Communication between Autohotkey / Arduino
Replies: 12
Views: 730

Re: Communication between Autohotkey / Arduino

This is my test AHK program. (changed from 9,600 to 19,200 bps) 1) It read Arduinon's serial port. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts du...
by Albireo
03 Dec 2019, 03:41
Forum: Ask For Help
Topic: Communication between Autohotkey / Arduino
Replies: 12
Views: 730

Re: Communication between Autohotkey / Arduino

Has a program in the arduino that detects button presses and can read potentiometers. // Armuino --- Funduino Joystick Shield --- // Playlist: https://www.youtube.com/playlist?list=PLRFnGJH1nJiKIpz_ZyaU-uAZOkMH8GAcw // // Part 1. Introduction - Basic Functions: https://www.youtube.com/watch?v=lZPZuB...
by Albireo
02 Dec 2019, 10:38
Forum: Ask For Help
Topic: Communication between Autohotkey / Arduino
Replies: 12
Views: 730

Communication between Autohotkey / Arduino

Is it difficult to communicate between an Arduino and AHK? Have some problems I was going to solve (with an arduino) for example.: - Every night, two wires must be broken and two other wires connected for a while, and then back. Whether arduinon should be standalone or always connected to USB, I hav...
by Albireo
22 Nov 2019, 02:12
Forum: Ask For Help
Topic: Get my ip-address outside the NAT-router Topic is solved
Replies: 2
Views: 246

Get my ip-address outside the NAT-router Topic is solved

My Internet provider is using DHCP. Although I don't often get a new IP address, there is the possibility that it will change over time. One way to find out what IP address I have is to use the website .: What Is My IP Address It shows what IP address I have outside my NAT-router. Is it possible wit...
by Albireo
13 Nov 2019, 06:31
Forum: Ask For Help
Topic: Manipulate a Date Topic is solved
Replies: 2
Views: 214

Re: Manipulate a Date Topic is solved

Thank you!
by Albireo
12 Nov 2019, 17:50
Forum: Ask For Help
Topic: Manipulate a Date Topic is solved
Replies: 2
Views: 214

Manipulate a Date Topic is solved

I have a date and time sequence similar to this one .: 191112230125 with this format .: YYMMDDHHMMSS I want to change the date to the day before eg. 191101230125 to 191031230125 I've tried this (but it doesn't work) Time1 = 191112230125 Time2 := SubStr(A_Now, 1, 2) SubStr(Time1, 1, 6) ; 20191112 Env...
by Albireo
12 Nov 2019, 14:42
Forum: Ask For Help
Topic: Is Autohotkey and Win CE 5.0/6.0 a possible combination
Replies: 10
Views: 772

Re: Is Autohotkey and Win CE 5.0/6.0 a possible combination

Have started to testing different GUI functions (exciting)
But lacks a AHK-manual.
Which AHK version can this program be compared to?

Go to advanced search