
tresa
Active Members-
Posts
96 -
Joined
-
Last visited
Everything posted by tresa
-
Simple Script To Launch Games To My Preference
tresa replied to Demond's topic in AutoIt General Help and Support
take a look in the help file to 1 send 2 sleep 3 run -
Hello When your in your main loop you do a GUIgetMsg to know where you're acting. Then in the AddHouseGUIPart you also make a loop. I think you're stuck in it. I think it's better to have a param in the AddHouseGUIPart Func like AddHouseGUIPart($place) and in the AddHouseGUIPart Func do the action with testing the $Place value like this in Board.au3 while 1 ... Case $msg = $AddHouseButton AddHouseGUIPart($currentPlayerPos) ... wend in AI.au3 ... Func AddHouseGUIPart($place) _Addhouse(1,$place) Return 1 EndFunc
-
Compiled (exe) more slow than .au3?
tresa replied to Michel Claveau's topic in AutoIt General Help and Support
If speed is the issue is it possible to change your code to #NoTrayIcon AutoItSetOption("WinTitleMatchMode", 3) $handle=ControlGetHandle("called", "",3) If @error Then MsgBox(4096, "Error", "Ne trouve pas le contrôle") Exit Endif $text="Azertyuio Azertyuio Azertyuio Azertyuio Azertyuio Azertyuio Azertyuio " $begin = TimerInit() For $i=1 to 1000 $result=ControlSetText("called","",$handle,String($i) & $text & String($i),0) If $result=0 Then MsgBox(4096, "Error", "Ne trouve pas le contrôle") ExitLoop EndIf Next $dif=TimerDiff($begin) MsgBox(0,"Temps",$dif) -
can you give the code of the loop. I do'nt understand why you use controlsettext as I thought you wanted to send from your app some info to autoit That was why I talked about controlgettext to retrieve info from your app
-
Help on how to select from ComboBox
tresa replied to coucou's topic in AutoIt General Help and Support
and with ? WinWait("setup") ControlSend ( "setup", "", 1001, "f{ENTER}" ) -
did you try in a while loop to check for a value in a control in the app with ControlGetText if a specific value is in then do the action you want in autoit
-
Help on how to select from ComboBox
tresa replied to coucou's topic in AutoIt General Help and Support
did you try WinWait("setup") ControlSend ( "setup", "", 1001, "F" ) coucou is not the rigth word to use in the autoit forum as in french it means a bird which put his egg in another bird nest. When the coucou is born it pulls out the other eggs which are in the nest, just to be the sole bird fed by the parents. -
the WinGetClientSize returns 0 if the window is'nt found. With 0 the array dos'nt exists anymore so AutoIt says there cannot be a subscript. To avoid this test the @error to 0 and do the if only in this case. If @error<>0 you have to write what you'll do $A = WinGetClientSize( "Magic Online V2") if @error=0 then If $A[0] <> 1024 Or $A[1] <> 721 Then .... EndIf else ... EndIf
-
Talking like that will not help you getting help sad to meet you
-
take a look at speedLinks soft by didier Urban (in french) to add custom menu entries to rigth clic menu in desktop and std open/save dialogs http://www.boerbull.com/
-
take a look at speedLinks soft by didier Urban (in french) to add custom menu entries to rigth clic menu in desktop and std open/save dialogs http://www.boerbull.com/
-
Thank you both for your answer for jpm : During the day, better open the shutters than ligth a candle
-
jpm, Comment as-tu fait pour faire la miniature dans ton post? Sinon je vois que tu es un des pionnier du forum. Bravo ! How did you realise the little picture in your Post? Are you one of the AutoIt Forum parents? thx !
-
change the line If $Pos[0] =>314 then $y = $pos[0]*2 to If $Pos[0] >=314 then $y = $pos[0]*2 Also do it in the line: If $Pos[0] =>314 then $x = $pos[0]*2 BTW your test includes 314 twice : What do you want if the value equals 314 exactly *2 or /2 or nothing?
-
I was talking about the real monopoly rules ! A few suggestions In your Board.au3 I would have put the _choosegamepieces() outside the main loop as it is an init task. I would make a kind of Monopoly.au3 with the main program, like _initBoard() _choosegamepieces() while 1 ..... wend For the places on the board I would make a two dimension array with first dimension of 40 (number of spaces) and the second dimension to put left coordinate of space top right bottom xPos of Owner >>> the pos of the picture on the blue board yPos of Owner xPos of player 1 >>> where to put the player after dicing yPos of plater 1 .... xPos of player 4 >>> if 4 is the max number of players yPos of plater 4 price to buy price of house price of hotel number of houses >>> (if 4 is max num then 5 is hotel) actionFuncName >>> if a special action is to be done when arriving (buyOrPayRent,chance, tax, ...) mortgageDone then write funcs to calculate the entries in the second dimension that relies on the left top right bottom coordinates (they vary/side on the board) do funcs to set the other values and to get them
-
With that, you may be able to inform of the change in the value eg change color or size or border of the picture when the player has the whole set of a color set of places (which makes the price of renting higher). For the railway stations it will be nice to do the same kind of thing (with the player picture or the engine picture) to show the higher cost of them the more railway stations the player has. Same with waterworks. On the right side of the screen it would be nice to show several financial thermometers to show how many bucks the players have, the loans amount, the cumulative value of their real estate properties (for the total and mortgage possible value?). On a network version have the possibility to see other players situation or not via an option. I have'nt thought yet for the auction play when a player has to sell some property. This would be interesting with a network version of monopoly When the player move (also for the computer), make the picture move with a small speed with a noise (motor or sidewalks - best-or...), so that you can realise what's happening
-
take a look at HotKeySet This hotkey will throw your action and return to the loop waiting for another action
-
Would'nt it be nice, rather than have a property GUI for both players, to put a picture of the gamePiece of the player who bought a place on the blue carpet, on top of each bought places ?
-
Counter strike script for internet cafe
tresa replied to lm1's topic in AutoIt General Help and Support
-
Counter strike script for internet cafe
tresa replied to lm1's topic in AutoIt General Help and Support
-
Counter strike script for internet cafe
tresa replied to lm1's topic in AutoIt General Help and Support
-
Counter strike script for internet cafe
tresa replied to lm1's topic in AutoIt General Help and Support
Without knowing if this is the issue, I found that your waiting loop is dangerous : ... Do ;Checks dummy.txt for file attribute - Waits until not read only (Otherwise, someone launching steam at the same time may end up with the same license $attrib = FileGetAttrib("z:\valve\licenses\dummy.txt") sleep(200) Until Not StringInStr($attrib, "R") ... -
Counter strike script for internet cafe
tresa replied to lm1's topic in AutoIt General Help and Support
what means your test $search1 = FileFindFirstFile("D:\Valve\Steam\lmsteamclient??");Searches for dummy license file locally If $search1=0 Then .... if the search is succesfull $search1 is a handle<>0 And the other kind of test after filefindfirstfile is @error=1 (in the help file) -
to debug put a consolewrite statement just before controlsend to check $sRanText value Otherwise, controlsend wait for a window title not an handle?And you do'nt specify a controlName
-
The issue is that he is using after a send cmd which takes only the first char of the word Excuse it's not true. I thought about hoykeyset Otherwise, what do you mean with 'Always one way to find out.'?