Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 19:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



help with autoit scripting

Discussion on help with autoit scripting within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
emmanication's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 175
Received Thanks: 254
help with autoit scripting

FileMove("I want to input my own folder location using a input box but how?")

basically i want an input box of a location then it would string to the filemove location pls help me

sry bad english im sleepy
emmanication is offline  
Old 01/13/2008, 19:22   #2
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
Well I've never been all hyped up about file functions, or input boxes -.-

What is the use for? Maybe I can think of a different way to fix the problem using a different code?
swords is offline  
Old 01/13/2008, 22:24   #3
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
Please explain in more detail. What do you mean by stringing the input box's input to the filemove location??

I can definatelly help you out with this one though.

Hiyoal
Hiyoal is offline  
Old 01/14/2008, 03:42   #4
 
emmanication's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 175
Received Thanks: 254
lets say i want to rename a file in a folder and i want an input box to represent the location of the folder.

input box = location of the folder
emmanication is offline  
Old 01/14/2008, 03:56   #5
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
Ok...So you basically you could type in c:\newfolderforme and it would create a new folder?? Or... The input box displays the path??

Give me some code to explain your concept. Im still not quite sure what you are getting at.

Hiyoal
Hiyoal is offline  
Old 01/14/2008, 07:58   #6
 
emmanication's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 175
Received Thanks: 254
$file = GUICtrlCreateInput ( "Input location of conquer here", 10, 5, 300, 20)
FileMove("$file\3DEffect.ini", "$file\3DEffect.ini", 1)

$file
= suppose to be the location of the conquer folder XD
emmanication is offline  
Old 01/14/2008, 08:52   #7
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
O ok. I get what your saying now but your coding is wrong.

Try This

$file = GUICtrlCreateInput("Input location of conquer here",10,5,300,20)

$file=GUICtrlRead() ;this gets the actual input of what was typed, doesnt return in a number

FileMove($file & "ini3DEffect.ini",$file & "3DEffect.ini") ;Copies 3DEffect.ini from Conquer2.0ini folder into Conquer2.0 folder

Hope that helps you...

Hiyoal
Hiyoal is offline  
Old 01/14/2008, 10:46   #8
 
emmanication's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 175
Received Thanks: 254
#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 72,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$file1 = GuiCtrlCreateInput("Conquer Online Folder", 10, 10, 370, 20)
$Button_1 = GuiCtrlCreateButton("Remove 3DEffects", 10, 40, 100, 20)
$file2 = GUICtrlRead($file1)

GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button_1
FileMove($file2 & "3DEffect.ini",$file2 & "_3DEffect.ini", 9)
MsgBox(0,"","Effects Removed")
Case Else
;;;
EndSelect
WEnd
Exit


dont seem to work for me
emmanication is offline  
Old 01/14/2008, 11:16   #9
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
Heres your problem:

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 72,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$file1 = GuiCtrlCreateInput("Conquer Online Folder", 10, 10, 370, 20)
$Button_1 = GuiCtrlCreateButton("Remove 3DEffects", 10, 40, 100, 20)
$file2 = GUICtrlRead($file1) ;THIS SHOULD BE IN CASE $msg = $Button_1 SO THAT IT CHECKS AFTER YOU HAVE INPUTED SOMETHING

GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button_1
FileMove($file2 & "3DEffect.ini",$file2 & "_3DEffect.ini", 9)
MsgBox(0,"","Effects Removed")
Case Else
;;;
EndSelect
WEnd
Exit ;YOU DONT NEED THIS


Make it look like this:

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 72,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$file1 = GuiCtrlCreateInput("Conquer Online Folder", 10, 10, 370, 20)
$Button_1 = GuiCtrlCreateButton("Remove 3DEffects", 10, 40, 100, 20)


GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button_1
$file2 = GUICtrlRead($file1)
Filemove($file2 & "3DEffect.ini",$file2 & "_3DEffect.ini", 9)
MsgBox(0,"","Effects Removed")
Case Else
;;;
EndSelect
WEnd
Hiyoal is offline  
Reply


Similar Threads Similar Threads
AutoIt ~!*Creation/Scripting/Advice*!~
12/23/2007 - Tutorials - 1 Replies
People recommended I try AutoIt for to try and create my own programs. For a few days I was lookin at the program, messing around with the "Help Me" scripts that comes with the program, they arnt very detailed and not very great but they are giving me a little bit of a understanding of what the coding lookings like or how it works. BUT its not really all together, its all bits and pieces if anything. What im curius about is ... IS there anyone who has simple programs or scripts made with AutoIt...
HELP! I need help scripting
02/06/2007 - Conquer Online 2 - 1 Replies
OK, I want to know how u ppl do it! I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply!
I need help scripting
09/05/2006 - General Coding - 0 Replies
Ok I am tired of leeching I am ready to try my hand at scripting but I dont know where to start and I was wondering if someone could help me get started or tell me a website that can help me learn so I can make my own hacks and contribute to the epvp community that we all love :D
scripting
08/10/2006 - Conquer Online 2 - 1 Replies
hey can any1 tell me how to script e.g. change ur lvl ect



All times are GMT +1. The time now is 19:01.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.