AnythinG Posted December 12, 2006 Posted December 12, 2006 hello how can i set a hotkey that return the script to the beggining? that simple plz help! i can´t find a solution =S
BALA Posted December 12, 2006 Posted December 12, 2006 HotKeySet("{F1}", "PlayBack") Func Play() ;Put code here EndFunc That will let you use the kot key (which in this case is F1). [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Developers Jos Posted December 12, 2006 Developers Posted December 12, 2006 hello how can i set a hotkey that return the script to the beggining? that simple plz help! i can´t find a solution =SYou can set a Global value and test for that to perform a ContinueLoop inside a While...Wend HotKeySet("{F1}", "PlayBack") Func Play() ;Put code here EndFunc That will let you use the kot key (which in this case is F1).Yep... that will bring you right to the End .. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
BALA Posted December 12, 2006 Posted December 12, 2006 You can set a Global value and test for that to perform a ContinueLoop inside a While...WendYep... that will bring you right to the End ..Well Anything did ask how to set a Hot Key... [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Paulie Posted December 12, 2006 Posted December 12, 2006 hello how can i set a hotkey that return the script to the beggining? that simple plz help! i can´t find a solution =SPCP If you would, it would be much easier to loop your script.
AnythinG Posted December 12, 2006 Author Posted December 12, 2006 well, i´m sorry to say this but no one has help me xD! what i want to say is, for example While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Btn2 Exit Case $b1 $nb1 = Pick($b1) Case $b2 $nb2 = Pick($b2) Case $b3 $nb3 = Pick($b3) Case $b4 ;====================================== $nb4 = Pick($b4) ; when the program reaches this line and i prees a hotkey ; the program returns to the beggining Case $Btn1 ;====================================== WinClose If $nb1 = True Then AbrirCarp() EndIf If $nb2 = True Then AbrirThis() EndIf If $nb3 = True Then CorrerProg() EndIf If $nb4 = True Then EscRep() EndIf EndSwitch WEnd
BALA Posted December 12, 2006 Posted December 12, 2006 (edited) Oh I can help you with that; hold on while I type up the instructionsSorry I lied, I'm clueless Edited December 12, 2006 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
herewasplato Posted December 12, 2006 Posted December 12, 2006 ...no one has help me...There is a difference between saying that you do not understand the help that Jdeb has given you and saying that no one has helped you.......... [size="1"][font="Arial"].[u].[/u][/font][/size]
herewasplato Posted December 12, 2006 Posted December 12, 2006 Oh I can help you with that; hold on while I type up the instructions:-) [size="1"][font="Arial"].[u].[/u][/font][/size]
BALA Posted December 12, 2006 Posted December 12, 2006 I had a similar problem a while back, and I still haven't solved it. Why did you have to murder the GoTo command, AutoItv3? Why, why, why? [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
AnythinG Posted December 12, 2006 Author Posted December 12, 2006 xD! ok, thanks to all for your answers i think i need to think a little bit more thanks anyway
herewasplato Posted December 12, 2006 Posted December 12, 2006 (edited) I cannot test this and I'm not sure of the ContinueLoop level... or maybe you should read about ContinueCaseexpandcollapse popupHotKeySet("{F2}", "_StartOver") Global $trigger = 0 While 1 ;starts over here $nMsg = GUIGetMsg() Switch $nMsg Case $Btn2 Exit Case $b1 $nb1 = Pick ($b1) Case $b2 $nb2 = Pick ($b2) Case $b3 $nb3 = Pick ($b3) Case $b4 $nb4 = Pick ($b4) If $trigger = 1 Then $trigger = 0 ContinueLoop ;starts over ;or see ContinueCase EndIf Case $Btn1 WinClose If $nb1 = True Then AbrirCarp () EndIf If $nb2 = True Then AbrirThis () EndIf If $nb3 = True Then CorrerProg () EndIf If $nb4 = True Then EscRep () EndIf EndSwitch WEnd Func _StartOver() $trigger = 1 EndFunc ;==>_StartOver Edited December 12, 2006 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
AnythinG Posted December 14, 2006 Author Posted December 14, 2006 thanks to all again, i finally find a solution ^^ thanks to my brother cya 'round
theguy0000 Posted December 14, 2006 Posted December 14, 2006 I had a similar problem a while back, and I still haven't solved it. Why did you have to murder the GoTo command, AutoItv3? Why, why, why? I agree. although it's true that there is a different way to do everything without goto, it is still useful in cases such as this The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN
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