Sign in to follow this  
Followers 0
uznut

help

6 posts in this topic

#1 ·  Posted (edited)

when i click the radio buttons they do the file move before the ok button is hit any suggestions

GuiSetState()

Do
$Msg = GuiGetMsg()

If $msg = $OK Then
elseif GUICtrlRead($R1) = 1 Then
FileMove("s:\file transfer\ach\achfle.dat", "c:\file transfer\ach\data\achup.dat" ,1)
elseif GUICtrlRead($R2) = 1 Then
FileMove("s:\file transfer\ach\" & $FN2, "c:\file transfer\ach\data\achup.dat" ,1)
endif

If $msg = $CAN Then
exitloop
endif

Until $msg = $GUI_EVENT_CLOSE
Edited by uznut

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

GuiSetState()

Do
$Msg = GuiGetMsg()

If $msg = $OK Then
if GUICtrlRead($R1) = 1 Then FileMove("s:\file transfer\ach\achfle.dat", "c:\file transfer\ach\data\achup.dat" ,1)
if GUICtrlRead($R2) = 1 Then FileMove("s:\file transfer\ach\" & $FN2, "c:\file transfer\ach\data\achup.dat" ,1)
endif

If $msg = $CAN Then
exitloop
endif

Until $msg = $GUI_EVENT_CLOSE

edit forgot to remove the quote tags :">

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Share this post


Link to post
Share on other sites

?

Share this post


Link to post
Share on other sites

#AutoIt Language

If $msg = $OK Then
elseif GUICtrlRead($R1) = 1 Then
FileMove("s:\file transfer\ach\achfle.dat", "c:\file transfer\ach\data\achup.dat" ,1)
elseif GUICtrlRead($R2) = 1 Then
FileMove("s:\file transfer\ach\" & $FN2, "c:\file transfer\ach\data\achup.dat" ,1)
endif

#Translated to English

Ey !
If someone press the OK-button can you do....naah, just forget it !
Instead you can, while here, if someone clicks on RADIO1 move this file to this
place, or if someone click RADIO2 you move this file here.
Thanks !

Now that's not what you wanted, or was it ?

Share this post


Link to post
Share on other sites

thanks im dumb

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0