Jump to content

Compiling as 64bit Exe (Ctrl key oddity)


Go to solution Solved by ioa747,

Recommended Posts

Hi All,

Odd issue I haven't noticed before. Using the below code and compiling as 64-bit exe leaves the Ctrl key in the down state. Pressing Ctrl+m successfully sends keys to the active window but then the ctrl key doesn't get let up and it's acting as a multi select feature while clicking on icons one at a time on the desktop.

 

HotKeySet("^m", "SendKeysReceived")

While 1
    Sleep(100)
WEnd

Func SendKeysReceived()
    Send("KeysReceived")
EndFunc

 

It doesn't have the same effect compiling as a 32-bit exe.

Edited by NassauSky
Changed title to not specify it being a bug
Link to comment
Share on other sites

  • NassauSky changed the title to Compiling as 64bit Exe (Ctrl key oddity)

For me this is broken also in x86 executable applications. I used this script to confirm that CTRL key get stuck.

#include <Misc.au3>

HotKeySet("^m", "SendKeysReceived")

While 1
    If _IsPressed('11') Then ConsoleWrite('Ctrl Key is down.' & @CRLF)
    Sleep(100)
WEnd

Func SendKeysReceived()
    Send("KeysReceived")
EndFunc

 

When the words fail... music speaks.

Link to comment
Share on other sites

@Andreik can you point me in the right direction as how you compile it as a CUI?   You're not saying to create a gui  in the app with an element to display the console. I'm thinking you might mean another easier or universal method. The CUI forum posts are all over the place.

Link to comment
Share on other sites

Thanks @Andreik, I tried Ctrl+F7 previously but it just compiles to an exe without opening a dialog.  I am going to try to install the full version of Scite to test that since. I didn't like the full scite since it changes the theme. It disables line numbers, sets up vertical split for console  (simple fixes) but it messes up my theme and I can't find a duplicate to the original autoit scite theme.

😕

Link to comment
Share on other sites

Thanks @Andreik 

The Scite Lite packaged with the latest version didn't have that added feature. I had to install the full version.

After installing the full Scite, I got it to work in a command console as an .exe.

 

At first I couldn't figure out how it worked when I compiled it as A3X since I just started testing A3X to stop the annoying antivirus flagging every time I make little changes to my apps. It looks like it doesn't work if I choose CUI and run it as an a3x:

"C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "TestCUI.a3x"

 

Thanks again though!

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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