horohoro Posted November 13, 2010 Share Posted November 13, 2010 ; Please i need help i dont know how to concatenate the string inside this code:$wtitle = "poker table " & Chr(34) & "Nofia"WinActivate("[REGEXPTITLE:$wtitle]") ; I want to activate the window using a portion of the title with [REGEXPTITLE]; The window name is: Connected to poker table "Nofia - No'limit" ; So i have to use Chr() function to convert that '"' because it will return an error at compilation if ; i will use quotes directly; The problem is that it doesent activate the window, i dont think he can read the variable $wtitle inside REGEXPTITLE quotes. How should i concatenate the REGEXPTITLE to read my variable?; Sorry all for my very very bad english Link to comment Share on other sites More sharing options...
Varian Posted November 13, 2010 Share Posted November 13, 2010 (edited) Try:$wtitle = "poker table " & Chr(34) & "Nofia" WinActivate("[REGEXPTITLE:" & $wtitle & "]")or$wtitle = "[REGEXPTITLE:poker table " & Chr(34) & "Nofia]" WinActivate($wtitle)Either way should work Edited November 13, 2010 by Varian Link to comment Share on other sites More sharing options...
Realm Posted November 13, 2010 Share Posted November 13, 2010 (edited) horohoro,First, Welcome to AutoIt Forums.The Reason, no body has helped so far is for this reason here.You should also read this before deciding if you really want to write such a script.RealmEdit: Well someone helped, either out of kindness, or they did'nt realize that your trying to write a poker bot. Edited November 13, 2010 by Realm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
Varian Posted November 13, 2010 Share Posted November 13, 2010 Edit: Well someone helped, either out of kindness, or they did'nt realize that your trying to write a poker bot.It was the latter...I won't make that a habit. Link to comment Share on other sites More sharing options...
horohoro Posted November 14, 2010 Author Share Posted November 14, 2010 (edited) No, i dont try to make a bot because i dont know how to make one and i play very profitable on high-stakes tables and of course its illegal and you will be catched at a time. I just want to make a gui wich will show me all the poker tables opened and with a button to activate the specified table using its selected index . Thank you very much Varian , your code was good. Edited November 14, 2010 by horohoro Link to comment Share on other sites More sharing options...
Realm Posted November 14, 2010 Share Posted November 14, 2010 (edited) no, i dont try to make a botRegardless if it is a bot or not, in this Link it says 'Do not discuss automating games here'. and if you read on, it basically's says 'No If's, And's, or But's'. I just want to make a gui wich will show me all the poker tables opened and with the option to activate the specified table.Are you seriously trying to pass that off? I have never seen a poker site that does not already have that built into their website. Edited November 14, 2010 by Realm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
horohoro Posted November 14, 2010 Author Share Posted November 14, 2010 Yes of course i can do that switching from the windows toolbar but i prefer to add this option to my script. If you're so interested about my projects i could tell you that i want to cr a script similar to PokerTracker and without the help of 'Varian' i did not know how to make reference to the tables titles. In my opinion it is good to not blame the world of such things when reading a phrase which has several meanings. Link to comment Share on other sites More sharing options...
horohoro Posted November 14, 2010 Author Share Posted November 14, 2010 (edited) Yes of course i can do that switching from the windows toolbar but i prefer to add this option to my script. If you're so interested about my projects i could tell you that i want to cr a software similar to PokerTracker and without the help of 'Varian' i did not know how to make reference to the tables titles. In my opinion it is good to not blame the world of such things when reading a phrase which has several meanings (positive and negative). Sorry for double posting Edited November 14, 2010 by horohoro 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