 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
mcinsane
Joined: 30 May 2008 Posts: 1
|
Posted: Fri May 30, 2008 3:13 am Post subject: GUI Variables not working |
|
|
Hey guys, can anyone plz tell me where im going wrong with my variables for my dropdown lists, in really new to all of this, so im trying really hard to understand it all. But i dont get whats wrong here. Thank you!!!
| Quote: | Gui, Add, Text, x556 y-52 w-400 h92 , Text
Gui, Font, S17 CDefault, Verdana
Gui, Font, S17 CDefault Bold Italic Underline, Verdana
Gui, Add, Text, x26 y10 w160 h40 , SRO Buffer
Gui, Font, S12 CDefault, Verdana
Gui, Font, S12 CDefault Underline, Verdana
Gui, Font, S10 CDefault Underline, Verdana
Gui, Add, DropDownList, x56 y70 w80 h20 Vquick, F1|F2|F3|F4
Gui, Add, Text, x36 y100 w140 h20 , Prim. Weapon Slot
Gui, Add, Text, x26 y50 w150 h20 , Select your Quickbar
Gui, Add, DropDownList, x56 y120 w80 h10 Vprim, 1|2|3|4|5|6|7|8|9|0
Gui, Add, Text, x36 y150 w130 h20 , Sec. Weapon Slot
Gui, Add, DropDownList, x56 y170 w80 h24 Vsec, 1|2|3|4|5|6|7|8|9|0
Gui, Add, Checkbox, x36 y230 w60 h20 , Slot 1
Gui, Add, Text, x36 y200 w120 h20 , Select Buff Slots
Gui, Add, Checkbox, x96 y230 w60 h20 vst2, Slot 2
Gui, Add, Checkbox, x36 y250 w60 h20 vst3, Slot 3
Gui, Add, Checkbox, x36 y270 w60 h20 vst5, Slot 5
Gui, Add, Checkbox, x96 y270 w60 h20 vst6, Slot 6
Gui, Add, Checkbox, x96 y250 w60 h20 vst4, Slot 4
Gui, Add, GroupBox, x16 y30 w170 h270 ,
Gui, Add, Text, x56 y310 w80 h20 , Buff Delay
Gui, Add, DropDownList, x56 y330 w80 h24 , 3Min|5Min|7Min
Gui, Add, GroupBox, x16 y300 w170 h60 ,
Gui, Add, Button, x6 y370 w60 h20 , Start
Gui, Add, Button, x66 y370 w70 h20 , Stop
Gui, Add, Button, x136 y370 w60 h20 , Save
; Generated using SmartGUI Creator 4.0
Gui, Show, x131 y91 h405 w201, New GUI Window
return
GuiClose:
ButtonStart:
ButtonStop:
Gui, Submit
n::
loop
{
WinWait, SRO_Client,
IfWinNotActive, SRO_Client, , WinActivate, SRO_Client,
WinWaitActive, SRO_Client,
Send, {HOME}
WinWait, Silkroad Online-Power Bot http://www.bot369.com,
IfWinNotActive, Silkroad Online-Power Bot http://www.bot369.com, , WinActivate, Silkroad Online-Power Bot http://www.bot369.com,
WinWaitActive, Silkroad Online-Power Bot http://www.bot369.com,
MouseClick, left, 212, 480
Sleep, 300
MouseClick, left, 499, 481
WinWait, SRO_Client,
SetKeyDelay, 1500
Send, %quick%
sleep, 5000
Send, %prim%
sleep, 5000
Send, %sec%
sleep, 5000
Send, %vst2%
sleep, 5000
Send, %vst3%
sleep, 5000
Send, %vst4%
sleep, 5000
Send, %vst5%
sleep, 5000
Send, %vst6%
sleep, 5000
Send, {HOME}
WinWait, Silkroad Online-Power Bot http://www.bot369.com,
IfWinNotActive, Silkroad Online-Power Bot http://www.bot369.com, , WinActivate, Silkroad Online-Power Bot http://www.bot369.com,
WinWaitActive, Silkroad Online-Power Bot http://www.bot369.com,
MouseClick, left, 73, 482
Sleep, 300
MouseClick, left, 492, 482
Sleep, 295000
} |
|
|
| Back to top |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 139
|
Posted: Fri May 30, 2008 5:26 am Post subject: |
|
|
It would be helpful if you would decipher your script a little for us by telling us what it's supposed to do. Also, adding some comments so we know what a portion of the script should be doing and what they're actually doing instead would be helpful as well. _________________ Have trouble searching the site for information? Try Quick Search for Autohotkey. |
|
| Back to top |
|
 |
Z Gecko Guest
|
Posted: Fri May 30, 2008 6:27 am Post subject: |
|
|
i modified your script a little bit, to just show the vars in a MessageBox ...
| Code: | Gui, Add, Text, x556 y-52 w-400 h92 , Text
Gui, Font, S17 CDefault, Verdana
Gui, Font, S17 CDefault Bold Italic Underline, Verdana
Gui, Add, Text, x26 y10 w160 h40 , SRO Buffer
Gui, Font, S12 CDefault, Verdana
Gui, Font, S12 CDefault Underline, Verdana
Gui, Font, S10 CDefault Underline, Verdana
Gui, Add, DropDownList, x56 y70 w80 h20 Vquick, F1|F2|F3|F4
Gui, Add, Text, x36 y100 w140 h20 , Prim. Weapon Slot
Gui, Add, Text, x26 y50 w150 h20 , Select your Quickbar
Gui, Add, DropDownList, x56 y120 w80 h10 Vprim, 1|2|3|4|5|6|7|8|9|0
Gui, Add, Text, x36 y150 w130 h20 , Sec. Weapon Slot
Gui, Add, DropDownList, x56 y170 w80 h24 Vsec, 1|2|3|4|5|6|7|8|9|0
Gui, Add, Checkbox, x36 y230 w60 h20 , Slot 1
Gui, Add, Text, x36 y200 w120 h20 , Select Buff Slots
Gui, Add, Checkbox, x96 y230 w60 h20 vst2, Slot 2
Gui, Add, Checkbox, x36 y250 w60 h20 vst3, Slot 3
Gui, Add, Checkbox, x36 y270 w60 h20 vst5, Slot 5
Gui, Add, Checkbox, x96 y270 w60 h20 vst6, Slot 6
Gui, Add, Checkbox, x96 y250 w60 h20 vst4, Slot 4
Gui, Add, GroupBox, x16 y30 w170 h270 ,
Gui, Add, Text, x56 y310 w80 h20 , Buff Delay
Gui, Add, DropDownList, x56 y330 w80 h24 , 3Min|5Min|7Min
Gui, Add, GroupBox, x16 y300 w170 h60 ,
Gui, Add, Button, x6 y370 w60 h20 , Start
Gui, Add, Button, x66 y370 w70 h20 , Stop
Gui, Add, Button, x136 y370 w60 h20 , Save
; Generated using SmartGUI Creator 4.0
Gui, Show, x131 y91 h405 w201, New GUI Window
return
GuiClose:
ButtonStart:
ButtonStop:
Gui, Submit
n::
MsgBox, %quick% %prim% %sec% %vst2% %vst3% %vst4% %vst5% %vst6%
return |
... and it works.
Maybe you donīt want the behavior, you have programmed.
To fix this, you should explain, what you want the script to do! |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|