Thanks.
How to call AutoitX3 dll from batch file?
#1
Posted 20 November 2010 - 09:16 PM
Thanks.
#2
Posted 20 November 2010 - 11:42 PM
You could instead consider converting your batch file to an AutoIt script and then just call the functions directly.
#3
Posted 21 November 2010 - 01:11 PM
rundll32.exe AutoItX3.dll,BatchCall CDTray,D:,open
...or whatever the syntax is.
Make a feature request if you are really interested.
eMyvnE
#4
Posted 21 November 2010 - 03:27 PM
http://www.softpedia.com/get/Programming/Other-Programming-Files/CallDLL-OL.shtml
#5
Posted 21 November 2010 - 05:24 PM
#6
Posted 21 November 2010 - 05:56 PM
Simple, I just wanted to know whether I can call AutoitX3 dll from a batch file.Probably. What is it you are trying to do anyway?
I can write simple autoit script already. But now this is a crazy idea of me whether its possible
to do it in a batch file using AutoitX3 dll file.
Once awhile, people come up with crazy ideas and I'm one of them.
Edited by CyberMax, 21 November 2010 - 05:56 PM.
#7
Posted 21 November 2010 - 08:58 PM
That only explains what you are trying to do, not what you are trying to accomplish!Simple, I just wanted to know whether I can call AutoitX3 dll from a batch file.
I can write simple autoit script already. But now this is a crazy idea of me whether its possible
to do it in a batch file using AutoitX3 dll file.![]()
Once awhile, people come up with crazy ideas and I'm one of them.
Why would you want a wrapper for autoitx3.dll when you have autoit3.exe?
Jos
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#8
Posted 22 November 2010 - 04:51 PM
That only explains what you are trying to do, not what you are trying to accomplish!
Why would you want a wrapper for autoitx3.dll when you have autoit3.exe?
Jos
This is just the beginning, I'm trying to read an ini file by using autoitx3.dll in
a batch file. The reason is simple, since I already know its easy to use autoit to do
it but now I want to use autoitx3.dll in a batch file to do the same thing.I read in
autox future, someone already created a autoit dll wrapper for delphi, so why not create a autoit dll wrapper to be
use in a batch file, and if its really possible to do it?
Edited by CyberMax, 22 November 2010 - 04:53 PM.
#9
Posted 22 November 2010 - 05:03 PM
#10
Posted 23 November 2010 - 01:41 AM
Batch files do have variables.Even if you read the value, what would you do with it? Batch files don't have things like variables.
How to ask questions the smart way!
Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.
Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.
_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.
GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.
#11
Posted 23 November 2010 - 05:18 AM
You're trying to hammer a nail with a Twinkie. Just stop. Reconsider your purpose and choose a more suitable tool.
#12
Posted 23 November 2010 - 03:18 PM
How? All I knew about were environment variables (which are not batch variables and would be problematic in scope) and parameters (which are not assignable).Batch files do have variables.
#13
Posted 23 November 2010 - 04:25 PM
set _var=value echo %_var%
In reality it is an environment variable, but it is in local scope to the script. So you just have to be careful how you name your variables that they don't collide with the existing environment.
#14
Posted 23 November 2010 - 05:47 PM
#15
Posted 23 November 2010 - 05:55 PM
#16
Posted 23 November 2010 - 08:44 PM
That I would agree with. He's basically trying to use a hammer when a screwdriver is needed.But I hope you agree with me that trying to call IniRead and store it in a batch "variable" is senseless when AutoIt is made for things like that.
How to ask questions the smart way!
Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.
Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.
_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.
GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users






