Keystrokes to Windows

BlitzMax Forums/BlitzMax Programming/Keystrokes to Windows

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

okay it works fine with debug on.
But with debug off... I don't get how it can change my variables. Here is a simpler example

Local r=AutoIT_Init()

Delay 1000
WinExec("Notepad.exe",1) 'runs notepad
AUTOIT_WinWaitActive("Untitled","",1000) 'Wait for Notepad window for 1000ms

Local go
Print "go="+go
AUTOIT_Send("a")
Print "go="+go

End


outputs:

Building untitled3
Compiling:untitled3.bmx
flat assembler  version 1.64
3 passes, 4866 bytes.
Linking:untitled3.exe
Executing:untitled3.exe
go=0
go=10688816

Process complete