michcio Posted November 27, 2008 Share Posted November 27, 2008 (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 November 27, 2008 by michcio Link to comment Share on other sites More sharing options...
martin Posted November 27, 2008 Share Posted November 27, 2008 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 helpcheersmichcioCan 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. Link to comment Share on other sites More sharing options...
michcio Posted November 27, 2008 Author Share Posted November 27, 2008 here it is sry: Run("FitCD.exe","D:\DVD-making Program") Link to comment Share on other sites More sharing options...
martin Posted November 27, 2008 Share Posted November 27, 2008 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. Link to comment Share on other sites More sharing options...
michcio Posted November 27, 2008 Author Share Posted November 27, 2008 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!! Link to comment Share on other sites More sharing options...
November Posted November 27, 2008 Share Posted November 27, 2008 (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 November 27, 2008 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] Link to comment Share on other sites More sharing options...
michcio Posted November 27, 2008 Author Share Posted November 27, 2008 (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 November 27, 2008 by michcio Link to comment Share on other sites More sharing options...
November Posted November 27, 2008 Share Posted November 27, 2008 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 btwWhen i posted you and Martin posted too 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] Link to comment Share on other sites More sharing options...
michcio Posted November 27, 2008 Author Share Posted November 27, 2008 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 regards Link to comment Share on other sites More sharing options...
November Posted November 27, 2008 Share Posted November 27, 2008 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 regardsTry ControlCommand And use AU3Info from SciTe to get control's discriptionCheers 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] Link to comment Share on other sites More sharing options...
michcio Posted November 28, 2008 Author Share Posted November 28, 2008 so you mean like this then?: ControlCommand("FitCD v1.2.8", "PAL", "TCheckBox6", "Check", "") it doesn't work why? cheers Link to comment Share on other sites More sharing options...
November Posted November 29, 2008 Share Posted November 29, 2008 so you mean like this then?:ControlCommand("FitCD v1.2.8", "PAL", "TCheckBox6", "Check", "")it doesn't work why?cheersHi 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] Link to comment Share on other sites More sharing options...
michcio Posted November 29, 2008 Author Share Posted November 29, 2008 (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 November 29, 2008 by michcio Link to comment Share on other sites More sharing options...
November Posted November 29, 2008 Share Posted November 29, 2008 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] Link to comment Share on other sites More sharing options...
michcio Posted November 29, 2008 Author Share Posted November 29, 2008 Solved then?yes thank you! Link to comment Share on other sites More sharing options...
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