Kip Posted August 14, 2007 Share Posted August 14, 2007 (edited) hi, This is a piece of the script from vai, but there is a problem: the button ($Button_Pos[uBound($Button_Pos)-1]) has the same coordinates as the picture ($ObjectLayerGIF[uBound($ObjectLayerGIF)-1]), but the pic is always created at the right top corner, also when the button is placed somewhere else. $Width and $Height stay the same but $X and $Y not is this a bug, or... ? thnx, Kip -Problem Solved- Edited August 14, 2007 by kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted August 14, 2007 Author Share Posted August 14, 2007 someone, please? MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 14, 2007 Share Posted August 14, 2007 someone, please? Post a 'reproducer' -- a short script that only reproduces the symptoms. The code you posted is incomplete and cannot be executed as is. Don't post a long script without stripping out irrelevant parts that have nothing to do with the part you are interested in for this topic. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Kip Posted August 14, 2007 Author Share Posted August 14, 2007 (edited) ok, unzip it > run Vai > File > New Project > Script + Form > Objects + > Button > draw a button somewhere. -Source Removed- Edited August 14, 2007 by kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted August 14, 2007 Author Share Posted August 14, 2007 (edited) I did a test: MsgBox(0,"dd",$X&","&$Y&","&$Width&","&$Height) ReDim $Button_ID[UBound($Button_ID)+1] $Button_ID[UBound($Button_ID)-1] = GUICtrlCreateButton("Button"&UBound($Button_ID)-1,$X,$Y,$Width,$Height) MsgBox(0,"dd",$X&","&$Y&","&$Width&","&$Height) I created a button, and the first messagebox said: 16,16,134,21 the second messagebox said: 306,0,134,21 Edited August 14, 2007 by kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Kip Posted August 14, 2007 Author Share Posted August 14, 2007 Ok, guys. its solved now. I have deleted the source and picture to keep it a surprise MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. 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