Jump to content

Compiling as 64bit Exe (Ctrl key oddity)


Go to solution Solved by ioa747,

Recommended Posts

Posted (edited)

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
  • NassauSky changed the title to Compiling as 64bit Exe (Ctrl key oddity)
Posted

@Andreik Interesting.

 

I tested your code and compiled it to 32-bit exe and the Ctrl key is up after execution.  No problem.  Not sure how you were viewing the consolewrite output after the script was compiled as exe.

Posted

@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.

Posted

In SciTe if you press Ctrl+F7 it will popup a window that ask you how do you want to compile. Somewhere in the bottom there is a checkbox "Create CUI instead of GUI EXE". Check that box and you are done.

Posted

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.

😕

Posted

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!

 

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
  • Recently Browsing   0 members

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