apache Posted March 29, 2009 Posted March 29, 2009 hi there, please help me im building a gui. i want to open help. The help file is in the same folder where my gui is placed. i want to use "if then else" option. i have written this If ProcessExists("helpwin.exe") Then MsgBox(4096,"", "file already open.") Else $file = FileOpen("@AutoItExe\helpwin.exe", 0) EndIf -----THE FIRST STATEMENT WORKS PROPERLY If ProcessExists("helpwin.exe") Then MsgBox(4096,"", "already open.") -----BUT THIS ONE DO NOT OPEN HELPWIN.EXE Else $file = FileOpen("@AutoItExe\helpwin.exe", 0) EndIf Please tell me how i can do this...its urgent any example? or suggestion?
CodyBarrett Posted March 29, 2009 Posted March 29, 2009 if im not mistaken (often am) but Fileopen() opens txt files.. am i right? not exes [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size]
apache Posted March 29, 2009 Author Posted March 29, 2009 let me try run command.... Cody i think that .txt is just for exampe, i should open any file
maqleod Posted March 29, 2009 Posted March 29, 2009 (edited) let me try run command....Cody i think that .txt is just for exampe, i should open any filefileopen does not just open any file, it is specifically for modification of files for use in other functions (filewrite(), filewriteline(), etc).You want Run() or ShellExecute() if you are going to be executing files. Edited March 29, 2009 by maqleod [u]You can download my projects at:[/u] Pulsar Software
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