Sign in to follow this  
Followers 0
michcio

Run - function question

15 posts in this topic

#1 ·  Posted (edited)

hi!

when I try to run "FitCD" throug the run function in AutoIt it works fine when I write run("FitCD.exe") and put my .au3 file in the directory where I got my FitCD.exe. But now... if I put my .au3 file somewhere else and write run("FitCD", directory) it won't works :) why?? please help

cheers

michcio

Edited by michcio

Share this post


Link to post
Share on other sites



hi!

when I try to run "FitCD" throug the run function in AutoIt it works fine when I write run("FitCD.exe") and put my .au3 file in the directory where I got my FitCD.exe. But now... if I put my .au3 file somewhere else and write run("FitCD", directory) it won't works :) why?? please help

cheers

michcio

Can you post the actual code you use for your Run statement?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

here it is sry:

Run("FitCD.exe","D:\DVD-making Program")

Share this post


Link to post
Share on other sites

here it is sry:

Run("FitCD.exe","D:\DVD-making Program")

I think it is because you need to give the full path to the exe because when you ask windows to run FitCD.exe it will search the current folder and the folders in the PATHS environmental variable etc but it won't look in D:\DVD-making Program. So you need to say this

Run("D:\DVD-making Program\FitCD.exe","D:\DVD-making Program")

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

ah yes! it works fine now =) thanks...I thought that when writing the "dir" it will search in that folder ... but yeah full shortcut =)

thank you!! :)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Hi there,

Are you sure that FitCD.exe is in D:\DVD-making Program?

Try:

ShellExecute ( "FitCD.exe" , "" , "D:\DVD-making Program")

Cheers

Edited by November

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

yes I'm sure, but shall I not write like martin said? or do you mean that it should work without the shortcut in the "title"-field?

the shellexecute command works perfectly as well btw

Edited by michcio

Share this post


Link to post
Share on other sites

yes I'm sure, but shall I not write like martin said? or do you mean that it should work without the shortcut in the "title"-field?

the shellexecute command works perfectly as well btw

When i posted you and Martin posted too o:)

Pick the one is suitable for you...

Remember the best script is the one that works :);)

Cheers :)


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

haha yes I'll..thanks!:) ... but I got one more question now :) :

now when I have opened my FitCD I want to select a RadioButton in that program. how do I do .. can't find anything about selecting radiobuttons in the tutorial o:)

regards

Share this post


Link to post
Share on other sites

haha yes I'll..thanks!:) ... but I got one more question now :) :

now when I have opened my FitCD I want to select a RadioButton in that program. how do I do .. can't find anything about selecting radiobuttons in the tutorial o:)

regards

Try ControlCommand

And use AU3Info from SciTe to get control's discription

Cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

so you mean like this then?:

ControlCommand("FitCD v1.2.8", "PAL", "TCheckBox6", "Check", "")

it doesn't work :) why?

cheers

Share this post


Link to post
Share on other sites

so you mean like this then?:

ControlCommand("FitCD v1.2.8", "PAL", "TCheckBox6", "Check", "")

it doesn't work :) why?

cheers

Hi again,

Check the window description (Fitcd v.1.2.8), the rest of the command sounds good.

Cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Hi again,

Check the window description (Fitcd v.1.2.8), the rest of the command sounds good.

Cheers

thank you for answering again :)

hm but that's what Window Info is showing me under Basic Window Info -> titel

isn't that what I should write in the title argument ?

I have seen the example with notepad where they write : ControlCommand("[CLASS:Notepad]", "", "Edit1", "GetLineCount", "")

so I thought maybe to take the class instead and I wrote: ControlCommand("[CLASS:TMainForm]", "PAL", "TCheckBox6", "Check", "")... but it still doesn't work :)

ah!!!

when adding this to my code it works perfectly:

WinWait("FitCD v1.2.8")

ControlCommand("FitCD v1.2.8","PAL", "TCheckBox6", "Check", "")

Edited by michcio

Share this post


Link to post
Share on other sites

Solved then?

:)


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

Solved then?

o:)

yes :);)

thank you! :)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0