Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all 12506 articles
Browse latest View live

need some help with _FFFormOptionselect

$
0
0

I want to sellect "name2" in a list 

<select id="owned_user_list" class="owned_user_list" url="/account/switch">     <option value="@name1"></option>     <option selected="selected" value="@name2"></option>     <option value="Add_new"></option> </select>

this is what I tried:

_FFFormOptionselect("owned_user_list","value","@name2")

Runwait is not working

$
0
0
HI,
 
I trying to copy a file from Host operating system to Guest operating system via VMWare-Workstation. The command prompt appears but disappears in a split of a second. Not sure where am going wrong. Can someone help please?
 
Here is the script that I have written...
 
$VWRunEXEPath = "C:\Program Files (x86)\VMware\VMware Workstation>vmrun.exe"
$GuestUserName = "agovada"
$GuestPwd = "Welcome2world"
$VMXPathOfTheOS = """C:\VMImages\Vista-64\Vista x64.vmx"""
$SourcePathOfVSE = """C:\data\VSE RP4 RTW.zip"""
$TargetPathOfVSE = """C:\builds\rp4.zip"""
 
RunWait(@ComSpec  & " /c " & "'" & $VWRunEXEPath & " -T ws -gu " & $GuestUserName & " -gp " & $GuestPwd & " copyFileFromHostToGuest " & $VMXPathOfTheOS & " " & $SourcePathOfVSE & " " & $TargetPathOfVSE &"'")
 
NOTE : If I execute the command on cmd prompt then it works fine. Here's the actual command : "C:\Program Files (x86)\VMware\VMware Workstation>vmrun.exe" -T ws -gu agovada -gp Welcome2mcafee copyFileFromHostToGuest "C:\VMImages\Vista-64\Vista x64.vmx" "C:\data\VSE RP4 RTW.zip" "C:\test1\rp4.zip"
 
Thanks in advance.

use of classname with winactivate etc how to find one

$
0
0
Want some sendkey with adobe reader and some other programs. Using Winactivate needs class name, tried to use imagename from taskmanager (Acrord32.exe) for adobe reader but not working

How can I find the styles of all the sentences on a Microsoft Word?

Winhttp G+ Button

FileWriteLog $iFlag and more

$
0
0

Hey fellas,

 

First Issue:

I have a script that logs certain things. I have a Terminate (exit) function that should log certain variable summaries into the log file before it exits the script. This works fine.

 

But I cannot for the love of god set it up so the final summary appears at top of the log file even though I use it correctly (checked the forums).

 

I use:

  1. _FileWriteLog($hFile, $Check & " Checks done", 1)

Despite the " 1 ", the log appears as any other log entry --> at the end of the log file.

 

 

Second Issue:
Well it is not really an issue but rather a question. Is _FileWriteLog able to create a log file? Let's say everytime I start my script it would create a file called: "$VariableName date and time.txt". Is there a way to do this?

 

 

Thank you

Word: access to DocumentBeforeSave event

$
0
0

Hi.

I'm running a script that monitors Microsoft Office Word. I need to write some Custom Properties to the document being edited when it is saved. No keyb or mouse hooks, because the document can be saved even using VBA. The only way left is to use the Word event DocumentBeforeSave. How can I register and write code for the event?

I'm still using 3.3.6.1, I would prefer a solution for this AutoIt, but if it not posible and the new version can, you are welcome anyway.

Thanks in advance.

 

 

ControlClick a checkbox inside a listbox

$
0
0

Hello there,

 

I have recently downloaded BOLOPatch v4.00 for Just Cause 2 and decided to make a hotkey application for it so I can use key combinations with my gamepad in Just Cause 2 to activate certain cheats. 

 

The joystick reading is going well, however I have come to a road block. I cannot for the life of me get ControlClick to work on the checkboxes for the cheats!

 

The main problem is that the checkboxes seem to be inside a ListBox element, and I cannot get the controlID of individual items. I tried using AutoIt Window Info and  Winspector Spy, but neither were a help.

 

How can I get it to work? Here is the screen shots and my current code:

 

 

1u1tqcr07vgo0azfg.jpg

AutoIt         
  1. ;#RequireAdmin
  2.  
  3. Local $joy,$coor,$h,$s,$msg
  4. $joy    = _JoyInit()
  5.  
  6. ;___________________________ KOWN COMBOS ____________________________________
  7. ; TRIANGLE + L1 = 24 (Set to detach multi hooks)
  8. ; START + L1 = 144 (Open Steam Window)
  9. ; START + R1 = 160 (Take screen shot [del] )
  10. ; L1 + R1 = 48 (go into slow motion [q] )
  11. ; Select + Start = 192 (close this program)
  12.  
  13. if(WinExists("[CLASS:Just Cause 2]")) Then
  14.     ;Run("C:\Users\Lachee\Desktop\BOLOPatch4.00.exe")
  15.     ;Run("C:\Users\Lachee\Desktop\SLOMOv2.exe")
  16.  
  17.     $lastCode = 0
  18.     while 1
  19.        
  20.         ;Gets the button flag of the buttons from joystick 0 (buttons are index 7)
  21.         $coords = _GetJoy($joy,0)
  22.         $bFlag = $coords[7]
  23.        
  24.         if($bFlag <> $lastCode AND $bFlag <> 0) Then
  25.             ConsoleWrite("Input: " & $bFlag & @CRLF)
  26.  
  27.                 Switch($bFlag)
  28.                 Case 24    
  29.  
  30.                     ConsoleWrite("Output: TRIANGLE + L1 (Multihook Toggle)" & @CRLF)
  31.                    
  32.                     ;This does not seem to work, no matter the coords or the controlID's I stick in!
  33.                     $var = ControlClick("BOLOPatch v4.00","","[CLASS:WindowsForms10.LISTBOX.app.0.378734a; INSTANCE:1]","left",1,8,52)
  34.                     ConsoleWrite("Output: " & $var & @CRLF)
  35.                                        
  36.                 Case 144       
  37.                     ConsoleWrite("Output: START + L1 [Shift+Tab] (steam overlay)" & @CRLF)
  38.                 Case 160       
  39.                     ConsoleWrite("Output: START + R1 [del] (steam screenshot)" & @CRLF)
  40.                 Case 48    
  41.                     ConsoleWrite("Output: R1 + L1 [q] (slow motion)" & @CRLF)
  42.                 EndSwitch
  43.        
  44.                 $lastCode = $bFlag
  45.             EndIf
  46.            
  47.         if($bFlag == 192) Then
  48.             ConsoleWrite("Output: START + SELECT (exit this application)" & @CRLF)
  49.             Exit
  50.         EndIf
  51.  
  52.  
  53.        
  54.     WEnd
  55.  
  56. Else   
  57.     ConsoleWriteError("Just Cause 2 is not running!" & @CRLF)
  58.  
  59. $lpJoy=0 ; Joyclose
  60.  
  61.  
  62. ;======================================
  63. ;   _JoyInit()
  64. ;======================================
  65. Func _JoyInit()
  66.     Local $joy
  67.     Global $JOYINFOEX_struct    = "dword[13]"
  68.     $joy=DllStructCreate($JOYINFOEX_struct)
  69.     DllStructSetData($joy, 1, DllStructGetSize($joy), 1);dwSize = sizeof(struct)
  70.     DllStructSetData($joy, 1, 255, 2)             ;dwFlags = GetAll
  71.     return $joy
  72. ;======================================
  73. ;   _GetJoy($lpJoy,$iJoy)
  74. ;   $lpJoy  Return from _JoyInit()
  75. ;   $iJoy   Joystick # 0-15
  76. ;   Return  Array containing X-Pos, Y-Pos, Z-Pos, R-Pos, U-Pos, V-Pos,POV
  77. ;          Buttons down
  78. ;
  79. ;          *POV This is a digital game pad, not analog joystick
  80. ;          65535   = Not pressed
  81. ;          0       = U
  82. ;          4500 = UR
  83. ;          9000 = R
  84. ;          Goes around clockwise increasing 4500 for each position
  85. ;======================================
  86. Func _GetJoy($lpJoy,$iJoy)
  87.     Local $coor,$ret
  88.     Dim $coor[8]
  89.     DllCall("Winmm.dll","int","joyGetPosEx", _
  90.             "int",$iJoy, _
  91.             "ptr",DllStructGetPtr($lpJoy))
  92.         $coor[0]    = DllStructGetData($lpJoy,1,3)
  93.         $coor[1]    = DllStructGetData($lpJoy,1,4)
  94.         $coor[2]    = DllStructGetData($lpJoy,1,5)
  95.         $coor[3]    = DllStructGetData($lpJoy,1,6)
  96.         $coor[4]    = DllStructGetData($lpJoy,1,7)
  97.         $coor[5]    = DllStructGetData($lpJoy,1,8)
  98.         $coor[6]    = DllStructGetData($lpJoy,1,11)
  99.         $coor[7]    = DllStructGetData($lpJoy,1,9)
  100.     EndIf
  101.     return $coor

VB Coming To AutoIt

$
0
0

Hey guys. So I have pretty good knowledge with VB and some other stuff but I've been working on a project in AutoIt and needed some help. 

 

I'm trying to randomize the endings of an email address so I can have a different email each time my program loops. I'd do something like 

  1. "qazwsxec" & VAR1 + 1 & "@yahoo.com"

Is there any easy way I can add that onto the Send command. If not how can I go about doing this? Thanks in advance.

 

Retrieving Known and Special folders

$
0
0

Hi

I am writing a program for Software installation. I store the information in an INI file which is read at runtime and will contain the programs to run and other file operations like copy and delete. To simplify path usage I want to be able to use references to Special folders, this will be achieved by enclosing the reference in # so it can be found with stringregexp.and example would be

[delete] #Desktop#\SomeRandom.lnk

The script is trimmed down and just returns the full folder path. I have tested on XP 32 bit and 7 64 bit  for me but I was wondering if there could be any improvements made or if there could be any snags. It is intended to run on XP and above.

 

Thanks

AutoIt         
#include <WinAPISys.au3> #include <WinAPIShellEx.au3> #include <APIShellExConstants.au3> #include <WinAPI.au3> #include <Array.au3> Local $sPath = '#RoamingAppData#\runme.lnk' MsgBox(0, '', _ReturnSpecialFolderPath($sPath)) ; #FUNCTION# ==================================================================================================================== ; Name ..........: _ReturnSpecialFolderPath ; Description ...: Return a Special Folders full path dependant on OS version ; Syntax ........: _ReturnSpecialFolderPath($sFolder) ; Parameters ....: $sFolder - A string containing the Special Folder Member name ; Return values .: Success - Returns the full path of the specified Special Folder ;                  Failure - Sets @error to 1 and returns a string for logging ; Example .......: _ReturnSpecialFolderPath('CommonStartMenu') ; =============================================================================================================================== Func _ReturnSpecialFolderPath($sFolder)     If $sFolder = 'Script' Then Return @ScriptDir     $sFolder = _String_GetMemberName($sFolder)     If @error Then Return SetError(1, '', $sFolder)     Local $sFolderPath     ; Windows XP and lower     If _WinAPI_GetVersion() < '6.0' Then         ; Run the XP version of folder finder         $sFolderPath = _XP_GetSpecialFolder($sFolder)     Else ; Windows Vista and higher         ; Run other OS version of folder finder         $sFolderPath = _Win7_GetKnownFolder($sFolder)     EndIf     If @error Then Return SetError(1, 0, $sFolderPath)     Return $sFolderPath EndFunc   ;==>_ReturnSpecialFolderPath ; #FUNCTION# ==================================================================================================================== ; Name ..........: _String_GetMemberName ; Description ...: Retrieves Special Folder Member names from a # enclosed string ; Syntax ........: _String_GetMemberName($sFolderPath) ; Parameters ....: $sFolderPath - A string to check ; Return values .: Success - Returns first matched string ;                  Failure - Sets @error to 1 and returns a string for logging ; Example .......: _String_GetMemberName('#StartMenu#\7-Zip') ; =============================================================================================================================== Func _String_GetMemberName($sFolderPath)     ; get array of matches between the # chars (should be only one)     Local $aArray = StringRegExp($sFolderPath, '\Q#\E(.*?)(?=\Q#\E)', 1)     If Not IsArray($aArray) Then Return SetError(1, 0, 'Unable to retrieve Member name from ' & $sFolderPath)     ; return first found member name     Return $aArray[0] EndFunc ; #FUNCTION# ==================================================================================================================== ; Name ..........: _XP_GetSpecialFolder ; Description ...: Rerieves the full path of a Windows special folder ; Syntax ........: _XP_GetSpecialFolder($sFolder) ; Parameters ....: $sFolder - A string containing the Member name ; Return values .: Success - Returns folders full path ;                  Failure - Sets @error to 1 and returns a string for logging ; Example .......: _XP_GetSpecialFolder('CommonStartMenu') ; =============================================================================================================================== Func _XP_GetSpecialFolder($sFolder)     Local $aConstants[31][2] = [['CommonFavorites', $CSIDL_COMMON_FAVORITES], _ ; %ALLUSERSPROFILE%\Favorites             ['CommonPrograms', $CSIDL_COMMON_PROGRAMS], _ ; %ALLUSERSPROFILE%\Start Menu\Programs             ['CommonStartup', $CSIDL_COMMON_STARTUP], _ ; %ALLUSERSPROFILE%\Start Menu\Programs\Startup             ['CommonStartMenu', $CSIDL_COMMON_STARTMENU], _ ; %ALLUSERSPROFILE%\Start Menu             ['CommonTemplates', $CSIDL_COMMON_TEMPLATES], _ ; %ALLUSERSPROFILE%\Templates             ['Desktop', $CSIDL_DESKTOPDIRECTORY], _ ; %USERPROFILE%\Desktop             ['Documents', $CSIDL_PERSONAL], _ ; %USERPROFILE%\My Documents             ['Favorites', $CSIDL_FAVORITES], _ ; %USERPROFILE%\Favorites             ['Fonts', $CSIDL_FONTS], _ ;    %SystemRoot%\Fonts             ['LocalAppData', $CSIDL_LOCAL_APPDATA], _ ; %USERPROFILE%\Local Settings\Application Data             ['Music', $CSIDL_MYMUSIC], _ ; %USERPROFILE%\My Documents\My Music             ['Pictures', $CSIDL_MYPICTURES], _ ; %USERPROFILE%\My Documents\My Pictures             ['Profile', $CSIDL_PROFILE], _ ; %USERPROFILE%             ['ProgramData', $CSIDL_COMMON_APPDATA], _ ; %ALLUSERSPROFILE%\Application Data             ['ProgramFiles', $CSIDL_PROGRAM_FILES], _ ; %ProgramFiles%             ['ProgramFilesCommon', $CSIDL_PROGRAM_FILES_COMMON], _ ; %ProgramFiles%\Common Files             ['Programs', $CSIDL_PROGRAMS], _ ; %USERPROFILE%\Start Menu\Programs             ['PublicDesktop', $CSIDL_COMMON_DESKTOPDIRECTORY], _ ; %ALLUSERSPROFILE%\Desktop             ['PublicDocuments', $CSIDL_COMMON_DOCUMENTS], _ ; %ALLUSERSPROFILE%\Documents             ['PublicMusic', $CSIDL_COMMON_MUSIC], _ ; %ALLUSERSPROFILE%\Documents\My Music             ['PublicPictures', $CSIDL_COMMON_PICTURES], _ ; %ALLUSERSPROFILE%\Documents\My Pictures             ['PublicVideos', $CSIDL_COMMON_VIDEO], _ ; %ALLUSERSPROFILE%\Documents\My Videos             ['RoamingAppData', $CSIDL_APPDATA], _ ; %APPDATA%             ['SendTo', $CSIDL_SENDTO], _ ; %USERPROFILE%\SendTo             ['StartMenu', $CSIDL_STARTMENU], _ ; %USERPROFILE%\Start Menu             ['Startup', $CSIDL_STARTUP], _ ; %USERPROFILE%\Start Menu\Programs\Startup             ['System', $CSIDL_SYSTEM], _ ; %SystemRoot%\system32             ['Templates', $CSIDL_TEMPLATES], _ ; %USERPROFILE%\Templates             ['Videos', $CSIDL_MYVIDEO], _ ; %USERPROFILE%\My Documents\My Videos             ['Windows', $CSIDL_WINDOWS]] ; %SystemRoot%     ; search the array for the folder name     Local $iIndex = _ArraySearch($aConstants, $sFolder)     If @error Then Return SetError(1, 0, '"' & $sFolder & '" ' & ' is not listed in the Known Folder list')     ; get the special folder path     Local $sRet = _WinAPI_ShellGetSpecialFolderPath($aConstants[$iIndex][1])     If @error Then Return SetError(1, 0, _WinAPI_GetLastErrorMessage())     ; return the folder path     Return $sRet EndFunc   ;==>_XP_GetSpecialFolder ; #FUNCTION# ==================================================================================================================== ; Name ..........: _Win7_GetKnownFolder ; Description ...: Retrieves the full path of a known folder ; Syntax ........: _Win7_GetKnownFolder($sFolder) ; Parameters ....: $sFolder  - A string value denoting the known folder ; Return values .: Success - Returns the full folder path ;                  Failure - Sets @error to 1 and returns a string for logging ; Remarks .......: Only for Windows Vista and above ; Related .......: _XP_GetSpecialFolder (for XP and lower) ; Link ..........: link http://msdn.microsoft.com/en-us/library/dd378457.aspx ; Example .......: _Win7_GetKnownFolder('CommonPrograms') ; =============================================================================================================================== Func _Win7_GetKnownFolder($sFolder)     ; trimmed list of KnownFolder constants     Local $sConstants = 'CommonPrograms|' & _ ;%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs             'CommonStartMenu|' & _ ; %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu             'CommonStartup|' & _ ; %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\StartUp             'CommonTemplates|' & _ ; %ALLUSERSPROFILE%\Microsoft\Windows\Templates             'Desktop|' & _ ; %USERPROFILE%\Desktop             'Documents|' & _ ; %USERPROFILE%\Documents             'DocumentsLibrary|' & _ ; %APPDATA%\Microsoft\Windows\Libraries\Documents.library-ms             'Favorites|' & _ ; %USERPROFILE%\Favorites             'Fonts|' & _ ; %windir%\Fonts             'Libraries|' & _ ; %APPDATA%\Microsoft\Windows\Libraries             'LocalAppData|' & _ ; %LOCALAPPDATA% (%USERPROFILE%\AppData\Local)             'LocalAppDataLow|' & _ ; %USERPROFILE%\AppData\LocalLow             'Music|' & _ ; %USERPROFILE%\Music             'MusicLibrary|' & _ ; %APPDATA%\Microsoft\Windows\Libraries\Music.library-ms             'PhotoAlbums|' & _ ; %USERPROFILE%\Pictures\Slide Shows             'PicturesLibrary|' & _ ; %APPDATA%\Microsoft\Windows\Libraries\Pictures.library-ms             'Pictures|' & _ ; %USERPROFILE%\Pictures             'Playlists|' & _ ; %USERPROFILE%\Music\Playlists             'Profile|' & _ ; %USERPROFILE% (%SystemDrive%\Users\%USERNAME%)             'ProgramData|' & _ ; %ALLUSERSPROFILE% (%ProgramData%, %SystemDrive%\ProgramData)             'ProgramFiles|' & _ ; %ProgramFiles% (%SystemDrive%\Program Files)             'ProgramFilesX64|' & _ ; %ProgramFiles% (%SystemDrive%\Program Files)             'ProgramFilesX86|' & _ ; %ProgramFiles% (%SystemDrive%\Program Files)             'ProgramFilesCommon|' & _ ; %ProgramFiles%\Common Files             'ProgramFilesCommonX64|' & _ ; %ProgramFiles%\Common Files             'ProgramFilesCommonX86|' & _ ; %ProgramFiles%\Common Files             'Programs|' & _ ; %APPDATA%\Microsoft\Windows\Start Menu\Programs             'Public|' & _ ; %PUBLIC% (%SystemDrive%\Users\Public)             'PublicDesktop|' & _ ; %PUBLIC%\Desktop             'PublicDocuments|' & _ ; %PUBLIC%\Documents             'PublicLibraries|' & _ ; %ALLUSERSPROFILE%\Microsoft\Windows\Libraries             'PublicMusic|' & _ ; %PUBLIC%\Music             'PublicPictures|' & _ ; %PUBLIC%\Pictures             'PublicVideos|' & _ ; %PUBLIC%\Videos             'QuickLaunch|' & _ ; %APPDATA%\Microsoft\Internet Explorer\Quick Launch             'ResourceDir|' & _ ; %windir%\Resources             'RoamingAppData|' & _ ; %APPDATA% (%USERPROFILE%\AppData\Roaming)             'SendTo|' & _ ; %APPDATA%\Microsoft\Windows\SendTo             'StartMenu|' & _ ; %APPDATA%\Microsoft\Windows\Start Menu             'Startup|' & _ ; %APPDATA%\Microsoft\Windows\Start Menu\Programs\StartUp             'System|' & _ ; %windir%\system32             'SystemX86|' & _ ; %windir%\system32             'Templates|' & _ ; %APPDATA%\Microsoft\Windows\Templates             'UserPinned|' & _ ; %APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned             'UserProfiles|' & _ ; %SystemDrive%\Users             'UserProgramFiles|' & _ ; %LOCALAPPDATA%\Programs             'UserProgramFilesCommon|' & _ ; %LOCALAPPDATA%\Programs\Common             'Videos|' & _ ; %USERPROFILE%\Videos             'VideosLibrary|' & _ ; %APPDATA%\Microsoft\Windows\Libraries\Videos.library-ms             'Windows' ; %windir%     ; check the passed folder name is listed     If Not _String_SearchForWords('', $sConstants, $sFolder) Then Return SetError(1, 0, '"' & $sFolder & '" ' & ' is not listed in the Known Folder list')     ; return the value of the variable     Local $sGUID = Eval('FOLDERID_' & $sFolder)     ; get the known folder path     Local $sFolderPath = _WinAPI_ShellGetKnownFolderPath($sGUID)     If @error Then Return SetError(1, 0, _WinAPI_GetLastErrorMessage())     Return $sFolderPath EndFunc   ;==>_Win7_GetKnownFolder Func _String_SearchForWords($sCallingFunc, $sTest, $sSearch)     Local $sRunningFunc = '_String_SearchForWords'     Local $sPattern = '(?i)^(?=.*\b' & StringReplace($sSearch, '|', '\b)(?=.*\b') & '\b)'     Local $iLineNumber = 191     Local $iRet = StringRegExp($sTest, $sPattern) ;~  If @error Then Return SetError(_LogError($hLogFile, $sCallingFunc, $iLineNumber, $sRunningFunc, 'StringRegExp', $sTest & '|' & $sSearch & '|' & $sPattern, @error, @extended))     Return $iRet EndFunc   ;==>_String_SearchForWords

How to XOR a String with 0101010101b?

$
0
0

Hi

 

 

I need to take a String, and Toggle every second bit of it.

 

 

What is a simple and clean way to do it in AutoIt?

 

 

The string can a single char, or a whole paragraph...

 

 

Thank you

Need a little help getting started.

$
0
0

I want to write a script to do the following:

 

  1. Launch a partictular website in the default browser
  2. Fill in the username and password
  3. Bring me to a page on that website
  4. Fill in several fields 
  5. Wait for me to fill in a few other fields
  6. Copy and paste one of the fields to an Excel Spreadsheet and to a reply in an email 
  7. Save the form

Any pointers on where to get started would be appreciated.

Matching pictures

$
0
0

Hello,

 

I need a script that will find pictures and match them. It's for a memory game that I click cards and it shows a picture I want to find way to for example click all cards and script will remember where all pictures are and than just match them into a pairs.

 

Thanks in advance

About GUI.

$
0
0

How would I make a GUI with just two checkboxes, where they start different while loops?

Any work around for finding "Variable used without being declared" other than declaring all variables?

$
0
0

I have a script, both .au3 and the compiled version run fine on my computer (Win 7 x64). I tried to use the compiled version on another (Win 7 x64) system and got:

 

Line 1208 (File" C:\script.exe")
Error:
Variable used without being declared

 

Knowing the line number is not much of help when the script is compiled. It could be handy to know the variable too. I know if I declare all the variables in the script the error will go. But is there any way to add some lines to autoit error report so it report the variable too?


_WinAPI_ShellGetFileInfo returns blank ICONLOCATION

$
0
0
I'm trying to use _WinAPI_ShellGetFileInfo to get the name of the file that contains the default icon for a given extension, but it always returns blank. The ConsoleWrite clearly shows that the function call is working though. Am I doing something wrong or does _WinAPI_ShellGetFileInfo just not work for retrieving the ICONLOCATION?
#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #include "WinAPI.au3" #include "WinAPIShellEx.au3" _Main() Func _Main()     Local $t_SHFILEINFO = DllStructCreate($tagSHFILEINFO)     _WinAPI_ShellGetFileInfo(".TXT", BitOR($SHGFI_TYPENAME, $SHGFI_ICONLOCATION, $SHGFI_USEFILEATTRIBUTES), $FILE_ATTRIBUTE_NORMAL, $t_SHFILEINFO)     ConsoleWrite(DllStructGetData($t_SHFILEINFO, 4) & "," & DllStructGetData($t_SHFILEINFO, 2) & @CRLF)     ConsoleWrite(DllStructGetData($t_SHFILEINFO, 5) & @CRLF) EndFunc

Pls help trying to hold down a key ingame :)

$
0
0

So far I got this:

 

WinWaitActive("PlanetSide2.exe")
Send("{CTRLDOWN}")
 
However when I switch to the game it looks like the script doesn't work.  I know it works when I run the exe because I can select files in folders but when I switch it doesn't work...
 
can someone help me please?
 
It can either be left control, delete or numpad 6

Username Log via email?

$
0
0

Hi guys,

 

So im wanting to create something that is a link that gets sent out via email at work (so can use local network) where you click on a link and it puts the person whos clicked on the link's username in an inifile or sometihng like that.. so i have a way to track who has read the email and clicked on the link.

 

Would the easiest way to do this just be to create an autoit script to, edit ini file insert new line with @username, save, close... keep in mind multiple users may try to access this file at the same time..

 

And would that work if i have the autoit file on the local network and just give them the local filepath e.g \\server\filepath\log.exe

 

Just wondering the best way to do it, dont need anything amazing just a very simple log..

Making a auto keyboard press

$
0
0

Hey,

 

I want a script that clicks F5 once every 4 seconds till i say stop

how can i go about this?

 

Cheers

file to array limit?

$
0
0

Hi I try to use fileread() and convert the string to an array ...is there a limit ? or I can put any big size file to an array?

my file is 18MB or larger.

 

the whole point is I just wnt to search for a  unit ID and a faliing test faster  in such a big file..( I will hve more than one unit or a long list of units to search for in the file)

in the file  it has lot of other info between unit id and fail tests . I would like to know if using array to search for a unit is a faster way or would you give me any hint to search faster .

Viewing all 12506 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>