# All Activity

1. Past hour
2. ## [Looking for collaboration] LifeSim - A Life simulator in AutoIT

Up...nobody's interested?
3. ## Run Application

I have 2 applications loading up upon boot of my system and one opens in fullscreen then the other cancels the full screen instead i want to let the one that closes my fullscreen open then my fullscreen one. sleep("10000") run("C:\root\to\app.exe")
4. ## Find all autoit scripts inside a folder and compile them

This is as far as i got, didn't work #include <AutoItConstants.au3> #include <Array.au3> #include <Crypt.au3> #include <File.au3> #include <FileConstants.au3> #include <Misc.au3> #include <MsgBoxConstants.au3> #include <StringConstants.au3> #include <WinAPIFiles.au3> ;#RequireAdmin Opt("MustDeclareVars", 1) #Region "Fields" Global $M_V_Scalar_Object_DebuggingModeIsOn = 1 ;Global$M_V_Scalar_Object_Powershell = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Global $M_V_Scalar_Object_AutoItCompilerPath = "C:\Program Files (x86)\AutoIt3\Aut2Exe" Global$M_V_Scalar_Object_CodeRootDirectory = "C:\U_C\" Global $M_V_Scalar_Object_AutoItCompiledRootDirectory = "A:\U_A\U_W\U_Dpts\U_IT\U_Soft" Global$M_V_Scalar_Object_CompileAu3ToExe = "C:\Program Files (x86)\AutoIt3\Aut2Exe\Aut2exe_x64.exe" #EndRegion #Region "Methods" M_S_Main() Func M_S_Main() Local $L_V_Scalar_Object_SearchRootDirectory = StringLeft($M_V_Scalar_Object_CodeRootDirectory, StringInStr($M_V_Scalar_Object_CodeRootDirectory, "\", Default, -1)) If StringRight($L_V_Scalar_Object_SearchRootDirectory, 5) = "beta\" Then $L_V_Scalar_Object_SearchRootDirectory = StringTrimRight($L_V_Scalar_Object_SearchRootDirectory, 5) EndIf Local $L_V_Scalar_Object_Array = _FileListToArrayRec($L_V_Scalar_Object_SearchRootDirectory, "*.au3", $FLTAR_FILES,$FLTAR_RECUR, $FLTAR_NOSORT,$FLTAR_FULLPATH) For $L_V_Scalar_Object_Array[0] To UBound($L_V_Scalar_Object_Array) -1 Run($M_V_Scalar_Object_CompileAu3ToExe & "/in" &$L_V_Scalar_Object_Array) Next EndFunc #EndRegion

thanks
6. ## Marquee UDF - New release 13 Jan 2019

Hey Melba, Thanks for another useful UDF. I have one small niggly issue. Is there any way of making the gap between scrolls shorter? At the moment, I have to wait for the current text to completely disappear before the new text starts scrolling. Screenshot attached of the gap for looky purposes. The text in question is regarding sending a bug report. I'm pretty confident that this is going to be a rtfm issue and I already feel silly that I can't figure this... Tried playing with params in the With loop in _GUICtrlMarquee_Create() but no luck.
7. ## i cant send shift-f1

Send ("+{F1}")
8. Today

I'm trying to send shift-F1 and its not really working it's only sending F1 #include <Misc.au3> Local $hDLL = DLLOpen("user32.dll") While 1 If _IsPressed("7B";F12_Key$hDLL) Then Send("{LSHIFT}{F1}");Ive tried others like("^{F1}"),(^+{"F1"}), btw they didnt work Sleep("1000") Send("!{F4}");Fhis works fine EndIf WEnd DllClose($hDLL) 10. ## printing without saving from an edit box I suppose you could use the WMI Win32_Printer to list the printers in a GUI combo box, then set this printer as default, using rundll32.exe or use directly the printui.dll. Never tested it but I suppose it is doable. 11. ## Waiting for ERP cell activation @rundak Happy to have helped 12. ## Waiting for ERP cell activation @FrancescoDiMuro I was not aware that exist such tool Thanks for letting me know. It seems to be very useful but I think I found a solution for my problem without sleep() function, using ControlGetText() and ControlGetFocus() functions. Full speed of entering data. For$i = 0 To UBound($aResult) - 1 For$j = 0 To UBound($aResult, 2) - 1 Send("{DELETE}") Send($aResult[$i][$j]) Local $sText = StringReplace(ControlGetText("[ACTIVE]", "", ControlGetFocus("[ACTIVE]")),".","","","") ; Variable which contains current value of cell If$sText <> $aResult[$i][$j] Then ; Checks if data was enterd from array to a cell in ERP system Do$sText = StringReplace(ControlGetText("[ACTIVE]", "", ControlGetFocus("[ACTIVE]")),".","","","") ; In this loop AutoIt Program "waits" for value appearing in ERP system Until $sText =$aResult[$i][$j] EndIf Send ("{TAB}") Next Next FYI: Before AutoIt automation this work took 4 hours. . Now it takes 5 minutes. Thank you for your help.

Thanks! My task is to validate username and password of a desktop application. If username and password are incorrect it should return a message that credentials are wrong. Can you please give me code for this task?
15. ## How to delete complied script from other computer.

An example that that has nothing to do with what you're asking for help with.
16. ## How to delete complied script from other computer.

This is only for example.
17. ## Mouse click without movement?

KDoc, Welcome to the AutoIt forums. If you look at MouseMove in the Help file (which should always be your first port of call) you will see the speed parameter which set to 0 will give you instantaneous movement. M23
18. ## How to delete complied script from other computer.

The links I posted were about putting a serial number on your application, they had less than zero to do with what you are going on about - which you would have known if you had bothered to read them.
19. ## Mouse click without movement?

Hi, I was wondering if there is way to move a mouse to a specific coordinate immediately instead of seeing the mouse actually move there. It takes about a second or so to see the mouse movement to the correct location which slows down the script. Thanks much.

DiYa, What about the code do you find difficult to understand? M23
21. ## Serial Port /COM Port UDF

Hi Alan, Thanks for replay, unfortunately it is not working 😕 I gott parse error ==> Unable to parse line.: $iRet = DllStructGetData($tBinData, 1)? $iRet = DllStructGetData($tBinData, 1)^ ERROR

Hi can you please explain the code?
23. ## _WinAPI_SetKeyboardState error

Thanks man! I don't know how to @ you, but i was wondering if you know what _WinAPI_SetKeyboardState() actually does? I want it to simulate those buttonpresses that were recorded with _WinAPI_GetKeyboardState(), but when i run the code it does nothing. I have checked for errors and any wierd characters in my .macro file i created but still it does nothing. I could not find anything useful online, maybe its not used that often, and i thought i might be using it wrong or making the wrong assumptions about its usage. Please tell me if i can use it to simulate keystrokes
24. ## Using AutoItX from C# / .Net

I'm having 1 issue, using Autoit; IntPtr winhandle = AutoItX.WinGetPos("Google Chrome"); if (AutoItX.PixelGetColor(745 + winhandle[0], winhandle[1] + 55) != 0xFF4DEB) { MessageBox.Show("text", "text"); } I get always error, what I wrong?
25. ## How to delete complied script from other computer.

@jmp - You are not qualified enough in coding to be selling scripts. Give up now and we can all pretend it was a silly dream.

AasimPathan, You do not need to copy anything - the array is internal to the script and so you can loop through it directly. Here is some pseudo-code to show what I mean: Test() Func Test() ; Get the array of files to compile $aArray = _FileListToArrayRec("your parameters here") ; Now loop through them For$aArray[0] To UBound($aArray) - 1 ; ; Code to compile each element - use$aArray[$i] to get the specific file Next EndFunc M23 27. ## Find all autoit scripts inside a folder and compile them Got the$iReturnPath working. Now how do I use the _ArrayDisplay to copy each of the rows in the 2nd Column, paste it in the another function in the same file that will compile the exe? If there are examples, i can work from that but just saying stuff doesn't make any sense to me. Sorry
×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...