Darkx Posted January 22, 2024 Posted January 22, 2024 I have a simple code, when run in the editor all work, but when builded it does not work. The $hWnd when works contains 0x000408D8, and the $inputS gets a value. When builded to an executable the handle is 0x00000000000408D8 and the $inputS is empty. #include <MsgBoxConstants.au3> #include <GUIListView.au3> Local $teller = -1 Local $SearchType = "CX-" ;$CmdLine[1] Local $hWnd = ControlGetHandle("TwinCAT Static Routes","","SysListView321") Local $inputS = _GUICtrlListView_GetItemTextString($hWnd, 0) ;$teller is de regel MsgBox($MB_SYSTEMMODAL, "info", $hWnd) MsgBox($MB_SYSTEMMODAL, "info", $inputS)
Developers Jos Posted January 22, 2024 Developers Posted January 22, 2024 Are you running with x86 and compiling with x64? 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.
Darkx Posted January 22, 2024 Author Posted January 22, 2024 I installed the x86 version for compatibility.
Solution Nine Posted January 22, 2024 Solution Posted January 22, 2024 (edited) Although both versions (x86 and x64) are installed. You can decide to run/compile in either version afterwards. Look at your current handle (when compiled) and you can see it is a 64bits handle. Follow next instructions to compile x86 : Open Scite, open your script, go to menu ==> Tools/Compile. Make sure you only check x86 version checkbox. Click compile button. Now, open DOS window (or File Explorer) and run your script.exe. Edited January 22, 2024 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Darkx Posted January 22, 2024 Author Posted January 22, 2024 tried compiling before but it did not work, AV was also complaining about a virus. Now it works, very strange. I did not get an option when compiling, maybe that only for an 64bit installment? But now understand the possible cause of the extra zero's.
Nine Posted January 22, 2024 Posted January 22, 2024 You will need to whitelist your script folders and AutoIt directory from the AV scan. When installing AutoIt, you get the lite version of Scite. Make sure you get the full version of Scite here. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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