Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 10:41

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

Advertisement



autoit question

Discussion on autoit question within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2008
Posts: 455
Received Thanks: 85
autoit question

hiho.

Code:
	  Case $msg = $selectpath
		 $spath = FileSelectFolder("Choose a folder.", "")
		 If $spath <> "No log-folder selected." And $spath <> "" Then 
			If $spath <> "*:\" Then
			   GUICtrlSetData($tpath, $spath & "\")
			Else
			   GUICtrlSetData($tpath, $spath)
			EndIf
		 Else 
			GUICtrlSetData($tpath, "No log-folder selected.")
		 EndIf
it actually works. it only has the problem that it adds a "\" when im on "C:\"
or "D:\", so i have "C:\\" selected.. is there any way to to make the "*:" filter working?

thanks in advance
schmuselord1 is offline  
Old 11/12/2012, 14:18   #2
 
Achat's Avatar
 
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
Code:
		 $spath = FileSelectFolder("Choose a folder.", "")
		 If $spath <> "No log-folder selected." And $spath <> "" Then
			If $spath <> "*:\" Then
			   GUICtrlSetData($tpath, StringReplace($spath & "\",'\\','\'))
			Else
			   GUICtrlSetData($tpath, $spath)
			EndIf
		 Else
			GUICtrlSetData($tpath, "No log-folder selected.")
		EndIf
Rgds
Achat is offline  
Thanks
1 User
Old 11/12/2012, 14:41   #3
 
elite*gold: 0
Join Date: Nov 2008
Posts: 455
Received Thanks: 85
Quote:
Originally Posted by Achat View Post
Code:
		 $spath = FileSelectFolder("Choose a folder.", "")
		 If $spath <> "No log-folder selected." And $spath <> "" Then
			If $spath <> "*:\" Then
			   GUICtrlSetData($tpath, StringReplace($spath & "\",'\\','\'))
			Else
			   GUICtrlSetData($tpath, $spath)
			EndIf
		 Else
			GUICtrlSetData($tpath, "No log-folder selected.")
		EndIf
Rgds
thanks!

new code:
Code:
		 $spath = FileSelectFolder("Choose a folder.", "")
		 If $spath <> "No log-folder selected." And $spath <> "" Then
			GUICtrlSetData($tpath, StringReplace($spath & "\",'\\','\'))
		 Else
			GUICtrlSetData($tpath, "No log-folder selected.")
		EndIf
but why was $spath == "*:\" , no matter what happened?

btw: is there a difference between " and ' ? their effect should be completely the same.
schmuselord1 is offline  
Old 11/12/2012, 19:44   #4
 
Logtetsch's Avatar
 
elite*gold: 192
Join Date: May 2009
Posts: 2,227
Received Thanks: 3,262
"" = string
'' = character

Example:
"That's a simple string"
'A'
Logtetsch is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Noobquestion: Free Eden Eternal bot/script?
02/27/2012 - General Gaming Discussion - 0 Replies
Hey, I understand you guys dont like noobs..But thught I would give it a try:P Is there any free working leveling bot or script (to make the character attack and heal up automatically) you could use to farm mobs in Eden eternal? Edit: To run to a place filled with mobs and record and attacksequence with and autoclicker doesnt seem to work, nothing happens when you use it in the game?
[NoobQuestion]Lokkfaces :P
12/05/2010 - EO PServer Hosting - 6 Replies
alright done a lookface on a npc before but now when i do it it stays at the 100 guy i been trying alsorts but i dont know why it wont change so i would like it for you all to help :)



All times are GMT +1. The time now is 10:42.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.